Mediabox MCP
Self-hosted media server with AI-powered management via MCP, providing tools for Jellyfin, Sonarr, Radarr, and download management.
README
<p align="center"> <img src="assets/logo.png" width="120" alt="Mediabox MCP"> </p>
<h1 align="center">Mediabox MCP</h1>
<p align="center"> Self-hosted media server with AI-powered management via MCP, a native Desktop App, and a Telegram bot </p>
<p align="center"> <img src="https://img.shields.io/badge/version-2.2.0--beta.1-blue" alt="Version"> <img src="https://img.shields.io/badge/license-MIT-green" alt="License"> <img src="https://img.shields.io/badge/docker-compose-2496ED?logo=docker&logoColor=white" alt="Docker"> <img src="https://img.shields.io/badge/Tauri-2-FFC131?logo=tauri&logoColor=white" alt="Tauri"> <img src="https://img.shields.io/badge/TypeScript-3178C6?logo=typescript&logoColor=white" alt="TypeScript"> </p>
<p align="center"> <a href="docs/README.en.md"><img src="https://img.shields.io/badge/docs-English-blue?style=for-the-badge" alt="English"></a> <a href="docs/README.es.md"><img src="https://img.shields.io/badge/docs-Español-red?style=for-the-badge" alt="Español"></a> </p>
Three ways to run it
| Surface | Use case | Entry point |
|---|---|---|
| Desktop App (Tauri) | Recommended for Windows/macOS and local-first installs with a built-in setup wizard, dashboard, AI chat, log viewer, and one-click updates. The MCP server runs as a bundled sidecar — no external Node install needed. | npm run dev:desktop / packaged release |
| CLI wizard | Recommended for Linux servers, VPS, and headless deploys. Same orchestration engine the Desktop wizard uses, exposed as a one-shot interactive prompt. | npx create-mediabox |
| Headless MCP server | Plug the running stack into Claude Desktop, ChatGPT, Gemini, an OpenAI-compatible client, or the optional Telegram bot — over OAuth-protected Streamable HTTP. |
https://your-domain.com/mcp |
All three share the same Docker stack, the same @mediabox/core orchestration pipeline, and the same set of MCP tools.
Quick Start (CLI)
npx create-mediabox
One command. Answer a few questions. The CLI sets up the full stack automatically on a Linux server or VPS — Docker containers, API keys, service connections, media libraries, everything.
Supports Local (home network), VPS (with Caddy and automatic HTTPS), and Cloudflare Tunnel (public access from home without opening ports) deployments.
Requires Docker, Docker Compose, and Node.js >= 20. The unqualified
npx create-mediaboxcommand installs the current npmlatestrelease. Use--generate-onlyto write config files without starting Docker.--local-buildis for contributors running from a cloned repository root; normalnpxinstalls use published GHCR images.
Quick Start (Desktop App)
git clone https://github.com/JuanCMPDev/mediabox-mcp.git
cd mediabox-mcp
npm install
npm run dev:desktop
Desktop builds need Rust (for Tauri) and Bun (compiles the Node sidecar into a single executable via
bun build --compile). On first launch the app walks you through a 9-step wizard — pick a language, run the Docker pre-flight check, set deployment mode, paths, credentials, optional AI provider, then deploy. The wizard streams live progress back into the UI.
Architecture
Internet
│
┌────────────┼────────────┐
│ Reverse Proxy │
│ (Caddy / nginx / etc) │
│ :80 / :443 (HTTPS) │
└────────────┬────────────┘
│ mediabox-net
┌──────────────────────────┼──────────────────────────────────────┐
│ ▼ │
│ ┌──────────────────────────────────────────────────────────┐ │
│ │ Client Surfaces │ │
│ │ Mediabox Desktop · Telegram Bot · any MCP client │ │
│ │ (Claude, ChatGPT, Gemini, custom) │ │
│ └──────────────────┬───────────────────────────────────────┘ │
│ │ MCP (Streamable HTTP) · REST · NDJSON │
│ ▼ │
│ ┌──────────────────────────────────────────────────────────┐ │
│ │ MCP Server (:3000) │ │
│ │ /mcp · /api/dashboard · /api/chat · /api/setup │ │
│ │ 30 MCP tools · OAuth2 · @mediabox/chat-core · core │ │
│ └──┬──────────┬──────────┬──────────┬──────────┬───────────┘ │
│ ▼ ▼ ▼ ▼ ▼ │
│ Jellyfin Sonarr Radarr qBittorrent PyLoad │
│ :8096 :8989 :7878 :8085 :8000 │
│ │ │ │ │ │
│ │ Prowlarr ◄───┘ │ │
│ │ :9696 │ │
│ │ │ │ │
│ │ FlareSolverr │ │
│ │ :8191 │ │
│ ▼ ▼ │
│ ┌──────────────────────────────────────────────────────────┐ │
│ │ Shared Media Volume │ │
│ │ /data/movies · /data/tv · /data/anime · /music │ │
│ └──────────────────────────────────────────────────────────┘ │
└─────────────────────────────────────────────────────────────────┘
Local mode: ports exposed directly
VPS mode: ports bound to 127.0.0.1 + Caddy reverse proxy
Tunnel mode: ports bound to 127.0.0.1 + Cloudflare Tunnel
In the Desktop App the same MCP server runs as a Tauri sidecar (compiled to a native executable with bun build --compile), bound to 127.0.0.1 on a random port and authed via an ephemeral internal API key. The webview talks to it over HTTP exactly like a remote deploy.
MCP Tools (30)
| Category | Tools | Description |
|---|---|---|
| Jellyfin | server_status activity_log search_media show_details |
Library browsing, monitoring, playback history |
| Library | manage_library manage_files rename_episodes get_library_state fix_subtitles |
File ops, subtitle conversion, batch renaming, cross-service state queries |
| Sonarr | series_search series_status series_remove series_releases series_grab series_import series_rescan |
TV/anime management with auto ID resolution |
| Radarr | movie_search movie_status movie_remove movie_releases movie_grab movie_import movie_rescan |
Movie management with duplicate prevention |
| Downloads | download_add download_direct download_status cancel_downloads |
Direct URLs, PyLoad, queue management, orphan cleanup |
| Maintenance | optimize_media cleanup_server check_jobs |
Strip tracks, clean server, monitor jobs |
The Desktop chat groups these into a smaller set of high-level virtual tools (e.g. series, movies, downloads) that the LLM picks first, then the engine routes the chosen action to the right MCP tool.
What does the wizard do?
The Desktop wizard and the create-mediabox CLI share the same orchestration pipeline (@mediabox/core). Both replace ~15 manual setup steps with a single flow:
- Ask for your preferences — deployment mode (Local/VPS/Tunnel), media paths, credentials, timezone, optional integrations. The Desktop wizard can configure the built-in AI chat; the CLI only asks for an AI provider when Telegram is enabled.
- Generate
.env,docker-compose.yml,Caddyfile(VPS), and pre-configures qBittorrent - Start all Docker containers and wait for each service to be ready
- Auto-configure the entire stack via service APIs:
- Extracts Sonarr/Radarr/Prowlarr API keys
- Runs Jellyfin setup wizard, creates admin user and API key
- Configures qBittorrent as download client in Sonarr/Radarr
- Adds root folders and syncs Prowlarr indexers
- Sets up FlareSolverr proxy and Jellyfin media libraries
- Sets web UI credentials across all services
After setup, the only manual step is adding your torrent indexers in Prowlarr — the Desktop App walks you through it as a final wizard screen.
Repository layout
mediabox-mcp/
├── docker-compose.yml # Full service stack
├── .env.example # Environment variable template
└── packages/
├── chat-core/ # LLM + MCP tool-calling engine (OpenRouter + Gemini)
├── contracts/ # Shared API types between server and UI
├── core/ # Orchestration engine: generators, deployer, service clients
├── desktop/ # Tauri 2 desktop shell (bundles UI + MCP sidecar)
├── mcp-server/ # Express MCP + REST server (TypeScript)
├── mcp-telegram-client/ # Optional Telegram bot client
├── mediabox-cli/ # `npx create-mediabox` interactive wizard
└── ui/ # React UI for the Desktop App (Vite + TanStack Query + i18next)
See docs/README.en.md (or Español) for full installation, manual setup, and connection instructions.
License
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。