A股数据 API (A-Share Data API)
com.ashareapi/ashare-data-api · Website
A-share data over MCP: quotes, K-line, financials, money flow, L2, sectors, backtests. 94 tools
Alternatives that work now
This server is not MCP-compliant at the latest check. We could not tell this server's category from its name, title and description, so we do not guess an equivalent. Try find_mcp_server with a need, or browse https://boternity.com/mcp-index/best
How alternatives are chosen: same list in the find_mcp_server tool with server. BOTERNITY never lists itself; no one pays for a place.
On 2026-11-30 03:23 UTC, the BOTERNITY MCP Index found A股数据 API (A-Share Data API) (com.ashareapi/ashare-data-api) not MCP-compliant in 1 consecutive check(s) since 2026-11-30 03:23 UTC; last healthy check: 2026-11-28 03:12 UTC. Last error seen: initialize: HTTP 502, no JSON-RPC result. Source: https://boternity.com/mcp-index/server?name=com.ashareapi%2Fashare-data-api
Free to reuse under CC BY 4.0 with a link. Permanent link: this page · JSON (status, score and the last 30 checks) · key numbers of the whole index.
Tools this server declares
94 tools listed by the server at its last healthy check, on 2026-11-28.
ashare_abnormal— **异动 / 偏离值**(短线监管异动体系):触发「严重异动」、「10日100% 偏离」、异动盯盘名单。用户问'今天有哪些异动股/偏离值/触发严重异动/被监控的票/短线风险股'用这个。`mode` 取值:`deviation` 偏离值热门榜(今日,默认)· `deviation_hist` 偏离值历史(需 date)· `deviation_plan` 偏离值(今日+明日两组,`group` 字段区分)· `abnormal` 异动频率+异动原因(需 date,每日全量)· (parameters: date, limit, mode)ashare_agent_search— **一句话取数 + 证据链**:把「宁德时代最近资金流入怎么样」这种自然语言问题,直接映射到**数据端点**,返回**一行结构化数据 + 完整证据**(`value_hash` / `source_endpoint` / `params` / `as_of`),并可核验。 ⭐ **与 `ashare_evidence` 的分工**:`ashare_evidence` 是**公告/资讯/研报原文检索**(关键词搜);本工具是**把问句变成数据查询**(资金流 / 行情 / 公告 (parameters: max_results, q*, recency)ashare_analyst— **复盘分析师(analyst Agent)**:输入 scanner 快照 ID,读取快照与 T+1/T+5/T+20 评估,输出收益/基准/超额/命中率、赢家输家、数据缺口和复盘报告。只读、不选股、不预测、不推荐买卖。 ⚠️ 可选 BYOK:带 `X-LLM-Key` 用模型润色;不带返回确定性复盘。 (parameters: focus, horizon, snapshot_id*)ashare_ask_user— **歧义时向用户提问**(返回 1–4 个带说明的选项)。 ⭐ **什么时候用**:用户只给了**模糊名称**(「平安」「腾讯」),你不确定指哪家公司时。 本工具**不会替你选**,而是返回 **1–4 个带说明的选项**(如「中国平安 · 沪市主板·保险龙头」),由你转成问题问用户。\n⚠️ **选项说明由模型生成**(需要语义:"中国平安"和"平安银行"差在哪,规则写不出来) ⇒ 带 `X-LLM-Key` 时质量最好;不带则只返回原始候选(无说明)。\n⚠️ 返回 `n (parameters: q*)ashare_auction— **集合竞价**:个股 9:15–9:25 集合竞价数据,含**「竞价触及涨停 / 触及跌停」判定**。用户问'竞价分时 / 竞价怎么走的 / 集合竞价买了多少 / 哪些票竞价就涨停了 / 哪些竞价跌停'用这个。`mode` 取值:`stock` **当日竞价分时**(默认,分钟级逐笔)· `stock-history` **历史竞价分时**(秒级逐笔,需 `date`)· `volume` **当日竞价量 / 资金净额**(单点)。⭐ `is_limit_up` = 「竞价 (parameters: code*, date, mode)ashare_backtest— **量化回测**:按策略跑历史收益(返回收益/最大回撤/交易次数/净值曲线等)。用户问'回测一下/这个策略收益如何/买卖点效果/最大回撤'用这个。⚠️ 两种模式:`mode=single`(默认)**单标的实时计算**,须配 `code`;`mode=portfolio` **组合**(须用 `strategies` 里的组合策略,区间受预置批次限制)。⚠️ `weighting=inv_vol`(按波动率倒数配仓)**仅组合模式 + 机构版**可用。⚠️ 想知道有哪些策略/ (parameters: code, end, include_equity, initial_cash, mode, start, strategy*, weighting)ashare_backtest_batch— **批量回测**:一次跑 **多标的 × 多策略**,返回对比矩阵(哪个组合最好一目了然)。用户问'这几只股票用不同策略分别跑一下/批量回测/策略对比'用这个。⚠️ 与 ashare_backtest 的区别:本工具**一次给多标的×多策略的横向对比**,ashare_backtest 只跑**一个**策略。⚠️ 上限:标的 ≤20 · 策略 ≤10 · 组合 ≤60(**超限直接报错,不静默截断**)。⚠️ 组合策略不能用于批量回测(批量只支持单标的择时策略)。⚠️ 参数可 (parameters: codes*, end, initial_cash, start, strategies*)ashare_bigorder— **单股 L2 大单资金分时**(分钟级):`net` = 该分钟**大单净额(元)**,正数=大单净买入、负数=净卖出。用户问'大单在买还是卖/主力资金分时/哪一分钟砸盘'用这个。⚠️ **仅当日**(非交易日/盘前返回最近一个交易日),日期看返回顶层 `day`。⚠️ 盘中末尾几分钟仍在追加:09:30–15:00 约 **240 个分钟级数据点**,盘中调用点数会随交易时段增长。⚠️ 这是**大单口径**(按成交金额聚合)—— 不是逐笔委托、也不是十档盘口,别把它当'盘 (parameters: code*)ashare_bigorder_flow— **L2 大单成交明细**(当日逐笔,成交额 ≥ 阈值):每一笔都标**主动/被动 × 买/卖**。行字段 `time` / `direction`(1 被动卖 · 2 主动买 · 3 被动买 · 4 主动卖)/ `direction_cn` / `volume`(**手**) / `amount`(**元**) / `avg_price`。顶层 `meta` 有 `money_threshold`、`total`(当日总笔数)、`truncated`、`summary`(四 (parameters: code*, limit, money)ashare_bigorder_flow_full— **L2 大单成交·全天完整**:把当日**全部**成交额 ≥ 阈值的大单一次拿全,不受「单次最多 200 笔」限制。用于**算全天金额**(主力净流入多少、四方向各多少)。行字段与 `ashare_bigorder_flow` 完全一致;顶层 `meta` 有 `total`(当日总笔数)/ `returned` / `pages` / `complete`(是否已拿全)/ `summary`(四方向金额合计,拿全时即当日全量)。用户问'今天主力净流入多少 / 主动买和主动 (parameters: code*, max_rows, money)ashare_bigorder_history— **L2 历史大单净额**(逐日,往回最多 **100 个交易日**):每天一个值,行字段 `date` / `net`(当日大单净额,**元**,正=净买入负=净卖出),**倒序**(最新在前)。用户问'这票大单最近是不是一直在吸/大单资金趋势/前几个月大单怎么走的'用这个。⭐ 与 `ashare_bigorder` 的分工:那个只能看**今天**,本工具补「往回看」—— 判断是**持续吸筹**还是**只今天冲一下**,以及哪天开始转向。⚠️ 数据源固定返 100 个交易日 (parameters: code*, limit)ashare_bigorder_queue— **L2 大单委托流**(当日挂单明细):委托量或金额超过阈值的**挂单**逐笔列出,带 `is_limit_up`(涨停价挂单)和 **`is_cancel`(已撤单)**。行字段 `time` / `order_id` / `price` / `volume`(手) / `amount`(元) / `side`(1买2卖) / `side_cn` / `is_limit_up` / `is_cancel`。顶层 `meta` 另给本次返回样本的 `cancel_count (parameters: code*, limit, tur, vol)ashare_bigorder_rank— **L2 全市场主力净额榜**(约 5,600 只):一次拿到全市场的主力买卖与净额,8 种排序、可翻页、可回看历史。`sort` 取值:`net_in` 主力净流入(默认)· `net_out` 主力净流出 · `buy` 主力买入额 · `sell` 主力卖出额 · `gain` 涨幅 · `loss` 跌幅 · `turnover` 换手率 · `mcap` 市值。行字段(金额单位**元**):`code` / `name` / `price` / `change_pc (parameters: date, limit, offset, sort)ashare_bigorder_split— **L2 主力四分解**(分钟级):把主买拆成**主动买 + 被动买**、主卖拆成**主动卖 + 被动卖**,每 1 分钟一行。行字段(金额单位**元**):`time` / `trades` 笔数 / `net` 净额 / `main_buy` / `main_sell`(**负数**) / `active_buy` / `passive_buy` / `active_sell` / `passive_sell`。顶层字段(与 `data` 平级)有全天汇总与 **`buy (parameters: code*, date)ashare_block_trade— **大宗交易成交明细**:成交价 / 成交量 / 成交额 / **折溢价率** / 买方营业部 / 卖方营业部。用户问'有没有大宗交易/折价还是溢价成交/谁在接盘/机构席位'用这个。⚠️ **code 可留空**:留空 = 当日**全市场**大宗交易;给了 code = 该股的大宗记录。⚠️ `date` 留空 = 最近交易日。⚠️ **当日无大宗交易时返回的是行情元信息**(code/name/date/closePrice/changePct,证明标的没问题、只是没有大宗 (parameters: code, date)ashare_bond— 可转债完整条款:溢价率/转股价值/双低值/强赎触发价/回售触发价/转股价/正股/到期日/评级。用户问'转债条款/强赎/双低/溢价'用这个。⚠️ 要转债**行情价**请用 ashare_quote(同样支持转债代码)。只读查询;代码形如 sh113052(沪)/ sz123138(深)。 (parameters: code*)ashare_broken_board— **炸板历史(某日涨停被砸开的票)**:行字段 `code` / `name` / `change_pct` 涨幅% / `main_net` 主力净额(元)/ `amount` 成交额(元)/ `turnover_rate` 换手% / `concepts` 所属概念(如「金融科技、金融概念」)/ `raw` 原始行。用户问'今天有哪些票炸板/封板质量怎么样/哪些涨停被砸开'用这个。⭐ 与 `ashare_limit_up` 互补:涨停池是**封住的**,本工具是**没封住 (parameters: date, limit)ashare_buyback— **公司股份回购记录**。用户问'这家公司在回购吗/回购了多少/回购价多少'时用。⚠️⚠️ **返回结构按市场不同,⛔ 不能按同一套列名解析**:**A 股** ⇒ 事件概要 `code`/`name`/`market`;**港股** ⇒ 逐日明细 `date`/`BuybackMoney`/`BuybackPrice`/`BuybackShares`/`BuybackCumMoney`/`closePrice`。⚠️ 与 `ashare_shareholder`(谁持有)不 (parameters: code*, end, start)ashare_calendar— **个股事件日历**:分红派息 / 限售解禁 / 财报披露 / 新股发行 / 会议 / 增发 等**公司事件排期**,从指定日期起约 **1 个月**窗口。用户问'下周有哪些股票解禁/最近谁要发财报/这个月有哪些分红'用这个。⚠️ **不是宏观数据日历** —— 宏观(GDP/CPI/LPR)请用 `ashare_macro`。⚠️ **返回是多段结构**:`data.tables` 是**表列表**(按事件类型分段、保序),每段 `{title 中文标题, slug 英文键 (parameters: date, limit)ashare_changedist— 全市场涨跌家数与市场广度(**当期口径**):上涨/下跌/平盘/停牌家数 + 上涨占比 + 涨停/跌停 + 11 档涨跌幅区间分布 + 两市成交额。用户问'今天涨跌家数/多少家涨停/市场情绪/市场广度'用这个——取涨跌家数以本工具为准。⚠️ 不要用 ashare_market_overview 的 updown 模式取同一数据(那是 T-1 口径,数值会与此不一致)。· 免费工具(无需 Key)ashare_chip— **筹码分布 / 持仓成本**(沪深 A 股 + **ETF**):获利盘比例 + 平均成本 + 90% 与 70% 集中度 + 当日收盘价。用户问'筹码集中吗/套牢盘多不多/平均成本多少/抛压大不大/主力成本在哪'用这个。⚠️ **多只请用 `ashare_chip_batch`**(一次 200 只、逐只标明成功与否)—— 本工具只查一只。⚠️ `date` 可回看历史(`YYYY-MM-DD`,缺省=最新);**历史仅保留约近 1 年**;非交易日/未来日期会**自动回 (parameters: code*, date)ashare_chip_batch— ⭐ **批量筹码分布:一次拿多只的获利盘比例 / 平均成本 / 90%·70% 集中度**,逐只标明成功与否。用户问'这几只的筹码集中吗/套牢盘多不多/平均成本多少/抛压大不大'用这个。⚠️ **与 ashare_chip 的关系**:`/v1/chip` 的 `code` 虽支持逗号,但返回**不分只、不带逐只状态**,少了哪只对不上 ⇒ **多只请用本工具**;只查一只也可以用它(codes 传一个即可)。⚠️ **为什么值得单开一次调用**:`/v1/chip` 问 2 (parameters: codes*, date)ashare_consensus— **卖方一致预期**:分析师**目标价** + 未来预测(EPS/营收/净利润/预测 PE·PB·PS/机构覆盖数)。用户问'机构怎么看/目标价多少/明年利润预测/一致预期'时用。⚠️ **`codes` 逗号多只、逐只回 `ok`**,单次 **≤15 只**(超过会丢数据)。⚠️ **字段按市场不同**:A 股有 `targetPrice`;**港股没有目标价**,字段是 `*Forecast` 一套。只读查询;**专业版(¥99)及以上**。 (parameters: codes*)ashare_dehydrated— 脱水研报(券商研报摘要)。用户问'研报/机构观点/券商怎么说'用这个。mode=list 列表 / mode=detail 详情(detail 需给 symbol)。⚠️ 要**个股新闻 / 公告**请用 ashare_news / ashare_notice。只读查询;按研报发布更新。 (parameters: limit, mode, symbol)ashare_disclosure— **业绩预约披露日**:哪天披露财报(`disclosureDate`)+ 报告期(`reportEndDate`)+ 说明文案。用户问'什么时候出财报/几号披露/三季报什么时候发'时用。三市场:A 股 / 港股 / 美股。⚠️ 与 `ashare_calendar`(分红/解禁/会议)**不是一回事**。⚠️ **港股 `disclosureDate` 常为空**,日期写在 `disclosureDesc` 文案里(如「将于2026-11-18发布财报」)。只读查询;**标 (parameters: codes*)ashare_dividend— 分红送转历史(每股分红/送股/除权日)。用户问'分红/股息/送转'用这个。⚠️ 要**分红派息日历**(哪天除权)请用 ashare_calendar——本工具是历史记录。只读查询;按公告披露更新。⚠️ **支持港股**(代码 5 位 `hk00700`)。ETF 没有分红明细(只有 `ashare_etf(kind='概览')` 的 `divTtm`)。 (parameters: code*, years)ashare_etf— ETF 数据。用户问'ETF'时用这个。`kind` 选子集:概览(默认·行情/规模/溢折率/资金流/回撤/估值) · 详情(基金要素/费率/份额/基金经理/持仓Top20) · 持仓(成分股及权重) · 净值(历史净值,**须同时传 start+end**) · 公司(管理人/托管人/跟踪指数) · 持有人(户数/机构个人占比) · 财务(股债商品基金占比)。⚠️ 返回的 `data` 是排版文本,**取字段用 `structured`(首表)或 `tables`(全部表) (parameters: code*, date, end, kind, start)ashare_events— 个股事件标签(42 类:大宗/龙虎榜/回购/分红/解禁等)。用户问'这只股票最近有什么大事/解禁/回购/定增'用这个。⚠️ 要看**全市场**某一类事件名单,请用 ashare_lhb(龙虎榜分榜)或 ashare_dividend(分红送转)——本工具是**单只股票**的事件总览。只读查询;按披露节奏更新。 (parameters: code*)ashare_evidence— **财经多源取证**:一次查询同时搜**上市公司公告**(交易所官方披露)与**财经资讯**,合并成一张表并**去掉转载重复**。行字段 `source`(来源标识)/ `kind`(notice 公告 / news 资讯 / report 研报)/ `title` / `url` / `date` / `code` / `name` / `media` / `authority`(1.0 官方·0.5 门户)/ `relevance`(1.0 命中实体 · 0.6 仅摘要命 (parameters: limit, q*, scope)ashare_factors— **量化因子库**:87 个因子 + 50 个筛选入口 + 22 个预设组合,可按分类/类型筛选。用户问'有哪些因子/因子库/选股因子/因子分类'用这个。⚠️ 这是**清单**(静态元数据);要用因子实际选股,用 ashare_screen。⚠️ `category` / `kind` **只接受中文枚举值**(category:估值/行情/盈利/成长/财务/资金…;kind:排行/标签/事件)。传英文会返回空。⚠️ **付费工具**(需 Key):**专业版(¥99)及以上 (parameters: category, kind)
Other tools: ashare_finance, ashare_finance_batch, ashare_flash, ashare_forex, ashare_fund, ashare_fund_batch, ashare_fund_flow, ashare_fund_short, ashare_fund_south, ashare_futures, ashare_hot, ashare_index_constituent, ashare_index_list, ashare_industry_chain, ashare_ipo, ashare_kline, ashare_kline_batch, ashare_kline_full, ashare_lhb, ashare_lhb_agency, ashare_lhb_seats, ashare_limit_reason, ashare_limit_up, ashare_macro, ashare_margin_trade, ashare_market_kline, ashare_market_mood, ashare_market_overview, ashare_minute, ashare_new_high, ashare_news, ashare_northbound, ashare_notice, ashare_orderbook, ashare_playbooks, ashare_profile, ashare_profile_batch, ashare_quote, ashare_quote_batch, ashare_rating, ashare_report, ashare_review, ashare_scanner, ashare_score, ashare_screen, ashare_search, ashare_sector, ashare_sector_valuation, ashare_shareholder, ashare_shareholder_batch, ashare_snapshot, ashare_snapshot_batch, ashare_stocks, ashare_strategies, ashare_suspension, ashare_tail_chase, ashare_technical, ashare_technical_batch, ashare_usage, ashare_watchlist_add, ashare_watchlist_list, ashare_watchlist_quotes, ashare_watchlist_remove, ashare_wiki_search
Tool names and descriptions are the server's own words, copied from its tools/list answer at the dated check (descriptions cut at 240 characters, 12 parameters, 30 documented tools at most). BOTERNITY never calls these tools and does not verify what they do. Parameters marked * are required.
Add it to your client
Address (Streamable HTTP): https://api.ashareapi.com/mcp. The check of 2026-11-30 (UTC) did not get a valid MCP answer from this address: this configuration may not work. Optional header(s) declared: Authorization.
Claude (claude.ai, Claude Desktop): likely problem, see the verdict below: Did not complete a standard MCP initialize on 2026-11-30; no client can use it until it answers again (docs).
ChatGPT: likely problem, see the verdict below: Did not complete a standard MCP initialize on 2026-11-30; no client can use it until it answers again (docs).
Claude Code, in a terminal (options: claude mcp add --help):
claude mcp add --transport http ashare-data-api https://api.ashareapi.com/mcpCursor, in ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (one project) (docs):
{
"mcpServers": {
"ashare-data-api": {
"url": "https://api.ashareapi.com/mcp"
}
}
}VS Code, in .vscode/mcp.json (docs):
{
"servers": {
"ashare-data-api": {
"type": "http",
"url": "https://api.ashareapi.com/mcp"
}
}
}Generated from the Streamable HTTP address this server publishes in the official MCP Registry (the address the Index check connects to) and from the request headers its registry entry declares as required. Values in capitals are placeholders: get the real ones from the publisher. Nothing here is run against the server. Whether each client can complete the connection is measured just below.
Works with Claude, ChatGPT, Cursor and VS Code?
| Client | Verdict | Why |
|---|---|---|
| Claude | Likely problem | Did not complete a standard MCP initialize on 2026-11-30; no client can use it until it answers again. client docs |
| ChatGPT | Likely problem | Did not complete a standard MCP initialize on 2026-11-30; no client can use it until it answers again. client docs |
| Cursor | Likely problem | Did not complete a standard MCP initialize on 2026-11-30; no client can use it until it answers again. client docs |
| VS Code | Likely problem | Did not complete a standard MCP initialize on 2026-11-30; no client can use it until it answers again. client docs |
How verdicts are made: measured continuously, never guessed. All servers that work with each client.
Badges for your README, updated after each new check with the verdicts above:
[](https://boternity.com/mcp-index/server?name=com.ashareapi%2Fashare-data-api#clients)
[](https://boternity.com/mcp-index/server?name=com.ashareapi%2Fashare-data-api#clients)
[](https://boternity.com/mcp-index/server?name=com.ashareapi%2Fashare-data-api#clients)
[](https://boternity.com/mcp-index/server?name=com.ashareapi%2Fashare-data-api#clients)
Availability
86 % over 7 checks. Last check 2026-11-30.
What the last check found
- initialize: HTTP 502, no JSON-RPC result
Likely cause: Server error (500 – 504). How to check and fix it
Badge for your README
[](https://boternity.com/mcp-index/server?name=com.ashareapi%2Fashare-data-api)
This measurement is signed by boternity.com (Ed25519, key 450c02fbfb29dba9, digest sha256:3e8dfd012c609e1b…), in the badge and in the JSON. Anyone can check a copy.
Get alerted when it goes down
Free: leave an e-mail or a webhook and we tell you when this server goes down and when it is back. Without a subscription nobody is told, even when it is followed on the MCP weather.
Or follow it in a feed reader: Atom feed · JSON Feed (first seen, became unavailable, back online, tool definitions changed; checks of the last 30 days).
Endpoint: https://api.ashareapi.com/mcp. Scores are automatic and may be wrong. Owners can ask for removal via support.