mcp-rtorrent
Provides tools for interacting with an rtbit BitTorrent client: listing and inspecting torrents, viewing global stats, peers, files and limits, pausing/resuming torrents, and adding magnet links or .torrent URLs.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
mcp-rtorrent
Publishing to the MCP Registry
This server is registered as io.github.je-bin/mcp-rtorrent in the MCP Registry.
server.json holds the registry metadata, and the mcp-name marker above is what the registry
checks to prove ownership of the published package.
To publish a new version:
Create the package on PyPI and configure Trusted Publishing for this repository and the
publish-mcp.ymlworkflow.Bump the version in
pyproject.toml(orserver.json) and tag the release (git tag vX.Y.Z).Push the tag: the workflow publishes to PyPI and then to the MCP Registry.
An MCP (Model Context Protocol) server that exposes an rtbit client — the Rust BitTorrent client used in my homelab — to AI assistants over stdio.
The server speaks to the rtbit HTTP API (v7) and turns its REST routes into 10 MCP tools: list torrents, read their progress and peers, pause, resume, and add a magnet link. Deleting a torrent is deliberately not exposed.
Related MCP server: qBittorrent MCP Server
Features
Tool | What it does |
| Global client statistics: download/upload speed, live peers, counters, uptime |
| List torrents, optionally filtered by name, category or state |
| Full detail of one torrent (metadata, tags, trackers, output folder) |
| Progress of one torrent: bytes downloaded, percentage, state |
| Peers connected to a torrent: address, client, progress, speed |
| Files contained in a torrent, with their size |
| Download limits configured in the client (speed, slots, peers) |
| Pause a torrent |
| Resume a torrent |
| Add a torrent from a magnet link or a |
Torrents can be addressed either by their numeric id or by their info hash.
Requirements
Python 3.10+
mcp2.3.0 or later (providesmcp.server.mcpserver.MCPServer)A reachable rtbit instance with its HTTP API enabled, and an API key (
rtb_...)
Installation
git clone https://github.com/Je-Bin/mcp-rtorrent.git
cd mcp-rtorrent
python3 -m venv .venv
. .venv/bin/activate
pip install -r requirements.txtConfiguration
Everything is configured through environment variables:
Variable | Required | Default | Description |
| recommended |
| Base URL of the rtbit HTTP API. The default is a documentation address — point it at your own instance. |
| yes | (empty) | The rtbit API key ( |
The key is only ever read from the environment: it is never written to disk, never logged and never passed on the command line.
Example MCP client configuration
{
"mcpServers": {
"rtorrent": {
"command": "/path/to/mcp-rtorrent/.venv/bin/python",
"args": ["/path/to/mcp-rtorrent/server.py"],
"env": {
"RTBIT_URL": "http://192.0.2.10:3030",
"RTBIT_API_KEY": "rtb_..."
}
}
}
}Running it manually
RTBIT_URL=http://192.0.2.10:3030 RTBIT_API_KEY=rtb_... python server.pyThe server speaks MCP over stdio, so it stays silent until a client talks to it.
Tools in action
A typical conversation looks like this:
You: which torrents are still downloading?
Assistant: (calls rtbit_list_torrents with state="downloading"){
"tool": "rtbit_list_torrents",
"arguments": { "state": "downloading", "limit": 20 }
}{
"total_torrents": 128,
"matches": 3,
"returned": 3,
"torrents": [
{
"id": 412,
"name": "example-linux-iso",
"category": "isos",
"tags": ["linux"],
"state": "downloading",
"progress_pct": 63.4,
"total_size": "2.1 GiB",
"finished": false
}
]
}Other examples:
{ "tool": "rtbit_global_stats", "arguments": {} }{ "tool": "rtbit_get_torrent", "arguments": { "torrent_id": "412" } }{ "tool": "rtbit_peer_stats", "arguments": { "torrent_id": "412", "state": "downloading" } }{ "tool": "rtbit_pause", "arguments": { "torrent_id": "412" } }{ "tool": "rtbit_start", "arguments": { "torrent_id": "412" } }{
"tool": "rtbit_add_magnet",
"arguments": {
"magnet_uri": "magnet:?xt=urn:btih:0123456789abcdef0123456789abcdef01234567",
"output_folder": "/downloads/isos",
"paused": true
}
}Helper script
scripts/rtbit_bulk_start.py resumes every paused torrent in one go (finished torrents are
skipped). It is a plain CLI, not an MCP tool:
RTBIT_URL=http://192.0.2.10:3030 RTBIT_API_KEY=rtb_... \
python scripts/rtbit_bulk_start.py --all --dry-runSecurity
No deletion tool. The rtbit API can delete torrents and their data; this server does not expose that route. An assistant can add, pause and resume, but never erase.
Least privilege. Point
RTBIT_API_KEYat a key scoped to the operations you allow, and keep the rtbit API bound to the local network or behind a reverse proxy.Secrets stay in the environment. The API key is read from
RTBIT_API_KEYonly. It is never written to disk, echoed in tool output, or included in a command line. If the variable is unset or empty, the tools return a clear configuration error instead of calling the API.Local transport. The server communicates over stdio with the MCP client, so no listening socket is opened on your network.
No arbitrary code execution. The server only talks to the rtbit HTTP API; it never runs shell commands and never touches the file system.
License
MIT — see LICENSE.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Manage Superlist tasks and lists in plain language from any MCP-compatible AI agent.
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
Local-first task manager: create, edit, and complete tasks, projects, and checklists via MCP.
Your org's AI agents, tasks, runs, search, and brain files as MCP tools and resources.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides tools for interacting with the Transmission BitTorrent client via natural language, enabling users to manage torrents, configure download settings, and monitor download activity.4MIT
- FlicenseAqualityDmaintenanceEnables interaction with qBittorrent through its Web API to search for torrents using search plugins and manage downloads. Supports torrent searching, downloading via URLs/magnet links, and torrent management operations like pause, resume, and delete.73-
- AlicenseBqualityBmaintenanceMCP server for rTorrent BitTorrent automation, enabling torrent management (add/list/pause/delete), multi-source searching (Nyaa, Pirate Bay, etc.), and post-processing workflows via natural language.71MIT
- AlicenseNot gradedqualityCmaintenanceEnables an agent to submit magnet links to a Transmission daemon and monitor their download progress, including pausing, resuming, and listing torrents with verdicts like downloading, stalled, or complete.MIT