AI agent for qBittorrent management, RSS automation, and search.
pip install qbittorrent-agent==2.3.10 Copy PIP instructions
Documentation — Installation, deployment, usage across the API, CLI, and MCP interfaces, and guidance for provisioning the qBittorrent backing service are maintained in the official documentation.
Qbittorrent Agent is a production-grade Agent and Model Context Protocol (MCP) server designed to interface directly with AI agent for qBittorrent management, RSS automation, and search..
The complete documentation is published as the official documentation site and is the recommended reference for installation, deployment, and day-to-day operation.
This agent wraps the AI agent for qBittorrent management, RSS automation, and search. API. The operator can interact with it programmatically or via its integrated execution entrypoints.
Detailed instructions on how to use the underlying API wrappers, extended schema bindings, and developer SDK references are maintained in docs/index.md.
This server use dynamic Action-Routed tools to optimize token overhead and maximize IDE compatibility.
This table is auto-generated from the live server — do not edit by hand.
8 action-routed tool(s) · 87 verbose 1:1 tool(s). Each is enabled unless its TOOL toggle is set false; MCP_TOOL_MODE selects the surface (intent default — the six verb-tools, granular set loaded on demand · condensed action-routed · verbose 1:1 · both). Auto-generated — do not edit.
Detailed tool schemas, parameter shapes, and validation constraints are preserved in docs/usage.md.
The operator can configure tool filtering via multiple input channels:
When query strings or parameters are supplied, an LLM-free Knowledge Graph resolution layer (using DynamicToolOrchestrator) matches query intents against known tool tags, names, or descriptions, with safe fallback and automated 24-hour background cache refreshing.
Install the connector-focused [mcp] extra. Examples use qbittorrent-agent[mcp] to add FastMCP / FastAPI through scion-sdk[mcp]; the required Agent Utilities core still carries epistemic-graph[full]. The [agent-runtime] extra additionally enables model orchestration.
{ "mcpServers": { "qbittorrent-mcp": { "command": "uvx", "args": [ "--from", "qbittorrent-agent[mcp]", "qbittorrent-mcp" ], "env": { "MCP_TOOL_MODE": "intent", "APPTOOL": "True", "LOGTOOL": "True", "RSSTOOL": "True", "SEARCHTOOL": "True", "SYNCTOOL": "True", "TORRENTSTOOL": "True", "TRANSFERTOOL": "True" } } } } Runtime references require an alias-aware launcher such as Arbora. Other launchers must omit those entries and inject the resolved values through their own runtime secret boundary.
{ "mcpServers": { "qbittorrent-mcp": { "url": "http://localhost:8000/qbittorrent-mcp/mcp" } } } Run a reviewed container image as a least-privilege stdio child (no listener or published port):
docker run -i --rm \ --read-only \ --cap-drop=ALL \ --security-opt=no-new-privileges \ --pids-limit=256 \ --tmpfs /tmp:rw,noexec,nosuid,nodev,size=64m \ -e TRANSPORT=stdio \ -e MCP_TOOL_MODE=intent \ -e APPTOOL=True \ -e LOGTOOL=True \ -e RSSTOOL=True \ -e SEARCHTOOL=True \ -e SYNCTOOL=True \ -e TORRENTSTOOL=True \ -e TRANSFERTOOL=True \ registry.example.invalid/qbittorrent-agent@sha256: qbittorrent-mcp For containerized network HTTP, supply an authenticated TLS ingress (or direct server TLS), exact MCP_ALLOWED_HOSTS, and an exact trusted-proxy CIDR policy through the operator-owned deployment profile. The generator does not emit an unauthenticated non-loopback listener.
Auto-generated from the code-read env surface (MCP_TOOL_MODE + package vars) — do not edit.
qbittorrent-agent can run as a local stdio process or container, or behind a remote network boundary. The Deployment guide has full, copy-paste mcp_config.json for all four transports — stdio, streamable-http, local container, and remote URL:
This repository features a fully integrated Pydantic AI Graph Agent. It communicates over the Agent Control Protocol (ACP) and interacts smoothly with the Agent Web UI (AG-UI) and Terminal interface.
# Set credentials export QBITTORRENT_URL=" " export QBITTORRENT_USERNAME="your_value" export QBITTORRENT_PASSWORD="your_value" # Run the agent server qbittorrent-agent --provider openai --model-id gpt-4o Docker Compose Orchestration The following docker/agent.compose.yml configures the Agent, Web UI, and Terminal Interface together:
version: '3.8' services: qbittorrent-agent-mcp: init: true user: "10001:10001" read_only: true cap_drop: - ALL security_opt: - no-new-privileges:true pids_limit: 256 mem_limit: ${AGENT_CONTAINER_MEMORY_LIMIT:-4g} cpus: ${AGENT_CONTAINER_CPU_LIMIT:-2.0} tmpfs: - /tmp:rw,noexec,nosuid,nodev,size=64m image: ${QBITTORRENT_AGENT_MCP_IMAGE:?set-QBITTORRENT_AGENT_MCP_IMAGE-to-image@sha256-digest} container_name: qbittorrent-agent-mcp hostname: qbittorrent-agent-mcp restart: always env_file: - ../.env environment: - PYTHONUNBUFFERED=1 - HOST=0.0.0.0 - PORT=8000 - TRANSPORT=streamable-http ports: - "127.0.0.1:8000:8000" healthcheck: test: ["CMD", "python3", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8000/health')"] interval: 30s timeout: 10s retries: 3 start_period: 10s logging: driver: json-file options: max-size: "10m" max-file: "3" qbittorrent-agent-agent: init: true user: "10001:10001" read_only: true cap_drop: - ALL security_opt: - no-new-privileges:true pids_limit: 256 mem_limit: ${AGENT_CONTAINER_MEMORY_LIMIT:-4g} cpus: ${AGENT_CONTAINER_CPU_LIMIT:-2.0} tmpfs: - /tmp:rw,noexec,nosuid,nodev,size=64m image: ${QBITTORRENT_AGENT_AGENT_IMAGE:?set-QBITTORRENT_AGENT_AGENT_IMAGE-to-image@sha256-digest} container_name: qbittorrent-agent-agent hostname: qbittorrent-agent-agent restart: always depends_on: - qbittorrent-agent-mcp env_file: - ../.env command: [ "qbittorrent-agent" ] environment: - PYTHONUNBUFFERED=1 - HOST=0.0.0.0 - PORT=9004 - MCP_URL=http://qbittorrent-agent-mcp:8000/mcp - PROVIDER=${PROVIDER:-openai} - MODEL_ID=${MODEL_ID:-gpt-4o} - ENABLE_WEB_UI=True - ENABLE_OTEL=True ports: - "127.0.0.1:9004:9004" healthcheck: test: ["CMD", "python3", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:9004/health')"] interval: 30s timeout: 10s retries: 3 start_period: 10s logging: driver: json-file options: max-size: "10m" max-file: "3" Detailed graph node architecture explanations, custom skill configurations, and agentic trace guides are available in docs/deployment.md.
24 package + 16 inherited variable(s). Auto-generated from .env.example + the shared scion-sdk set — do not edit.
The agent and MCP server can be fully configured using the following environment variables:
Built directly upon the enterprise-ready scion-sdk core, standard security parameters are fully supported:
Pick the extra that matches what the operator want to run:
# Connector-focused MCP server (includes the shared graph engine) uv pip install "qbittorrent-agent[mcp]" # Agent runtime (adds model orchestration to the shared graph engine) uv pip install "qbittorrent-agent[agent]" # Everything (development) uv pip install "qbittorrent-agent[all]" # or: python -m pip install "qbittorrent-agent[all]" Container images (:mcp vs :agent) One multi-stage docker/Dockerfile builds two right-sized images, selected by --target:
docker build --target mcp -t example/qbittorrent-agent:mcp docker/ # connector-focused MCP server docker build --target agent -t example/qbittorrent-agent:agent-local docker/ # agent runtime docker/mcp.compose.yml runs the connector-focused :mcp server; docker/agent.compose.yml runs the agent (immutable agent digest) with a co-located :mcp sidecar.
Both [mcp] and [agent] carry the epistemic-graph engine through the required Agent Utilities core dependency (epistemic-graph[full]). The [mcp] extra keeps the server connector-focused; [agent] also enables model orchestration. Local deployments can use the bundled engine. For production or shared state, run epistemic-graph as a dedicated database service and configure the runtime to use it. Deployment recipes (single-node + Raft HA), connection configuration, and architecture diagrams are documented in the epistemic-graph deployment guide.
Contributions are welcome! Please ensure code quality by running local checks before submitting pull requests:
This package can be provisioned for you — skill-guided — by the agent-os-genesis universal skill (its single-package deploy mode): it picks your install method, seeds secrets to OpenBao/Vault (or .env), trusts your enterprise CA, registers the MCP server, and verifies it — the same machinery that stands up the whole Agent OS, narrowed to just this package. Ask your agent to "deploy qbittorrent-agent with agent-os-genesis".
Secrets are read-existing + seeded via vault_sync — you are only prompted for what's missing.
This package ships a compact canonical skill surface with specialist procedures kept as referenced workflows. The current MCP tools, skill metadata, connector_manifest.yml, ontology, mappings, shapes, fixtures, migrations, tool-schema fingerprints, and certification metadata form one versioned capability contract. Validate them together; do not rely on stale tool names or historical per-task skill wrappers.
Runtime endpoints, credentials, certificate trust, tenant identity, retention, and observability policy are deployment inputs and are never packaged values. See Configuration, trust, and privacy before enabling a network transport, connector ingestion, Arbora delegation, or trace export.
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
None of the files in this release were uploaded with provenance metadata.
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.




