qbt-kit is a complete typed Python client for the qBittorrent WebUI API, and also provides a CLI covering all endpoints and an MCP server for coding agents.
Purpose and coverage: the project targets qBittorrent 5.2.3 and covers all 123 endpoints. The endpoint list is extracted from qBittorrent's C++ source code by release tag and committed to the repository; CI fails when the spec omits an endpoint or fabricates one. The material notes that the wiki page most clients rely on documents only 78 endpoints, and that the torrentcreator and clientdata scopes do not appear on any wiki page.
Main capabilities: each endpoint corresponds to a spec entry, from which client methods, CLI commands, and documentation are generated. CLI commands correspond one-to-one with API scopes, for example torrents info rather than friendlier list naming, so content in the official qBittorrent documentation maps directly; --json is available on all commands. The MCP server provides 15 tools: 13 designed by task, plus qbt_call and list_endpoints, the former keeping all endpoints reachable and the latter letting models discover endpoints. The material explains that not exposing 123 tools directly is to avoid consuming context each conversation turn and to reduce the accuracy of model tool selection.
Usage: both the CLI and MCP must be run via --from, because the qbt name on PyPI belongs to an unrelated package, and qbt-mcp is a script within this project rather than a standalone package. The project can also be added to a project, or installed as a Claude Code plugin: the repository is also a plugin marketplace, and one command installs both the MCP server and the skill; the plugin's bundled MCP server runs from the plugin's own checkout, requires uv but not a published package, and stays consistent with the installed version. Use QBT_URL to point to the server. Credentials are read in the order of command-line arguments, environment variables, macOS Keychain; the Keychain fallback uses service qbittorrent, with account api-key storing the key and webui storing the password. qbt-mcp uses stdio by default, remaining a child process with no listening port; sse and streamable-http transports expose an unauthenticated control plane and hold qBittorrent credentials; although bound to the loopback address, these ports should not be forwarded.
Security restrictions: destructive endpoints require confirm, and delete_files is not implicitly enabled; --read-only or QBT_READ_ONLY=1 blocks mutating operations, including those issued via qbt_call; app/setPreferences rejects WebUI, authentication, and network keys that could cut off connectivity or weaken security, with no override option; rejections return structured reasons and remediation steps.
Use cases and compatibility: suitable for users who need to operate qBittorrent via a CLI or coding agent. The project has been tested on real 4.6, 5.0, 5.1, and 5.2 containers and provides a rename table so that torrents/stop resolves to pause on servers from before the rename. The material also documents several compatibility caveats, such as login success cannot be determined from the status code, the session cookie name is not fixed, a bare 401 is often a Host header check, API keys exist only from 5.2.0 onward, pause/resume was removed in 5.0, progress of 1.0 does not mean all files have been written to disk, setting only the category does not determine the save path, and availability of 0 for a queued torrent does not mean it is dead.
Limitations: the material does not provide information on fees, pricing, or platform support scope. qbt ready checks the local filesystem to determine whether a download has truly completed, so it is only meaningful when the CLI and qBittorrent run on the same machine. The project uses the MIT license.