aria2 MCP Server
Supports adding and managing BitTorrent downloads, including torrent files and magnet links, through aria2.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@aria2 MCP Server Download https://example.com/file.zip and save it to /Downloads"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
aria2 MCP Server
A Model Context Protocol (MCP) server for aria2 download manager. This server allows AI assistants to interact with aria2 through a standardized interface.
Features
Download Management: Add, pause, resume, and remove downloads
Status Monitoring: Get real-time download status and progress
Batch Operations: List active, waiting, and stopped downloads
Global Statistics: View overall download/upload speeds
Option Control: Change download options on-the-fly
Multi-Protocol Support: HTTP/HTTPS, FTP/SFTP, BitTorrent, Magnet links
Related MCP server: wajeeha-mcp
Installation
Prerequisites
Node.js 18 or higher
aria2 running with RPC enabled and WebSocket support
Start aria2 with WebSocket RPC:
# With RPC secret (recommended)
aria2c --enable-rpc --rpc-listen-all=true --rpc-allow-origin-all \
--rpc-secret=your_secret_token \
--rpc-listen-port=6800
# The RPC URL will be: ws://localhost:6800/jsonrpcInstall the MCP Server:
cd /path/to/aira2-mcp
npm installConfiguration
Environment Variables
Variable | Description | Default | Required |
| aria2 RPC WebSocket URL |
| Yes |
| RPC secret token for authentication |
| Yes |
| Request timeout in seconds |
| No |
Important:
ARIA2_RPC_URLmust use WebSocket protocol (ws://orwss://)ARIA2_RPC_SECRETis required if aria2 is configured with--rpc-secret
Integration with Claude Desktop
Add to your Claude Desktop config file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"aria2": {
"command": "node",
"args": ["/path/to/aira2-mcp/src/index.js"],
"env": {
"ARIA2_RPC_URL": "ws://localhost:6800/jsonrpc",
"ARIA2_RPC_SECRET": "your_secret_token_here"
}
}
}
}Available Tools
Tool | Description |
| Add a new download from URL |
| Add a BitTorrent download |
| Get status of a specific download |
| List all active downloads |
| List downloads in queue |
| List completed/failed downloads |
| Pause a specific download |
| Resume a paused download |
| Remove/delete a download |
| Pause all active downloads |
| Resume all paused downloads |
| Get global download statistics |
| Clear stopped download history |
| Get aria2 version info |
| Get options for a download |
| Change download options |
Usage Examples
Add a Download
Please download this file: https://example.com/file.zipCheck Download Status
What's the status of download with GID 1234567890abcdef?List Downloads
Show me all active downloadsPause and Resume
Pause the download with GID 1234567890abcdefDownload with Options
Download https://example.com/largefile.zip and save it to /Downloads folderDevelopment
Running with MCP Inspector
mcp dev src/index.jsRunning Directly
npm startArchitecture
aira2-mcp/
├── src/
│ └── index.js # MCP server implementation
├── package.json # Project configuration
└── README.md # This fileLicense
MIT
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
References
Available Tools
16 toolsadd_downloadC
Add a new download task from URL. Supports HTTP/HTTPS/FTP/SFTP/BitTorrent Magnet links.
Inputs: url (required), options.
add_torrent_downloadB
Add a BitTorrent download from a .torrent file.
Inputs: torrent_file_path (required), options.
change_download_optionsC
Change options for a specific download.
Inputs: gid (required), options (required).
get_download_optionsC
Get the options for a specific download.
Inputs: gid (required).
get_download_statusB
Get detailed status information for a specific download.
Inputs: gid (required).
get_global_statsC
Get global statistics for the aria2 download manager.
Inputs: no named parameters.
get_versionA
Get aria2 version information.
Inputs: no named parameters.
list_active_downloadsA
List all currently active (downloading) tasks.
Inputs: no named parameters.
list_stopped_downloadsB
List stopped, completed, or failed downloads.
Inputs: limit.
list_waiting_downloadsA
List downloads in the waiting queue (not yet started).
Inputs: limit.
pause_all_downloadsB
Pause all currently active downloads.
Inputs: no named parameters.
pause_downloadB
Pause a specific download task.
Inputs: gid (required).
purge_stopped_downloadsB
Clear all completed/error downloads from the result list.
Inputs: no named parameters.
remove_downloadC
Remove a download task.
Inputs: gid (required).
resume_all_downloadsB
Resume all paused downloads.
Inputs: no named parameters.
resume_downloadB
Resume a paused download task.
Inputs: gid (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 16 tools
Each tool has a distinct action and target: add vs list vs pause/resume vs remove vs options. The list variants are clearly separated by download state, and the single-vs-all pause/resume tools are unambiguous.
All tools follow a consistent snake_case verb_noun pattern (add_download, get_download_status, pause_all_downloads, change_download_options). Modifiers like active/waiting/stopped and single/all are used predictably.
Sixteen tools is slightly above the typical 3-15 range, but each maps to a concrete aria2 operation. The surface is not bloated, though some list variants could arguably be filters on a single listing tool.
The lifecycle is well covered: add, monitor, pause/resume, remove/purge, inspect/change options, and global stats. Minor gaps exist around global option management and richer torrent metadata/files, but core workflows are complete.
Maintenance
Related MCP Connectors
Connect AI assistants to your approved computer for files, commands, browser and desktop tasks.
- DNS-DATA RemoteDeprecatedcom.dns-data
Connect AI assistants to authorized Windows and macOS devices for files, commands, and management.
Reach your own computers from any AI app: files, commands, screen and mouse, approvals and alerts.
214 tools for AI agents over one MCP endpoint: image, video, audio, 3D, data, storage, mail, GPUs.
Related MCP Servers
- AlicenseAqualityBmaintenanceEnables AI agents and CLI tools to dispatch downloads through Chrome's native download engine over the MCP protocol, automatically inheriting browser cookies, login sessions, and proxy settings. Supports submitting, monitoring, pausing, resuming, and cancelling download tasks locally without manual server setup.8MIT
- AlicenseNot gradedqualityBmaintenanceEnables MCP-capable AI agents to queue, monitor, probe, pause, resume, cancel, and speed-limit downloads, grab links from web pages, and manage download categories through a Windows download manager.MIT
- AlicenseAqualityCmaintenanceEnables MCP-compatible agents to queue, inspect, pause, resume, and remove downloads by exposing aria2's JSON-RPC API as a focused set of tools.8MIT
- AlicenseBqualityBmaintenanceEnables AI agents to drive a multi-connection download engine over stdio: probe URLs, start, monitor, wait on and cancel downloads, fetch HLS streams, and manage a persistent SQLite-backed queue. Agents can carry out instructions like downloading several URLs in parallel and reporting which ones failed.123MIT