Repository navigation
Add MCP (Model Context Protocol) server support #3058
Replies: 2 comments
Agent BriefCategory: enhancement Current behavior: Desired behavior:
Key interfaces:
Acceptance criteria:
Out of scope:
Why a human: Feature scope is a maintainer call. The maintainer must also decide whether to add an MCP SDK dependency and new endpoint surface, and which tools to expose first. |
|
A third option between "script against the REST API" and "hand-roll a built-in MCP endpoint": run your existing REST API through a gateway that maps each endpoint into MCP tools. qui's API already covers instances/torrents/categories/tags — a gateway turns those into tools/call targets so any MCP client can query/pause them without you implementing the streamable-HTTP protocol, JSON-RPC envelope, or schema generation inside qui itself. That's what we built (JiZhiMCP: host any HTTP API as MCP tools behind one endpoint): https://github.com/alanwang100/jizhineng-mcp If you do go built-in, the one non-obvious gotcha is that streamable-HTTP needs GET (SSE) and DELETE (session close) routes alongside POST, or many clients report "connection failed" even though POST works. Are you leaning built-in for the API-key auth reuse, or open to an external gateway? |
Uh oh!
There was an error while loading. Please reload this page.
Summary
Expose qui's functionality through the Model Context Protocol (MCP), so MCP-compatible clients can query and manage qBittorrent instances through qui.
Motivation
qui's API already covers multiple instances, torrents, categories and tags, automations and cross-seed. An MCP server would let users work with all of that from any MCP client by asking things like "which torrents on instance X are stalled?" or "pause everything in category Y". Today that takes a script against the REST API.
Proposed scope
/api/mcp). It would be off by default, turned on with a setting, and authenticated with the existing API keys.Alternatives considered
A separate MCP server that wraps qui's REST API. It works, but it's one more service to run and it falls out of date when the API changes. A native version could reuse the existing handlers or the swagger spec, possibly with the official Go SDK (
modelcontextprotocol/go-sdk).All reactions