TorBox MCP Server
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.
TorBox MCP Server
A robust Model Context Protocol (MCP) server that connects your AI agents to Prowlarr and TorBox, allowing for fully autonomous torrent searching, downloading, and media extraction.
Features
Search for torrents across indexers configured in Prowlarr.
Send torrents and magnet links directly to TorBox for secure cloud downloading.
Automatically handles indexer redirects and localhost proxies (e.g., FlareSolverr).
Inspects downloaded TorBox file trees to extract specific media files.
Generates secure streaming/download links for downloaded files.
Built-in guardrails to reject executable files from media requests for security.
Related MCP server: media-stack-mcp
Requirements
Python 3.10+
TorBox Account (with API Key)
Prowlarr Instance (Local or Remote)
Docker (optional, for running Prowlarr/FlareSolverr via the included compose file)
Setup
Clone the repository.
Create a virtual environment and install dependencies:
python -m venv venv source venv/bin/activate pip install -r requirements.txtCopy
.env.exampleto.envand fill in your details:PROWLARR_URL=http://localhost:9696 PROWLARR_API_KEY=your_prowlarr_api_key_here TORBOX_API_KEY=your_torbox_api_key_hereStart the MCP server:
python src/server.pyThe SSE endpoint is
http://localhost:8000/sse. The server binds to0.0.0.0:8000by default so that it remains reachable through Docker port publishing.MCP_HOSTandMCP_PORTmay be used to override the bind address for non-Docker deployments.To run the complete stack in Docker:
docker compose up --build -dIn Docker, Prowlarr is reached by its Compose service name at
http://prowlarr:9696; do not uselocalhostfor this connection. Thelocalhostvalue in the local.envexample is only for running the MCP server directly on the host.Prowlarr indexers protected by Cloudflare can take longer than a typical HTTP request. Searches wait up to 120 seconds by default; set
PROWLARR_SEARCH_TIMEOUTto change that limit.The Docker defaults cap in-flight work to prevent slow external services from piling up inside the MCP process:
MAX_CONCURRENT_PROWLARR_SEARCHES=5 MAX_CONCURRENT_TORBOX_OPS=3 METADATA_MAX_RETRIES=30 METADATA_RETRY_DELAY=5Torrent files downloaded from Prowlarr are accepted without a size cap. To reduce peak memory use, the server spools larger
.torrentpayloads to the container temp directory before uploading them to TorBox.
Usage
The server exposes tools to your AI agent natively over MCP:
search_indexersadd_to_cloudinspect_file_treeget_secure_link
License
MIT License
This server cannot be deployed
Maintenance
Related MCP Connectors
Persistent memory, knowledge graph, task management and more for AI agents via MCP.
OCR, transcription, file extraction, and image generation for AI agents via MCP.
Scrape, crawl and search the web for AI agents via MCP.
MCP server connecting AI agents to 100+ apps (Gmail, Slack, Notion, GitHub) via one-click OAuth.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceUnified MCP server for media acquisition, subtitle automation, and agent-run media workflows, enabling downloads via Prowlarr/qBittorrent and subtitle translation/sidecar creation.1MIT
- AlicenseBqualityDmaintenanceEnables control and management of a self-hosted media stack (Radarr, Sonarr, Prowlarr, SABnzbd, qBittorrent) through natural language via MCP.15GPL 3.0
- AlicenseNot gradedqualityDmaintenanceMCP server that enables local LLMs to manage a home media stack including Radarr, Sonarr, Prowlarr, and others.MIT
- AlicenseNot gradedqualityDmaintenanceMCP server that enables AI agents to search torrents, download them, and stream video directly to VLC while managing active downloads.5 npmMIT