qb-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| QB_MCP_CONFIG | No | Path to the qb-mcp instances configuration file. If unset, qb-mcp reads .instances.json from the current directory. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| qb_instancesA | List every configured qBittorrent instance and whether it is reachable. |
| qb_overviewA | Summarise one instance (or all) without listing any torrent. Use this first, when the question is "what is this instance doing right now": it returns connection state, live up/down speed, all-time transfer totals and a count of torrents per state. Reach for qb_list when you need the torrents themselves, qb_detail for one torrent's files and trackers, and qb_diagnose when the question is specifically why nothing is uploading. Returns, per instance, the qBittorrent version, connection status, current speeds, all-time downloaded/uploaded totals, the share ratio, and a breakdown such as "uploading 2, stalledUP 91". Args: instance: instance key from .instances.json; empty means every instance. |
| qb_listA | List torrents on one instance. Args: instance: instance key from .instances.json. filter: all | downloading | seeding | completed | paused | active | stalled | errored. category: restrict to a category name. sort: field to sort by, e.g. uploaded, ratio, added_on, size. limit: maximum rows to return (1-50). |
| qb_detailA | Show one torrent in depth, including tracker status. Args: instance: instance key from .instances.json. hash: torrent hash (preferred). name: fuzzy name match, used when hash is empty. show_tracker_urls: reveal full announce URLs (they may contain a private tracker passkey - off by default so the secret never reaches the model). |
| qb_diagnoseA | Explain why a qBittorrent instance is (or is not) uploading. Checks login, tracker health, listening port, peer counts, speed limits and torrent states, then states a conclusion. Args: instance: instance key from .instances.json. hash: optional torrent hash to inspect trackers for a single torrent. |
| qb_controlB | Change torrent state. Args: instance: instance key from .instances.json. action: pause | resume | reannounce | force_start. hashes: torrent hashes; empty means every torrent. |
| qb_set_limitA | Set upload/download speed limits in bytes per second (0 = unlimited). Args: instance: instance key from .instances.json. up: upload limit in bytes/s; 0 means unlimited. dl: download limit in bytes/s; 0 means unlimited. hashes: torrent hashes; empty means the global limit. mode: "normal" for the normal global limit, "alternative" for the alternative (scheduled) limit. qBittorrent keeps them separate and the active one depends on whether alternative mode is switched on. |
| qb_set_shareA | Set ratio and/or seeding-time limits for specific torrents. Args: instance: instance key from .instances.json. hashes: torrent hashes to update. ratio: maximum ratio; -1 means unlimited, -2 means use the global value. seeding_time: maximum seeding time in MINUTES (qBittorrent's unit); -1 unlimited, -2 use global (default). inactive_seeding_time: maximum inactive seeding time in MINUTES; -1 unlimited, -2 use global (default). action: what to do once a limit is reached - "stop" (default) or "enable_super_seeding". Removal is deliberately not offered here; use qb_remove for anything destructive. mode: how the limits combine - "default" (inherit), "any" (stop when either limit is reached) or "all" (both). Only qBittorrent 5.3+ honours it; older versions ignore the field. |
| qb_addA | Add a torrent from a URL, magnet link, or a local .torrent path. Args: instance: instance key from .instances.json. source: magnet link, http(s) URL, or absolute path to a .torrent file. savepath: target directory; empty uses the instance default. category: category to assign. paused: add in paused state (default true) so it can be reviewed first. wait_seconds: how long to wait for the torrent to show up. Magnet links ingest metadata asynchronously, so the add request returning 200 does not prove anything; the torrent must appear in the list. |
| qb_removeA | Remove torrents from an instance. Downloaded data is kept by default. Removal is irreversible: the torrent and its resume data are gone, and re-adding it means re-downloading the metadata. If all you want is to stop transferring, pause it with qb_control instead - that keeps everything and can be undone. Set delete_files only when you also want the payload deleted; that cannot be undone either. Removing a hash that is no longer present is harmless - qBittorrent accepts the call, and the reply counts the hashes you asked to remove rather than the ones that existed. Args: instance: instance key from .instances.json. hashes: torrent hashes to remove. delete_files: also delete the downloaded data (default false). |
| qb_categoryA | Move torrents into a category and/or add tags to them. Use this to organise a library after the fact - a new download that landed in the wrong category, or a batch you want to find again later. It changes metadata only; nothing is downloaded, stopped or removed. Tags merge, they do not replace: the values in Both fields are optional but at least one must be non-empty, otherwise the call returns an error. If the category is applied and the tag call then fails, the category change stays and the error names the failure - the operation is not rolled back. Args: instance: instance key from .instances.json. hashes: torrent hashes to update. category: category name; empty leaves it unchanged. tags: tags to append; existing tags are kept. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 11 tools
Each tool targets a distinct level of the domain (instance summary, torrent list, single-torrent detail, diagnosis, mutation of state, limits, share rules, add, remove, metadata), and the descriptions explicitly route between the close pairs (overview vs list vs detail vs diagnose, control vs remove, set_limit vs set_share). The overlap that does exist is called out in prose, so an agent can pick correctly.
All tools share a clean `qb_` prefix and snake_case, with verb-led names for operations (qb_add, qb_remove, qb_control, qb_set_limit, qb_set_share). A few read as nouns rather than verb_noun (qb_instances, qb_overview, qb_detail, qb_category), which is a minor deviation from an otherwise predictable pattern.
Eleven tools is well within a sensible band and each maps to a real qBittorrent capability, with no filler or near-duplicate entry. The surface is scoped enough to be readable in one pass but broad enough to cover the workflow end to end.
Core lifecycle is covered: discover instances, inspect, diagnose, add, pause/resume/reannounce, throttle, set share rules, tag/categorise, and remove. Gaps remain around metadata management — no category listing/creation or tag removal, and no recheck/verify-data — which an agent would hit when asked to build new categories or clean up tags.