npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

aira-mcp

v1.0.6

Published

Aria2 MCP (Media Control Protocol) Service CLI

Readme

Aira MCP Service

使用JavaScript构建的MCP服务,能够通过aria2进行下载,aria服务器地址可以通过npx参数配置传入。

安装

npm install

运行

基本运行

npm start

通过npx参数配置aria服务器地址

npx aira-mcp --aria2-host=localhost --aria2-port=6800 --aria2-secret=your-secret

支持的命令行参数

| 参数名 | 描述 | 默认值 | |-------|------|--------| | --aria2-host | aria2服务器地址或完整URL | localhost | | --aria2-port | aria2服务器端口 | 6800 | | --aria2-secret | aria2服务器密钥 | 无 | | --aria2-secure | 是否使用HTTPS | false | | --aria2-path | aria2 JSON-RPC路径 | /jsonrpc |

示例

使用完整URL配置:

npx aira-mcp --aria2-host=http://localhost:6800/jsonrpc

使用独立参数配置:

npx aira-mcp --aria2-host=192.168.1.100 --aria2-port=6801 --aria2-secret=mysecret --aria2-secure=false

接口说明

健康检查

GET /health

响应:

{
  "status": "ok",
  "message": "MCP Service is running"
}

下载文件

POST /download

请求体:

{
  "uri": "http://example.com/file.zip",
  "options": {
    "dir": "/downloads",
    "max-connection-per-server": 5
  }
}

响应:

{
  "success": true,
  "gid": "2089b05ecca3d829",
}

Magnet下载

POST /download/magnet

请求体:

{
  "hashkey": "88594AAACBDE40EF3E2510C47374EC0AA396C08E",
  "options": {
    "dir": "/downloads"
  }
}

响应:

{
  "success": true,
  "gid": "2089b05ecca3d829",
}

获取下载状态

GET /download/:gid

响应:

{
  "success": true,
  "status": {
    "gid": "2089b05ecca3d829",
    "status": "active",
    "totalLength": "1000000",
    "completedLength": "500000",
    "uploadLength": "0",
    "bitfield": "eeeeeeeeeeeeeeee",
    "downloadSpeed": "100000",
    "uploadSpeed": "0",
    "infoHash": "",
    "numSeeders": "0",
    "seeder": false,
    "connections": "5",
    "errorCode": "0",
    "errorMessage": "",
    "followedBy": [],
    "following": "",
    "belongsTo": "",
    "dir": "/downloads",
    "files": [
      {
        "index": "1",
        "path": "/downloads/file.zip",
        "length": "1000000",
        "completedLength": "500000",
        "selected": true,
        "uris": [
          {
            "uri": "http://example.com/file.zip",
            "status": "used"
          }
        ]
      }
    ],
    "bittorrent": null,
    "verifiedLength": "0",
    "verifyIntegrityPending": false
  }
}

暂停下载

POST /download/:gid/pause

响应:

{
  "success": true,
  "message": "Download paused"
}

恢复下载

POST /download/:gid/resume

响应:

{
  "success": true,
  "message": "Download resumed"
}

删除下载

DELETE /download/:gid

响应:

{
  "success": true,
  "message": "Download removed"
}

配置参数

| 参数名 | 描述 | 默认值 | |-------|------|--------| | --aria2-host | aria2服务器地址 | http://localhost:6800 | | --aria2-secret | aria2服务器密钥 | 无 |

MCP配置方式

在MCP配置文件中,可以按照以下方式配置Aira MCP Service:

{
  "mcpServers": {
    "aira-mcp": {
      "command": "npx",
      "args": [
        "aira-mcp",
        "--aria2-host=localhost",
        "--aria2-port=6800",
        "--aria2-secret=your-secret"
      ]
    }
  }
}

配置说明

  • command: 使用npx命令来执行包
  • args: 命令行参数列表
    • aira-mcp: 包名
    • --aria2-host: aria2服务器地址
    • --aria2-port: aria2服务器端口
    • --aria2-secret: aria2服务器密钥(可选)

完整配置示例

{
  "mcpServers": {
    "aira-mcp": {
      "command": "npx",
      "args": [
        "aira-mcp",
        "--aria2-host=http://192.168.1.100:6801/jsonrpc",
        "--aria2-secret=mysecret"
      ]
    }
  }
}