qbittorrent-mcp
This server exposes qBittorrent's full WebUI API as MCP tools, allowing an LLM to manage torrents, application settings, RSS feeds, and search plugins.
Application & auth: Get version/build info, preferences, default save path, cookies; set preferences/cookies; shut down the app; log out.
Logging & sync: Access main and peer logs; get differential data for torrents, categories, tags, server state, and peers.
Transfer/global controls: View transfer info; get/set global download/upload limits; toggle alternative speed limits; ban peers.
Torrent listing & inspection: List/filter torrents; view properties, trackers, web seeds, files, piece states/hashes.
Torrent operations: Add via magnet/URL/.torrent; pause/resume/delete (optionally delete files); recheck/reannounce; manage priorities, trackers, peers, per-torrent speed/share limits, location, rename, category, auto management, sequential download, first/last piece priority, force start, super seeding; rename files/folders.
Categories & tags: Create/edit/remove categories; create/delete tags; add/remove tags on torrents.
RSS management: Manage feeds/folders, items, read status, refresh, and auto-download rules.
Search plugins: Start/stop/delete search jobs, view status/results, and install/uninstall/enable/disable/update plugins.
Allows management of a qBittorrent instance via its WebUI API, including listing torrents, inspecting properties and files, adding/pausing/resuming/deleting torrents, managing categories, tags, RSS feeds, and search plugins, and adjusting application settings.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@qbittorrent-mcp list all torrents currently downloading"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
qbittorrent-mcp
Part of the arr-mcps collection. MCP server exposing qBittorrent's WebUI API v2 (qBittorrent >= 5.0) as tools, so an LLM can manage your torrents: list, inspect properties/trackers/files, add/pause/resume/delete torrents, manage categories, tags, RSS feeds and search plugins, and tweak application settings.
Built with FastMCP.
Enabling the API on your qBittorrent server
The WebUI API is enabled by default with the WebUI. You need WebUI access enabled (Tools > Preferences > WebUI) and one of two auth methods:
API key (qBittorrent >= v5.2.0 / WebAPI v2.14.1): generate one in Preferences > WebUI > API Key (format
qbt_<28 chars>). This is the recommended, stateless option.Username/password: the WebUI login you'd use in the browser. Works on all versions.
Related MCP server: LLMarr
Install
Download a wheel from the latest release
and install it as a uv tool (no repo checkout needed):
uv tool install qbittorrent_mcp-*.whlThis puts a qbittorrent-mcp command on your PATH. Register it with Claude Code:
claude mcp add qbittorrent \
--env QBITTORRENT_URL=http://localhost:8080 \
--env QBITTORRENT_API_KEY=<key> \
-- qbittorrent-mcpOr with username/password:
claude mcp add qbittorrent \
--env QBITTORRENT_URL=http://localhost:8080 \
--env QBITTORRENT_USERNAME=admin \
--env QBITTORRENT_PASSWORD=<password> \
-- qbittorrent-mcpFrom source
uv sync
cp .env.example .env # fill in QBITTORRENT_URL and an auth methodclaude mcp add qbittorrent \
--env QBITTORRENT_URL=http://localhost:8080 \
--env QBITTORRENT_API_KEY=<key> \
-- uv run --directory /path/to/qbittorrent-mcp qbittorrent-mcpConfig
Env var | Required | Default |
| yes | - |
| one of* | none (preferred) |
| one of* | none (fall-back) |
| one of* | none (fall-back) |
* You must set either QBITTORRENT_API_KEY or both QBITTORRENT_USERNAME and
QBITTORRENT_PASSWORD. If QBITTORRENT_API_KEY is set it wins; otherwise the
server logs in with the username/password on first use and reuses the session
cookie, re-authenticating automatically if it expires.
Tools
10 resource-scoped tools, each covering multiple qBittorrent WebUI
API v2 endpoints (90 total) via an operation parameter. Call a tool
with operation set to one of its listed operations and an arguments
dict matching that operation's parameters — the tool's own description
(visible to your MCP client) lists every operation, its signature, and a
one-line doc. This keeps the full API surface available while costing a
fraction of the context budget of registering all 90 endpoints as
separate tools.
Tool | Operations | Kind |
| 22 | reads + writes |
| 14 | reads + writes |
| 12 | reads + writes |
| 10 | reads + writes |
| 10 | reads + writes |
| 9 | reads + writes |
| 8 | reads + writes |
| 2 | read-only |
| 2 | read-only |
| 1 | reads + writes |
Example: qbittorrent_torrents(operation="qbittorrent_torrents_pause", arguments={"hashes": "abc123"}).
Endpoint-level naming (qbittorrent_<verb>_<resource>) is preserved as the
operation value, so the full endpoint list is still discoverable from each
group tool's description at runtime.
Development
make help # list all commandsCommand | Does |
|
|
| Offline tests - one per endpoint, mocked HTTP |
| Tests against the live instance (needs |
| Build wheel + sdist into |
| Bump the version in |
| Remove build artifacts |
The release workflow (.github/workflows/release.yml) builds and publishes to
Releases whenever a v*
tag is pushed - so the usual flow is make bump-patch, commit, then tag and
push.
The integration suite is read-only and never modifies your qBittorrent instance.
Available Tools
90 toolsqbittorrent_app_build_infoARead-only
Build info: Qt, libtorrent, Boost and OpenSSL versions plus app bitness.
Inputs: no named parameters. Returns: object
qbittorrent_app_default_save_pathARead-only
The default save path for new torrents, e.g. C:/Users/me/Downloads.
Inputs: no named parameters. Returns: result
qbittorrent_app_get_cookiesARead-only
The cookies qBittorrent sends when downloading .torrent files. Each entry has name/domain/path/value/expirationDate.
Inputs: no named parameters. Returns: result
qbittorrent_app_get_preferencesARead-only
All application preferences as a key/value object (locale, limits, paths, WebUI settings, etc). See README for the full field list.
Inputs: no named parameters. Returns: object
qbittorrent_app_set_cookiesA
Replace the cookies used when downloading .torrent files. cookies is a JSON array of {name, domain, path, value, expirationDate} objects.
Inputs: cookies (required). Returns: result
qbittorrent_app_set_preferencesA
Update application preferences. Pass only the keys you want to change, e.g. {"max_active_downloads": 5, "save_path": "/downloads"}. String values must be quoted; integers and booleans must not.
Inputs: json (required). Returns: result
qbittorrent_app_shutdownADestructive
Shut down the qBittorrent application. This stops the whole daemon/WebUI -- use sparingly, it cannot be undone from here.
Inputs: no named parameters. Returns: result
qbittorrent_app_versionARead-only
The qBittorrent application version, e.g. v5.0.4.
Inputs: no named parameters. Returns: result
qbittorrent_app_webapi_versionARead-only
The WebAPI version implemented by this qBittorrent, e.g. 2.14.1.
Inputs: no named parameters. Returns: result
qbittorrent_log_mainARead-only
The application log as a JSON array of {id, message, timestamp, type}. Filter message classes with normal/info/warning/critical (default true for all). Pass last_known_id to fetch only messages newer than a given id.
Inputs: info, normal, warning, critical, +1 more. Returns: result
qbittorrent_logoutA
Invalidate the current WebUI session. With API-key auth this endpoint is not reachable (API keys cannot interact with /auth/*) and the API will return an error which is surfaced as-is.
Inputs: no named parameters. Returns: result
qbittorrent_log_peersARead-only
Peer-block log entries as a JSON array of {id, ip, timestamp, blocked, reason}. Pass last_known_id to fetch only entries newer than a given id.
Inputs: last_known_id. Returns: result
qbittorrent_rss_add_feedA
Add an RSS feed by URL, optionally into a folder path.
Inputs: url (required), path. Returns: result
qbittorrent_rss_add_folderA
Create an RSS folder, e.g. "The Pirate Bay\Top100".
Inputs: path (required). Returns: result
qbittorrent_rss_itemsARead-only
All RSS items as a nested object of folder -> feed -> URL. Set with_data to also include current feed articles.
Inputs: with_data. Returns: object
qbittorrent_rss_mark_as_readA
Mark an RSS feed as read; pass article_id to mark only one article.
Inputs: item_path (required), article_id. Returns: result
qbittorrent_rss_matching_articlesARead-only
All feed articles matching a rule, as {feed name: [article titles]}.
Inputs: rule_name (required). Returns: object
qbittorrent_rss_move_itemA
Move or rename an RSS folder/feed from item_path to dest_path.
Inputs: dest_path (required), item_path (required). Returns: result
qbittorrent_rss_refresh_itemA
Force-refresh an RSS folder or feed.
Inputs: item_path (required). Returns: result
qbittorrent_rss_remove_itemADestructive
Remove an RSS folder or feed, e.g. "The Pirate Bay\Top100".
Inputs: path (required). Returns: result
qbittorrent_rss_remove_ruleBDestructive
Remove an auto-downloading rule.
Inputs: rule_name (required). Returns: result
qbittorrent_rss_rename_ruleB
Rename an auto-downloading rule.
Inputs: rule_name (required), new_rule_name (required). Returns: result
qbittorrent_rss_rulesBRead-only
All auto-downloading rules as {name: rule definition}.
Inputs: no named parameters. Returns: object
qbittorrent_rss_set_ruleA
Create or replace an auto-downloading RSS rule. rule_def keys: enabled, mustContain, mustNotContain, useRegex, episodeFilter, smartFilter, previouslyMatchedEpisodes, affectedFeeds, ignoreDays, lastMatch, addPaused, assignedCategory, savePath. e.g. {"enabled": true, "mustContain": "Ubuntu", "affectedFeeds": ["https://example.com/rss"]}
Inputs: rule_def (required), rule_name (required). Returns: result
qbittorrent_search_deleteADestructive
Delete a search job and free its results.
Inputs: id (required). Returns: result
qbittorrent_search_enable_pluginA
Enable or disable search plugins. names is one or more names separated by a pipe.
Inputs: names (required), enable (required). Returns: result
qbittorrent_search_install_pluginA
Install search plugins. sources is one or more URLs or file paths separated by a pipe.
Inputs: sources (required). Returns: result
qbittorrent_search_pluginsBRead-only
Installed search plugins: enabled, fullName, name, supportedCategories, url, version.
Inputs: no named parameters. Returns: result
qbittorrent_search_resultsBRead-only
Results of a search job: {results: [{descrLink, fileName, fileSize, fileUrl, nbLeechers, nbSeeders, siteUrl}], status, total}. limit caps the count (0/negative = no limit); negative offset counts back from the end.
Inputs: id (required), limit, offset. Returns: object
qbittorrent_search_startA
Start a search job across the configured plugins and return its id. plugins
is plugin names separated by |, or "all"/"enabled". category limits the
search (depends on the plugin), or "all".
Inputs: pattern (required), plugins, category. Returns: object
qbittorrent_search_statusARead-only
Status of one search job (id) or all jobs: {id, status: Running|Stopped, total}.
Inputs: id. Returns: result
qbittorrent_search_stopA
Stop a running search job by id.
Inputs: id (required). Returns: result
qbittorrent_search_uninstall_pluginA
Uninstall search plugins. names is one or more names separated by a pipe.
Inputs: names (required). Returns: result
qbittorrent_search_update_pluginsA
Update all installed search plugins to their latest versions.
Inputs: no named parameters. Returns: result
qbittorrent_sync_maindataARead-only
Differential state snapshot for UI sync. Pass the rid from the previous reply to get only changes; full_update=true means you received everything. Includes torrents, categories, tags and server_state.
Inputs: rid. Returns: object
qbittorrent_sync_torrent_peersARead-only
Differential peers data for one torrent. Pass the rid from the previous reply to get only changes.
Inputs: hash (required), rid. Returns: object
qbittorrent_torrent_contentsARead-only
Files of one torrent: index, name, size, progress, priority (0 skip, 1 normal, 6 high, 7 maximal), is_seed, piece_range, availability. Pass indexes (pipe-separated) to fetch only those files.
Inputs: hash (required), indexes. Returns: result
qbittorrent_torrent_piece_hashesBRead-only
SHA1 hashes of all pieces of one torrent, in order.
Inputs: hash (required). Returns: result
qbittorrent_torrent_piece_statesARead-only
Piece states of one torrent as ints: 0 not downloaded, 1 downloading, 2 downloaded.
Inputs: hash (required). Returns: result
qbittorrent_torrent_propertiesARead-only
Generic properties of one torrent: save_path, creation/completion dates, total uploaded/downloaded, seeding_time, share_ratio, speeds, peer counts, isPrivate, etc. 404 if the hash is not found.
Inputs: hash (required). Returns: object
qbittorrent_torrents_addA
Add torrents. urls is one or more http(s)/magnet/bc:// links separated by newlines. Alternatively (or additionally) pass one raw .torrent file base64-encoded in torrent_b64. Optional: save_path, category, tags (comma-separated), skip_checking, paused, root_folder, rename, up_limit / dl_limit (bytes/s), ratio_limit, seeding_time_limit (minutes), auto_tmm, sequential_download, first_last_piece_prio.
Inputs: tags, urls, paused, rename, +12 more. Returns: result
qbittorrent_torrents_add_peersA
Add peers to torrents. hashes is pipe-separated or "all"; peers is one or
more host:port values separated by a pipe.
Inputs: peers (required), hashes (required). Returns: result
qbittorrent_torrents_add_tagsA
Add tags (comma-separated) to torrents (hashes pipe-separated or "all").
Inputs: tags (required), hashes (required). Returns: result
qbittorrent_torrents_add_trackersA
Add trackers to a torrent. urls is one or more tracker URLs separated by newlines.
Inputs: hash (required), urls (required). Returns: result
qbittorrent_torrents_bottom_priorityA
Move torrents to the bottom of the queue. hashes is pipe-separated or "all".
Inputs: hashes (required). Returns: result
qbittorrent_torrents_categoriesARead-only
All categories as {name: {name, savePath}}.
Inputs: no named parameters. Returns: object
qbittorrent_torrents_create_categoryB
Create a category with an optional save_path.
Inputs: category (required), save_path. Returns: result
qbittorrent_torrents_create_tagsB
Create tags. tags is one or more names separated by commas.
Inputs: tags (required). Returns: result
qbittorrent_torrents_decrease_priorityA
Decrease queue priority of torrents. hashes is pipe-separated or "all".
Inputs: hashes (required). Returns: result
qbittorrent_torrents_deleteADestructive
Delete torrents. hashes is pipe-separated or "all". With delete_files=true the downloaded data is deleted from disk too -- this is irreversible.
Inputs: hashes (required), delete_files. Returns: result
qbittorrent_torrents_delete_tagsA
Delete tags. tags is one or more names separated by commas. Torrents keep their data but lose the deleted tags.
Inputs: tags (required). Returns: result
qbittorrent_torrents_download_limitARead-only
Per-torrent download speed limits (bytes/s), keyed by hash. hashes is pipe-separated or "all".
Inputs: hashes (required). Returns: object
qbittorrent_torrents_edit_categoryB
Change the save_path of an existing category.
Inputs: category (required), save_path (required). Returns: result
qbittorrent_torrents_edit_trackerA
Replace a tracker URL on a torrent with new_url.
Inputs: url (required), hash (required), new_url (required). Returns: result
qbittorrent_torrents_file_priorityA
Set file priority for a torrent. id is one or more file ids (from qbittorrent_torrent_contents) separated by a pipe; priority is 0 (skip), 1 (normal), 6 (high) or 7 (maximal).
Inputs: id (required), hash (required), priority (required). Returns: result
qbittorrent_torrents_increase_priorityA
Increase queue priority of torrents. hashes is pipe-separated or "all".
Inputs: hashes (required). Returns: result
qbittorrent_torrents_listARead-only
List torrents matching the given filters. filter is one of all, downloading, seeding, completed, stopped, active, inactive, running, stalled, stalled_uploading, stalled_downloading, errored. category/tag filter by them (empty string = "without category/tag"). sort by any response field; reverse for descending order. limit/offset for paging; hashes (pipe-separated or "all") to select specific torrents.
Inputs: tag, sort, limit, filter, +4 more. Returns: result
qbittorrent_torrents_pauseA
Pause (stop) torrents. hashes is pipe-separated or "all".
Inputs: hashes (required). Returns: result
qbittorrent_torrents_reannounceA
Reannounce torrents to their trackers. hashes is pipe-separated or "all".
Inputs: hashes (required). Returns: result
qbittorrent_torrents_recheckA
Force recheck of torrents. hashes is pipe-separated or "all".
Inputs: hashes (required). Returns: result
qbittorrent_torrents_remove_categoriesA
Remove categories. categories is one or more names separated by newlines. Torrents in a removed category become uncategorized.
Inputs: categories (required). Returns: result
qbittorrent_torrents_remove_tagsA
Remove tags (comma-separated) from torrents (hashes pipe-separated or "all"). An empty tags value removes all tags from the torrents.
Inputs: tags (required), hashes (required). Returns: result
qbittorrent_torrents_remove_trackersA
Remove trackers from a torrent. urls is one or more URLs separated by a pipe.
Inputs: hash (required), urls (required). Returns: result
qbittorrent_torrents_rename_fileA
Rename a file inside a torrent (relative paths from the torrent root).
Inputs: hash (required), new_path (required), old_path (required). Returns: result
qbittorrent_torrents_rename_folderA
Rename a folder inside a torrent (relative paths from the torrent root).
Inputs: hash (required), new_path (required), old_path (required). Returns: result
qbittorrent_torrents_resumeA
Resume (start) torrents. hashes is pipe-separated or "all".
Inputs: hashes (required). Returns: result
qbittorrent_torrents_set_auto_managementA
Enable/disable Automatic Torrent Management for torrents (hashes pipe-separated or "all").
Inputs: enable (required), hashes (required). Returns: result
qbittorrent_torrents_set_categoryA
Set the category of torrents. hashes is pipe-separated or "all"; pass an empty category to remove the current category.
Inputs: hashes (required), category (required). Returns: result
qbittorrent_torrents_set_download_limitA
Set download speed limit (bytes/s) for torrents. hashes is pipe-separated or "all"; limit 0 means no limit.
Inputs: limit (required), hashes (required). Returns: result
qbittorrent_torrents_set_force_startA
Force-start or un-force-start torrents (hashes pipe-separated or "all").
Inputs: value (required), hashes (required). Returns: result
qbittorrent_torrents_set_locationA
Move torrents to a new download location on disk. hashes is pipe-separated or "all"; location is the destination directory.
Inputs: hashes (required), location (required). Returns: result
qbittorrent_torrents_set_nameA
Rename a torrent (display name only, does not touch files on disk).
Inputs: hash (required), name (required). Returns: result
qbittorrent_torrents_set_super_seedingA
Enable/disable super seeding for torrents (hashes pipe-separated or "all").
Inputs: value (required), hashes (required). Returns: result
qbittorrent_torrents_set_upload_limitA
Set upload speed limit (bytes/s) for torrents. hashes is pipe-separated or "all"; limit 0 means no limit.
Inputs: limit (required), hashes (required). Returns: result
qbittorrent_torrents_tagsARead-only
All tags as a JSON array of strings.
Inputs: no named parameters. Returns: result
qbittorrent_torrents_toggle_first_last_piece_priorityA
Toggle first/last piece priority for torrents (hashes pipe-separated or "all").
Inputs: hashes (required). Returns: result
qbittorrent_torrents_toggle_sequential_downloadA
Toggle sequential download mode for torrents (hashes pipe-separated or "all").
Inputs: hashes (required). Returns: result
qbittorrent_torrents_top_priorityA
Move torrents to the top of the queue. hashes is pipe-separated or "all".
Inputs: hashes (required). Returns: result
qbittorrent_torrents_upload_limitARead-only
Per-torrent upload speed limits (bytes/s), keyed by hash. hashes is pipe-separated or "all".
Inputs: hashes (required). Returns: object
qbittorrent_torrent_trackersARead-only
Trackers of one torrent: url, status (0 disabled, 1 not contacted yet, 2 working, 3 updating, 4 not working), tier, peer/seed/leech counts, msg.
Inputs: hash (required). Returns: result
qbittorrent_torrent_web_seedsBRead-only
Web seeds of one torrent (array of {url}).
Inputs: hash (required). Returns: result
qbittorrent_transfer_ban_peersA
Ban peers. peers is one or more host:port values separated by a pipe,
e.g. "1.2.3.4:6881|5.6.7.8:6882".
Inputs: peers (required). Returns: result
qbittorrent_transfer_download_limitARead-only
Global download speed limit in bytes/s (0 if no limit is applied).
Inputs: no named parameters. Returns: result
qbittorrent_transfer_infoARead-only
Global transfer info: download/upload rates and totals, rate limits, DHT nodes and connection status.
Inputs: no named parameters. Returns: object
qbittorrent_transfer_set_download_limitA
Set the global download speed limit in bytes/s (0 removes the limit).
Inputs: limit (required). Returns: result
qbittorrent_transfer_set_upload_limitA
Set the global upload speed limit in bytes/s (0 removes the limit).
Inputs: limit (required). Returns: result
qbittorrent_transfer_speed_limits_modeARead-only
1 if alternative speed limits are enabled, 0 otherwise.
Inputs: no named parameters. Returns: result
qbittorrent_transfer_toggle_speed_limitsA
Toggle the alternative speed limits on/off.
Inputs: no named parameters. Returns: result
qbittorrent_transfer_upload_limitARead-only
Global upload speed limit in bytes/s (0 if no limit is applied).
Inputs: no named parameters. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 90 tools
Each tool targets a distinct resource and action, from torrent operations to RSS and search. Despite the large number, the combinations of domain and operation keep purposes clear, and descriptions remove any ambiguity.
All tools share the qbittorrent_<domain>_<action> prefix, which is consistent. However, actions mix nouns (properties, trackers) and verbs (list, pause), and getter/setter pairs are not uniformly marked (e.g., download_limit vs set_download_limit). The style is readable but not a single predictable pattern.
With 90 tools, this far exceeds the 'extreme' threshold of 50+ tools. While it mirrors the full qBittorrent WebUI API, the sheer number makes it overwhelming and impairs agent tool selection.
The tool set provides comprehensive coverage of qBittorrent functionality, including torrent lifecycle, file and tracker management, categories, tags, RSS feeds/rules, search plugins, transfer settings, and app preferences. No significant gaps are evident.
Maintenance
Related MCP Connectors
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
MCP server for OpenAI API (chat completions, image generation, embeddings) via AceDataCloud
MCP server exposing the YourImageShare upload API (upload/list/delete) as tools for AI agents.
MCP server exposing the Backtest360 engine API as tools for AI agents.
Related MCP Servers
- FlicenseAqualityDmaintenanceEnables interaction with qBittorrent through its Web API to search for torrents using search plugins and manage downloads. Supports torrent searching, downloading via URLs/magnet links, and torrent management operations like pause, resume, and delete.73-
- AlicenseNot gradedqualityDmaintenanceAn MCP server that replicates Sonarr/Radarr/Lidarr functionality driven by an LLM, enabling automated torrent management for TV shows and movies.MIT
- AlicenseBqualityBmaintenanceMCP server for rTorrent BitTorrent automation, enabling torrent management (add/list/pause/delete), multi-source searching (Nyaa, Pirate Bay, etc.), and post-processing workflows via natural language.71MIT
- AlicenseBqualityCmaintenanceMCP server that exposes qui's JSON REST API as tools for monitoring and managing qBittorrent instances, torrents, automations, cross-seeding, RSS, backups, and related services.12MIT