qBittorrent

v0.2.5
io.github.zxw060810/qb-mcp Checked 1 day ago Published 8 days ago

qBittorrent MCP server: eleven intent-shaped tools, multi-instance, version-aware calls.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

qb_instances

List every configured qBittorrent instance and whether it is reachable.

qb_overview

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…

ParameterTypeDescription
instancestring

qb_list

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).

ParameterTypeDescription
instance *string
categorystring
filterstring
limitinteger
sortstring

qb_detail

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).

ParameterTypeDescription
instance *string
hashstring
namestring
show_tracker_urlsboolean

qb_diagnose

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.

ParameterTypeDescription
instance *string
hashstring

qb_control

Change torrent state. Args: instance: instance key from .instances.json. action: pause | resume | reannounce | force_start. hashes: torrent hashes; empty means every torrent.

ParameterTypeDescription
action *string
instance *string
hashes

qb_set_limit

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.

ParameterTypeDescription
instance *string
dl
hashes
modestring
up

qb_set_share

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_see…

ParameterTypeDescription
hashes *array
instance *string
actionstring
inactive_seeding_time
modestring
ratio
seeding_time

qb_add

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…

ParameterTypeDescription
instance *string
source *string
categorystring
pausedboolean
savepathstring
wait_secondsnumber

qb_remove

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 exis…

ParameterTypeDescription
hashes *array
instance *string
delete_filesboolean

qb_category

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 `tags` are appended to whatever the torrent already carries, and there is no call here for removing a tag. The category is assigned as a whole, so an empty `category` leaves the existing one untouched rather than clearing it. Both fields are optional but…

ParameterTypeDescription
hashes *array
instance *string
categorystring
tags