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

quanters-akshare-mcp

v0.2.0

Published

AKShare MCP Server (Node.js): A-shares, ETF, futures, commodities, gold — no Python required

Readme

quanters-akshare-mcp

纯 Node.js AKShare MCP Server:无需 Python、无需 pip,解决 macOS Homebrew PEP 668 安装失败问题。

覆盖 A 股、ETF、期货、大宗商品、指数、黄金;内置 1050+ 接口注册表与常用数据直连。

Cursor MCP 配置

公共 npm:

{
  "mcpServers": {
    "quanters-akshare-data": {
      "command": "npx",
      "args": ["-y", "--registry", "https://registry.npmjs.org", "quanters-akshare-mcp"],
      "env": {
        "QUANTERS_USE_AKTOOLS": "0",
        "AKSHARE_MAX_ROWS": "500"
      }
    }
  }
}

阿里内网 anpm:

"args": ["-y", "@ali/quanters-akshare-mcp"]

本地开发

npm start
# 或
npx -y .

Inspector 调试

npx @modelcontextprotocol/inspector --config .cursor/mcp.json --server quanters-akshare-data

架构

bin/quanters-akshare-mcp.js   → 入口
mcp-node/server.js            → MCP SDK (stdio)
mcp-node/lib/                 → 数据源 HTTP 直连(东财/新浪/上金所/腾讯 fallback)
mcp-node/data/api-registry.json → 1050+ 接口元数据

环境变量

| 变量 | 说明 | |------|------| | QUANTERS_USE_AKTOOLS | 1 时对未内置接口走 AKTools HTTP | | AKTOOLS_BASE_URL | AKTools 地址,默认 http://127.0.0.1:8080 | | AKSHARE_MAX_ROWS | DataFrame 最大返回行数,默认 500 |

发布

npm run publish:public   # npmjs: quanters-akshare-mcp
npm run publish:anpm     # anpm: @ali/quanters-akshare-mcp

Python 版(可选)

仓库内 mcp_server/ 仍保留 Python 实现,供本地开发/回测 Agent 使用;npm 包 0.2.0+ 默认纯 Node。