Mmcp.market

MCP Server

by hanjialeGit·io.github.hanjialeGit/mcp-server·v0.1.3

天启至数 ApocData - MCP Server for A-share market data (46 free, no-auth endpoints)

A86/100grade A
What users say
No reviews yet
Be the first
Safety scan
A86/100

full report

Adoption
Growing

2 stars92 downloads/wk

Reviews

Write one

Nobody has reviewed MCP Server yet.

If you have run it, two minutes of your experience saves the next person an afternoon.

MCP Server tools (12)

write = sends, deletes, buys or posts

Read from the package source without running it. The installed server may list more.

  • get_factor_registry

    获取量化因子目录(脱敏后,含 factor_code/name/weight,**不含** calc_formula/conditions 等内部字段)。共 221 个因子规则,本数据极少变化,默认 1h MCP 缓存(后端 24h 缓存)。

  • get_macro_dashboard

    获取中国宏观经济面板:GDP/CPI/PPI/M2/PMI 等核心指标的最新值与同环比。本数据按月更新,默认 5min MCP 缓存(后端 1min 缓存)。

  • get_macro_indicator

    获取单个宏观指标的时序数据(如 CPI/PPI/GDP)。indicator 为指标 code(如 'CPI' 'M2' 'GDP'),from/to 为 YYYY-MM 月度区间。默认 5min 缓存。

  • get_quotes_snapshot

    批量获取多只 A 股最新实时行情快照(一次 ≤ 50 只)。每只股返 last_price/change_pct/volume 等。本端点**不缓存**(实时性优先)。

  • get_stock_bars_daily

    获取单只 A 股日 K 历史(open/high/low/close/volume/amount/change_pct)。from/to 为 YYYY-MM-DD 区间,默认最近 60 个交易日。10min MCP 缓存。

  • get_stock_detail

    获取单只 A 股详情:基础信息 + ST 状态 + 最新 ROE。symbol 为 6 位代码(如 '000001' '600519')。本数据每日更新,默认 1h 缓存。

  • get_stock_financials

    获取单只 A 股最新季度财务摘要(营收/净利润/毛利率/ROE/资产负债率等)。本数据按季度更新,默认 6h 缓存。

  • get_stock_list

    获取所有 A 股主数据列表(支持分页)。返回 5000+ 股的 symbol/name/full_symbol/exchange/industry 等核心字段。适用于'查询有哪些股票'、'按行业筛选'类问题。本数据每日更新,默认 1h 缓存。

  • get_stock_news

    获取单只 A 股最近新闻(标题/来源/发布时间/摘要),按发布时间倒序。默认返 20 条。本端点**不缓存**(新闻时效性强)。

  • get_stock_quote

    获取单只 A 股最新实时行情快照(含 last_price, change_pct, volume, turnover, bid/ask)。延迟 15 分钟(SKU-FREE)/ 0 分钟(SKU-PRO+)。返回值含 meta.ingestLagSeconds 表示数据新鲜度。本端点**不缓存**(实时性优先)。

  • get_top10_holders

    获取单只 A 股十大股东最新一期(姓名/持股数/持股比例/性质)。本数据按季度更新,默认 6h 缓存。

  • get_trade_days

    获取 A 股交易日历(年度)。year 默认当年。本数据跨年才变,默认 24h 缓存。

Public scan report

scanner v0.1.9 · 2026-09-21 · same rubric, same numbers if you re-run it

no findings
  • Code scan44 source files scanned25/25
  • Live reliabilityno gateway calls yet and no remote to proben/a
  • Tool poisoningtools not inspected (local package is not executed); not countedn/a
  • Auth qualitylocal package, no credentials required12/15
  • Maintenancelast push 10 days ago15/15
  • Maintainer identitynamespace and repository owner differ4/10
Overall 86/100. Components that don't apply are left out of the denominator. Any critical finding is an F.RubricAppeal a findingJSON

What the publisher says

From the MCP Server repository's README, as published. We do not edit it. Read it on GitHub

@apocdata-info/mcp-server

天启至数 Apocdata 的 MCP(Model Context Protocol)Server。把 46 个 A 股数据接口包装成 MCP tools,可在 Claude Desktop / Cursor / Cline / Continue 等任意 MCP client 中直接调用。

  • 数据源:https://www.apocdata.com/api/blade-dataplatform/open/data/*
  • 免费体验额度:无需注册即可调用;注册解锁更高额度与更多数据能力
  • 自动透传 X-Tdc-* 元信息头(限流剩余/截断标志/错误码/缓存策略)
  • 46 工具覆盖:行情、估值、财务、股东、资金流、涨跌停、板块、公告、宏观、因子、综合画像

安装

方式 A:npx(推荐,零安装)

直接在 client 配置里写 npx -y @apocdata-info/mcp-server,无需手动 install。

方式 B:全局安装

