NZBGet MCP Server
Enables users to control and monitor NZBGet Usenet downloads through natural language using MCP-compatible clients. It provides 17 tools for managing download queues, tracking history, and adjusting server settings like speed limits.
README
NZBGet MCP Server
An MCP (Model Context Protocol) server for NZBGet that exposes NZBGet API functionality as MCP tools usable by LLM clients.
Control your Usenet downloads with natural language through Claude and other MCP-compatible clients.
Features
- 15 MCP tools for complete NZBGet control
- Queue management: list, add, pause, resume, delete downloads
- History tracking: view completed and failed downloads
- Speed control: set download rate limits
- Status monitoring: real-time server status, disk space, queue info
- Logging: access and write to NZBGet logs
- TypeScript implementation with JSON-RPC client
- Stdio transport compatible with Claude Desktop
Requirements
- Node.js 18+
- A running NZBGet instance with RPC enabled
Setup
- Clone the repository and install dependencies:
git clone https://github.com/aserper/nzbget-mcp.git
cd nzbget-mcp
npm install
- Build the project:
npm run build
- Copy
.env.exampleto.envand set your values:
cp .env.example .env
Edit .env:
NZBGET_HOST=localhost
NZBGET_PORT=6789
NZBGET_USERNAME=nzbget
NZBGET_PASSWORD=tegbzn6789
NZBGET_USE_HTTPS=false
Running the MCP Server
npm start
Or directly:
node dist/index.js
Testing
# Run all tests
npm test
# Run with coverage
npm run test:coverage
# Run tests in watch mode
npm run test:ui
Architecture
This MCP server uses a modular architecture:
src/tools/*.ts- Individual tool implementationssrc/tools/index.ts- Tool registry and discoverysrc/utils/errors.ts- Error handling utilitiessrc/__tests__/mocks/- Test fixtures and mocks
All 15 tools are self-contained modules that register themselves on import.
Configuration
| Variable | Description | Default |
|---|---|---|
NZBGET_HOST |
NZBGet hostname | localhost |
NZBGET_PORT |
NZBGet RPC port | 6789 |
NZBGET_USERNAME |
NZBGet username | - |
NZBGET_PASSWORD |
NZBGet password | - |
NZBGET_USE_HTTPS |
Use HTTPS | false |
Claude Desktop Configuration
Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS, or equivalent on other platforms):
{
"mcpServers": {
"nzbget": {
"command": "node",
"args": ["/path/to/nzbget-mcp/dist/index.js"],
"env": {
"NZBGET_HOST": "localhost",
"NZBGET_PORT": "6789",
"NZBGET_USERNAME": "nzbget",
"NZBGET_PASSWORD": "tegbzn6789"
}
}
}
}
Docker
Build Locally
docker build -t nzbget-mcp .
Run
docker run --rm -it \
-e NZBGET_HOST="localhost" \
-e NZBGET_PORT="6789" \
-e NZBGET_USERNAME="nzbget" \
-e NZBGET_PASSWORD="tegbzn6789" \
nzbget-mcp
Exposed Tools
Status & Information
nzbget_status- Get server status (speed, queue size, disk space)nzbget_version- Get NZBGet versionnzbget_server_volumes- Get download statistics per server
Download Queue
nzbget_list_groups- List all downloads in queuenzbget_append- Add NZB file to queuenzbget_edit_queue- Edit queue (pause, resume, delete, set priority)
History
nzbget_history- View download history
Control
nzbget_pause_download/nzbget_resume_downloadnzbget_pause_post/nzbget_resume_postnzbget_rate- Set download speed limit (KB/s)nzbget_scan- Scan for new NZB files
Logging
nzbget_log- Get log entriesnzbget_write_log- Write custom log message
Usage Examples
"Show me what's currently downloading"
"Pause the download queue"
"Set download speed to 5 MB/s"
"Add an NZB file to the queue"
"Show my recent download history"
Development
# Install dependencies
npm install
# Build
npm run build
# Watch mode
npm run dev
# Lint
npm run lint
# Type check
npm run typecheck
License
MIT
Contributing
Contributions welcome! Feel free to open an issue or submit a PR.
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。