qbit_manage-mcp
MCP server exposing qbit_manage's Web API as tools, so an LLM can read and manage a qbit_manage instance: run maintenance commands on qBittorrent torrents, manage config files, scheduler, logs, security settings, and system state.
README
qbit_manage-mcp
Part of the arr-mcps collection. MCP server exposing qbit_manage's Web API as tools, so an LLM can read and manage a qbit_manage instance: run maintenance commands against your qBittorrent torrents, manage config files (create/read/update/delete/validate/backup/restore), the scheduler, logs, security settings, and system state.
Built with FastMCP. qbit_manage's API has no vendored
OpenAPI spec, so the endpoint table is hand-maintained against qbit_manage's
modules/web_api.py handler routes (see AGENTS.md).
Enabling the Web API on your qbit_manage server
qbit_manage's REST API runs at port 8181 by default. Start it with the web
server enabled, e.g. qbit_manage --web-server --host 0.0.0.0 --port 8181
(or set QBT_WEB_SERVER=true / QBT_HOST / QBT_PORT in Docker). See
qbit_manage's Web-API docs
for details.
Install
Download a wheel from the latest release
and install it as a uv tool (no repo checkout needed):
uv tool install qbit_manage_mcp-*.whl
This puts a qbit-manage-mcp command on your PATH. Register it with Claude Code:
claude mcp add qbit-manage \
--env QBIT_MANAGE_URL=http://qbit-manage.example.com:8181 \
--env QBIT_MANAGE_API_KEY=<key> \
-- qbit-manage-mcp
From source
uv sync
cp .env.example .env # fill in QBIT_MANAGE_URL and QBIT_MANAGE_API_KEY
claude mcp add qbit-manage \
--env QBIT_MANAGE_URL=http://qbit-manage.example.com:8181 \
--env QBIT_MANAGE_API_KEY=<key> \
-- uv run --directory /path/to/qbit_manage-mcp qbit-manage-mcp
Config
| Env var | Required | Default |
|---|---|---|
QBIT_MANAGE_URL |
yes | - |
QBIT_MANAGE_API_KEY |
yes* | none (no API key header sent if unset) |
QBIT_MANAGE_USERNAME |
no | used for Basic auth when no API key is set |
QBIT_MANAGE_PASSWORD |
no | used for Basic auth when no API key is set |
* If authentication is enabled on qbit_manage (method: api_only or basic)
you must set the API key (or username/password), or every authenticated call
returns 401. If authentication is disabled or bypass_auth_for_local is on,
the server still works without credentials. If your qbit_manage instance is
served under a base URL (--base-url/QBT_BASE_URL), include that subpath in
QBIT_MANAGE_URL.
Tools
Six resource-scoped tools. Each takes an operation (one of the listed
endpoints) plus an arguments dict matching that operation's parameters, and
dispatches to the underlying endpoint. This is the fleet's portmanteau
pattern: all 23 qbit_manage endpoints wrapped as 6 tools so every session's
system prompt stays small.
| Tool | Operations (endpoints) |
|---|---|
qbit_manage_config |
list_configs, get_config, create_config, update_config, delete_config, validate_config, backup_config, list_config_backups, restore_config_from_backup (/api/configs, /api/configs/{filename} + /validate, /backup, /backups, /restore) |
qbit_manage_commands |
run_command (/api/run-command) |
qbit_manage_scheduler |
get_scheduler_status, update_schedule, toggle_schedule_persistence (/api/scheduler, /api/schedule, /api/schedule/persistence/toggle) |
qbit_manage_logs |
get_logs, list_log_files, get_documentation (/api/logs, /api/log_files, /api/docs) |
qbit_manage_system |
get_version, health_check, get_base_url, force_reset_running_state (/api/version, /api/health, /api/get_base_url, /api/system/force-reset) |
qbit_manage_security |
get_security_settings, get_security_status, update_security_settings (/api/security, /api/security/status) |
run_command is how an LLM triggers actual qbit_manage work against
qBittorrent: pass a body with commands (e.g. ["cat_update", "tag_update"]),
optionally hashes to scope to specific torrents, and dry_run: true to
preview without side effects. Valid commands: cat_update, tag_update,
recheck, rem_unregistered, tag_tracker_error, rem_orphaned,
tag_nohardlinks, share_limits.
Config write operations take the config data as {"data": <config dict>} —
data mirrors the YAML structure. get_documentation returns raw markdown
text, not JSON.
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 QBIT_MANAGE_URL/QBIT_MANAGE_API_KEY; write tests need QBIT_MANAGE_WRITE_TESTS=1) |
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.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。