npm install -g @apocdata-info/mcp-server
apocdata-mcp   # 可执行命令

Client 配置示例

Claude Desktop

编辑 ~/Library/Application Support/Claude/claudedesktopconfig.json(macOS)或 %APPDATA%\Claude\claudedesktopconfig.json(Windows):

{
  "mcpServers": {
    "apocdata": {
      "command": "npx",
      "args": ["-y", "@apocdata-info/mcp-server"]
    }
  }
}

Cursor

~/.cursor/mcp.json:

{
  "mcpServers": {
    "apocdata": {
      "command": "npx",
      "args": ["-y", "@apocdata-info/mcp-server"]
    }
  }
}

Cline / Continue / 其它 stdio MCP client

同上,传 command=npx, args=["-y","@apocdata-info/mcp-server"] 即可。

CLI flags

apocdata-mcp --version    # 打印版本号
apocdata-mcp --help       # 显示完整用法

信号

  • SIGTERM / SIGINT:优雅退出。等正在进行的请求完成(最多 5 秒),再关闭 transport 退出。

调试模式

环境变量 APOCDATA_DEBUG=1 会把每次 HTTP 调用的 path/status/meta 打到 stderr:

{
  "mcpServers": {
    "apocdata": {
      "command": "npx",
      "args": ["-y", "@apocdata-info/mcp-server"],
      "env": { "APOCDATA_DEBUG": "1" }
    }
  }
}

自定义 BASE URL

环境变量 APOCDATABASEURL 可指向内网/私有部署:

"env": { "APOCDATA_BASE_URL": "https://intranet.example.com/api/blade-dataplatform/open/data" }

超时与重试

4xx 不重试(业务错误重试无意义)。重试用尽后返回最后一次的 5xx 响应,或抛 NetworkError(网络异常)。

工具清单(46 个)

每个 tool 的入参/出参/默认值在 MCP 协议层用 JSON Schema 暴露,client 会自动展示。

MCP Resources

除工具外还暴露 3 个 markdown 文档,Agent 通过 resources/list 和 resources/read 拉取:

用法示例(在 Claude 里直接问)

> 帮我看下贵州茅台最近 5 天行情
(Claude 调用 daily(symbol="600519", limit=5))

> 现在涨幅榜前 10 是哪些股票?
(Claude 调用 ranking(type="gainers", limit=10))

> 整理一下平安银行的综合画像
(Claude 调用 profile-full(symbol="000001"))

> CPI 最近一次数据是多少?
(Claude 调用 macro-latest(type="cpi"))

性能与限流

  • 单 IP 限流:60 req/min(响应头 X-Tdc-RateLimit-Remaining 透传剩余配额)
  • 缓存策略:盘中实时数据 5s、盘后日更 5min、元数据 1h(Cache-Control 头自动给)
  • limit 参数上限 50,超出会静默截断(看响应头 X-Tdc-Truncated)
  • 大批量数据建议用 format=compact 列式输出,节省 60-70% token
  • 字段较多的接口(如 financial、announcements)支持 fields=... 裁剪

详细行为参考主 SKILL 文档:

开发

Shortened. The full README is on GitHub.

Nothing above is checked by us. What we check is on the safety report.

Install directly

Runs npx -y @apocdata-info/mcp-server on your machine. Read the scan report first; the gateway never runs local packages.

claude mcp add mcp-server -- npx -y @apocdata-info/mcp-server
Add to Cursor

MCP Server: common questions

Is MCP Server safe?
Yes, by our scan: it is graded A (86/100). Read the MCP Server safety report
How do I install MCP Server?
It runs on your machine. Copy the Claude Code, Claude Desktop or Cursor config from the install section.
Does MCP Server need an API key?
Not as far as the registry entry and our scan can tell: no credentials are declared or required.
Is MCP Server maintained?
The last commit was 10 days ago (2026-09-11). The latest release is v0.1.3.
What can I use instead of MCP Server?
Servers from other publishers that do the same job: MCP Server, SpinHire iGaming Jobs MCP server and spintax.net MCP server. Compare all MCP Server alternatives.

Alternatives to MCP Server

Same job from other publishers: the closest match first, then the best rated.

All MCP Server alternatives →
  • MCP Server
    天启至数 ApocData - MCP Server for A-share market data (46 free, no-auth endpoints)
    A
  • SpinHire iGaming Jobs
    Live iGaming jobs — casino, betting, studios, affiliates — plus market data. No auth.
    C
  • spintax.net MCP server
    Write, validate, render and analyze spintax templates. Backed by @spintax/core. No auth.
    A
  • Ticket Demo
    MCP server demo — tickets, schema discovery, auth, and PII gating. stdio + HTTP.
    B
  • Filamental
    Read/write access to your Filamental knowledge graph vault. 17 tools. Local-first, no auth.
    A

More from hanjialeGit