Synology Download Station MCP Server
A Model Context Protocol server that enables AI assistants to manage downloads, search for torrents, and monitor download statistics on a Synology NAS.
README
Synology Download Station MCP Server
A Model Context Protocol (MCP) server that provides tools for interacting with Synology Download Station. This server enables AI assistants to manage downloads, search for torrents, and monitor download statistics on your Synology NAS.
Features
- Download Management: List, create, pause, resume, and delete download tasks
- Torrent Search: Search for torrents using multiple search engines
- Statistics: Monitor real-time download/upload speeds
- Detailed Information: Get comprehensive details about downloads including peers, trackers, and file lists
Installation
Using npm
npm install @akitchin/synology-download-mcp
Using Docker
# Build the image
docker build -t synology-download-mcp .
# Run with docker-compose
docker-compose up -d
Configuration
Create a .env file with your Synology credentials:
SYNOLOGY_HOST=192.168.1.41
SYNOLOGY_PORT=5000
SYNOLOGY_USERNAME=your_username
SYNOLOGY_PASSWORD=your_password
SYNOLOGY_HTTPS=false
LOG_LEVEL=info
Available Tools
list_downloads
List all download tasks with their current status.
Parameters:
offset(number, optional): Starting position for results (default: 0)limit(number, optional): Maximum number of results, -1 for all (default: 50)includeDetails(boolean, optional): Include detailed information (default: false)
get_download_info
Get detailed information about specific download tasks.
Parameters:
ids(string[], required): Array of task IDs to get info for
create_download
Create a new download task from URL, magnet link, or torrent file.
Parameters:
uri(string, required): URL, magnet link, or file path to downloaddestination(string, optional): Destination folder on the NAS
pause_downloads
Pause one or more download tasks.
Parameters:
ids(string[], required): Array of task IDs to pause
resume_downloads
Resume one or more paused download tasks.
Parameters:
ids(string[], required): Array of task IDs to resume
delete_downloads
Delete one or more download tasks.
Parameters:
ids(string[], required): Array of task IDs to deleteforceComplete(boolean, optional): Force move incomplete files to destination (default: false)
search_torrents
Search for torrents using enabled search modules with intelligent timeout handling.
Parameters:
keyword(string, required): Search keywordwaitForResults(boolean, optional): Wait for search to complete (default: true)maxWaitTime(number, optional): Maximum total time to wait for search completion in seconds (default: 30)
Features:
- Polls for results every second
- Resets timeout when new results arrive (progress-based timeout)
- Stops if no new results for 10 seconds
- Returns partial results if search times out
- Includes search metadata (duration, total results, finish status)
check_search_status
Check the status of an ongoing search without waiting.
Parameters:
taskId(string, required): Search task ID returned from search_torrentscleanAfterCheck(boolean, optional): Clean up the search task after checking (default: false)
get_search_modules
Get list of available torrent search modules and their status.
get_statistics
Get current download/upload statistics.
Usage with Claude Desktop
Add to your Claude Desktop configuration:
{
"mcpServers": {
"synology-download": {
"command": "docker",
"args": ["run", "--rm", "-i",
"-e", "SYNOLOGY_HOST=192.168.1.41",
"-e", "SYNOLOGY_PORT=5000",
"-e", "SYNOLOGY_USERNAME=your_username",
"-e", "SYNOLOGY_PASSWORD=your_password",
"synology-download-mcp:latest"
]
}
}
}
Or if running locally:
{
"mcpServers": {
"synology-download": {
"command": "node",
"args": ["/path/to/synology-download-mcp/dist/index.js"],
"env": {
"SYNOLOGY_HOST": "192.168.1.41",
"SYNOLOGY_PORT": "5000",
"SYNOLOGY_USERNAME": "your_username",
"SYNOLOGY_PASSWORD": "your_password"
}
}
}
}
Development
Setup
# Clone the repository
git clone https://github.com/akitchin/synology-download-mcp.git
cd synology-download-mcp
# Install dependencies
npm install
# Copy environment file
cp .env.example .env
# Edit .env with your Synology credentials
# Build TypeScript
npm run build
# Run in development mode
npm run dev
Testing
# Run the test scripts
python3 test_synology_api.py
python3 test_bt_search.py
Security Considerations
- Store credentials securely using environment variables
- Use HTTPS when connecting over untrusted networks
- Consider using a dedicated Synology user with limited permissions
- The Docker container runs as a non-root user for security
Troubleshooting
Connection Issues
- Verify your Synology NAS is accessible from the host
- Check that Download Station is installed and running
- Ensure the user has appropriate permissions in DSM
Authentication Errors
- Verify username and password are correct
- Check if 2-factor authentication is enabled (not currently supported)
- Ensure the account is not disabled
Search Not Working
- Verify BT search modules are enabled in Download Station
- Some search engines may require additional configuration
License
MIT
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
synology-download-mcp
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。