README Documentation
qBittorrent MCP Service
qBittorrent MCP is a service based on FastMCP that provides functional interfaces for interacting with the qBittorrent WebUI API.
Feature List
This service provides the following features:
Torrent Management
add_torrent: Add torrent files to qBittorrentdelete_torrent: Delete specified torrents (optionally delete files)pause_torrent: Pause torrent downloadsresume_torrent: Resume torrent downloadsget_torrent_list: Get list of all torrentssearch_torrents: Search torrents
Trackers and Tags
get_torrent_trackers: Get tracker list for a torrentadd_trackers_to_torrent: Add new trackers to a torrentadd_torrent_tags: Add tags to a torrent
Speed and Priority Control
set_global_download_limit: Set global download speed limitset_global_upload_limit: Set global upload speed limitset_torrent_download_limit: Set download speed limit for a specific torrentset_torrent_upload_limit: Set upload speed limit for a specific torrentset_file_priority: Set download priority for a specific file
System Information
get_application_version: Get qBittorrent application version
Configuration
The service uses the following configuration parameters:
DEFAULT_HOST: qBittorrent WebUI host addressDEFAULT_USERNAME: qBittorrent WebUI usernameDEFAULT_PASSWORD: qBittorrent WebUI password
Usage
-
Ensure required dependencies are installed:
pip install httpx mcp -
Run the MCP service:
python main.py
Development
The service is divided into two main files:
main.py: Defines MCP service interface and configuration parametersapi.py: Implements interaction logic with qBittorrent WebUI
"mcp_servers": [
{
"command": "uv",
"args": [
"--directory",
"/workspace/PC-Canary/apps/qBittorrent/qbittorrent_mcp",
"run",
"qbittorrent.py"
]
}
]
Quick Actions
Key Features
Model Context Protocol
Secure Communication
Real-time Updates
Open Source