Skip to main content
Glama
qbittorrent-mcp

qbittorrent-mcp

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-*.whl

This 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-mcp

Or with username/password:

claude mcp add qbittorrent \
  --env QBITTORRENT_URL=http://localhost:8080 \
  --env QBITTORRENT_USERNAME=admin \
  --env QBITTORRENT_PASSWORD=<password> \
  -- qbittorrent-mcp

From source

uv sync
cp .env.example .env   # fill in QBITTORRENT_URL and an auth method
claude mcp add qbittorrent \
  --env QBITTORRENT_URL=http://localhost:8080 \
  --env QBITTORRENT_API_KEY=<key> \
  -- uv run --directory /path/to/qbittorrent-mcp qbittorrent-mcp

Config

Env var

Required

Default

QBITTORRENT_URL

yes

-

QBITTORRENT_API_KEY

one of*

none (preferred)

QBITTORRENT_USERNAME

one of*

none (fall-back)

QBITTORRENT_PASSWORD

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

qbittorrent_torrents

22

reads + writes

qbittorrent_torrent_limits

14

reads + writes

qbittorrent_rss

12

reads + writes

qbittorrent_categories_tags

10

reads + writes

qbittorrent_search

10

reads + writes

qbittorrent_application

9

reads + writes

qbittorrent_transfer

8

reads + writes

qbittorrent_log

2

read-only

qbittorrent_sync

2

read-only

qbittorrent_auth

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 commands

Command

Does

make sync

uv sync

make test

Offline tests - one per endpoint, mocked HTTP

make test-integration

Tests against the live instance (needs QBITTORRENT_URL + auth env)

make build

Build wheel + sdist into dist/

make bump-patch / bump-minor / bump-major

Bump the version in pyproject.toml + uv.lock

make clean

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 tools
qbittorrent_app_build_infoA
Read-only

Build info: Qt, libtorrent, Boost and OpenSSL versions plus app bitness.

Inputs: no named parameters. Returns: object

qbittorrent_app_default_save_pathA
Read-only

The default save path for new torrents, e.g. C:/Users/me/Downloads.

Inputs: no named parameters. Returns: result

qbittorrent_app_get_cookiesA
Read-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_preferencesA
Read-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_shutdownA
Destructive

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_versionA
Read-only

The qBittorrent application version, e.g. v5.0.4.

Inputs: no named parameters. Returns: result

qbittorrent_app_webapi_versionA
Read-only

The WebAPI version implemented by this qBittorrent, e.g. 2.14.1.

Inputs: no named parameters. Returns: result

qbittorrent_log_mainA
Read-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_peersA
Read-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_itemsA
Read-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_articlesA
Read-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_itemA
Destructive

Remove an RSS folder or feed, e.g. "The Pirate Bay\Top100".

Inputs: path (required). Returns: result

qbittorrent_rss_remove_ruleB
Destructive

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_rulesB
Read-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_deleteA
Destructive

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_pluginsB
Read-only

Installed search plugins: enabled, fullName, name, supportedCategories, url, version.

Inputs: no named parameters. Returns: result

qbittorrent_search_resultsB
Read-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_statusA
Read-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_maindataA
Read-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_peersA
Read-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_contentsA
Read-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_hashesB
Read-only

SHA1 hashes of all pieces of one torrent, in order.

Inputs: hash (required). Returns: result

qbittorrent_torrent_piece_statesA
Read-only

Piece states of one torrent as ints: 0 not downloaded, 1 downloading, 2 downloaded.

Inputs: hash (required). Returns: result

qbittorrent_torrent_propertiesA
Read-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_categoriesA
Read-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_deleteA
Destructive

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_limitA
Read-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_listA
Read-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_share_limitsA

Set share limits for torrents (hashes pipe-separated or "all"). ratio_limit (share ratio), seeding_time_limit and inactive_seeding_time_limit (minutes). -2 = use global limit, -1 = no limit.

Inputs: hashes (required), ratio_limit, seeding_time_limit, inactive_seeding_time_limit. 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_tagsA
Read-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_limitA
Read-only

Per-torrent upload speed limits (bytes/s), keyed by hash. hashes is pipe-separated or "all".

Inputs: hashes (required). Returns: object

qbittorrent_torrent_trackersA
Read-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_seedsB
Read-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_limitA
Read-only

Global download speed limit in bytes/s (0 if no limit is applied).

Inputs: no named parameters. Returns: result

qbittorrent_transfer_infoA
Read-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_modeA
Read-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_limitA
Read-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

    A3.6/5.0

    Scored across 90 tools

    Disambiguation5/5

    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.

    Naming Consistency3/5

    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.

    Tool Count1/5

    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.

    Completeness5/5

    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

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      A
      quality
      D
      maintenance
      Enables 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.
      7
      3
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      An MCP server that replicates Sonarr/Radarr/Lidarr functionality driven by an LLM, enabling automated torrent management for TV shows and movies.
      MIT
    • A
      license
      B
      quality
      B
      maintenance
      MCP 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.
      7
      1
      MIT
    • A
      license
      B
      quality
      C
      maintenance
      MCP 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.
      12
      MIT