Enables management of Synology NAS devices, including file system operations (create, delete, list, search, rename, move files and directories), share management, and Download Station control (create, pause, resume, delete download tasks and torrent management).
š¾ Synology MCP Server

A Model Context Protocol (MCP) server for Synology NAS devices. Enables AI assistants to manage files and downloads through secure authentication and session management.
š NEW: Unified server supports both Claude/Cursor (stdio) and Xiaozhi (WebSocket) simultaneously!
š Quick Start with Docker
1ļøā£ Setup Environment
2ļøā£ Configure .env File
Basic Configuration (Claude/Cursor only):
Extended Configuration (Both Claude/Cursor + Xiaozhi):
3ļøā£ Run with Docker
One simple command supports both modes:
4ļøā£ Alternative: Local Python
š Client Setup
š¤ Claude Desktop
Add to your Claude Desktop configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
āļø Cursor
Add to your Cursor MCP settings:
š Continue (VS Code Extension)
Add to your Continue configuration (.continue/config.json):
š» Codeium
For Codeium's MCP support:
š Alternative: Direct Python Execution
If you prefer not to use Docker:
š Xiaozhi Integration
New unified architecture supports both clients simultaneously!
How It Works
ENABLE_XIAOZHI=false (default): Standard MCP server for Claude/Cursor via stdio
ENABLE_XIAOZHI=true: Multi-client bridge supporting both:
š” Xiaozhi: WebSocket connection
š» Claude/Cursor: stdio connection
Setup Steps
Add to your .env file:
Run normally:
Key Features
ā Zero Configuration Conflicts: One server, multiple clients
ā Parallel Operation: Both clients can work simultaneously
ā All Tools Available: Xiaozhi gets access to all Synology MCP tools
ā Backward Compatible: Existing setups work unchanged
ā Auto-Reconnection: Handles WebSocket connection drops
ā Environment Controlled: Simple boolean flag to enable/disable
Startup Messages
Claude/Cursor only mode:
Both clients mode:
š ļø Available MCP Tools
š Authentication
synology_status- Check authentication status and active sessionssynology_login- Authenticate with Synology NAS (conditional)synology_logout- Logout from session (conditional)
š File System Operations
list_shares- List all available NAS shareslist_directory- List directory contents with metadatapath(required): Directory path starting with/
get_file_info- Get detailed file/directory informationpath(required): File path starting with/
search_files- Search files matching patternpath(required): Search directorypattern(required): Search pattern (e.g.,*.pdf)
create_file- Create new files with contentpath(required): Full file path starting with/content(optional): File content (default: empty string)overwrite(optional): Overwrite existing files (default: false)
create_directory- Create new directoriesfolder_path(required): Parent directory path starting with/name(required): New directory nameforce_parent(optional): Create parent directories if needed (default: false)
delete- Delete files or directories (auto-detects type)path(required): File/directory path starting with/
rename_file- Rename files or directoriespath(required): Current file pathnew_name(required): New filename
move_file- Move files to new locationsource_path(required): Source file pathdestination_path(required): Destination pathoverwrite(optional): Overwrite existing files
š„ Download Station Management
ds_get_info- Get Download Station informationds_list_tasks- List all download tasks with statusoffset(optional): Pagination offsetlimit(optional): Max tasks to return
ds_create_task- Create new download taskuri(required): Download URL or magnet linkdestination(optional): Download folder path
ds_pause_tasks- Pause download taskstask_ids(required): Array of task IDs
ds_resume_tasks- Resume paused taskstask_ids(required): Array of task IDs
ds_delete_tasks- Delete download taskstask_ids(required): Array of task IDsforce_complete(optional): Force delete completed
ds_get_statistics- Get download/upload statistics
āļø Configuration Options
Variable | Required | Default | Description |
| Yes* | - | NAS base URL (e.g.,
) |
| Yes* | - | Username for authentication |
| Yes* | - | Password for authentication |
| No |
| Auto-login on server start |
| No |
| Verify SSL certificates |
| No |
| Enable debug logging |
| No |
| Enable Xiaozhi WebSocket bridge |
| Xiaozhi only | - | Authentication token for Xiaozhi |
| No |
| Xiaozhi WebSocket endpoint |
*Required for auto-login and default operations
š Usage Examples
š File Operations
ā Creating Files and Directories

šļø Deleting Files and Directories

ā¬ļø Download Management
š ļø Creating a Download Task

𦦠Download Results

⨠Features
ā Unified Entry Point - Single
main.pysupports both stdio and WebSocket clientsā Environment Controlled - Switch modes via
ENABLE_XIAOZHIenvironment variableā Multi-Client Support - Simultaneous Claude/Cursor + Xiaozhi access
ā Secure Authentication - RSA encrypted password transmission
ā Session Management - Persistent sessions across multiple NAS devices
ā Complete File Operations - Create, delete, list, search, rename, move files with detailed metadata
ā Directory Management - Recursive directory operations with safety checks
ā Download Station - Complete torrent and download management
ā Docker Support - Easy containerized deployment
ā Backward Compatible - Existing configurations work unchanged
ā Error Handling - Comprehensive error reporting and recovery
šļø Architecture
File Structure
Mode Selection
ENABLE_XIAOZHI=falseāmain.pyāmcp_server.py(stdio only)ENABLE_XIAOZHI=trueāmain.pyāmulticlient_bridge.pyāmcp_server.py(both clients)
Perfect for any workflow - from simple Claude/Cursor usage to advanced multi-client setups! š