Skip to main content
AllMCPs
BrowseBestCategoriesStackCompareToolsGuidesBlog
Log in Submit MCP

Stay in the loop

Get new MCP servers and top picks in your inbox.

AllMCPs

The open directory for discovering and installing Model Context Protocol servers.

AllMCPs on GitHub (opens in a new tab)
Launched onTiny Startupstinystartups.com
Explore
  • Browse servers
  • Best MCP servers
  • Categories
  • MCP clients
  • Agent prompts
  • Stack Builder
  • Compare servers
  • Random discovery New
  • Submit a server
  • Pricing & Boost Boost
Learn
  • Guides hub
  • What is MCP?
  • Install guide
  • Build an MCP server
  • Deploy an MCP server
  • Security guide
  • Troubleshooting
  • MCP for SEO & AEO
  • Protocol versioning
  • Blog & updates
Tools
  • All developer tools
  • Config generator
  • Config validator
  • Config auditor
  • MCP playground
  • Token calculator
  • OpenAPI → MCP
  • Badge generator
For agents
  • REST API docs
  • Trust & traffic Live
  • Remote MCP server SSE ↗ (opens in a new tab)
  • llms.txt ↗ (opens in a new tab)
  • Catalog JSON ↗ (opens in a new tab)
Company
  • About
  • Advertise Sponsor
  • Contact
  • GitHub ↗ (opens in a new tab)
  • Terms
  • Privacy
AllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistLaunched on Tiny StartupsFeatured on ShowMeBestAIFeatured on ShowMeBestAIFind us on LaunchZoneFind us on LaunchZoneAllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistLaunched on Tiny StartupsFeatured on ShowMeBestAIFeatured on ShowMeBestAIFind us on LaunchZoneFind us on LaunchZone
© 2026 Jackalope Digital LLC. All rights reserved.
  1. Home
  2. 💰 Finance & Fintech
  3. Ashare MCP
Ashare MCP logo
Health: ActiveRecent health check succeeded.Last checked 9/11/2026, 6:03:31 PM

Ashare MCP

User RatingsBe the first to rate and review this MCP server!
View Repository5 GitHub StarsTotal stargazers on GitHub for the source repository (5 stars).Visit Website
financechina-stocksfinancial-statementsmcpdata-analysis

MCP server for Chinese A-share financial statements, accounting checks, peer comparisons, and historical analysis.

Quick Install

Automated & IDE Setup

Copy the AI prompt to install this server into Claude Code, Cursor, or another agent — or use 1-click editor setup below.

One-click editor setup isn’t available for this listing yet — we don’t have a confirmed install command, and we’d rather show nothing than point your editor at the wrong package or host. Follow the project’s own setup instructions, linked above.

Manual Client & Custom JSON ConfigExpand JSON ▾
No confirmed setup config for this listing yet. We only publish a config block when the install details come from the project itself — its README, its docs, or a verified owner. We haven’t found those for yli769227-jpg/ashare-mcp, and we’d rather show nothing than a guess you’d paste into your client. Follow the project’s own setup instructions for the current steps.
Install Directory Badge Claim listing Alternatives💰 More in Finance & Fintech

Overview

ashare-mcp retrieves structured balance sheets, income statements, and cash flow statements for Chinese A-share companies using data from Eastmoney through akshare. It provides accounting cross-checks, peer comparisons with ROE calculations, historical trends, and optional document parsing. Use it when an MCP client needs Chinese A-share financial data without an API token.

Use cases

•Retrieve annual financial statements for A-share companies
•Check accounting relationships across financial statements
•Compare companies within the same peer group
•Track financial metrics across multiple years
•Parse financial documents into LLM-ready Markdown

Key features

•Structured annual balance sheet, income statement, and cash flow data
•Four industry-aware accounting cross-checks
•Peer comparison with rankings and automatically derived ROE
•Historical metrics with year-over-year, CAGR, trend, and anomaly fields
•Stock-code normalization for multiple A-share formats
•Optional PDF, DOCX, PPTX, and image parsing via MinerU

Capabilities & Tool Schemas

Inspect callable tools, capabilities, and parameters exposed to AI agents by Ashare MCP.

Extracted Tool Capabilities
Structured annual balance sheet, income statement, and cash flow data
Four industry-aware accounting cross-checks
Peer comparison with rankings and automatically derived ROE
Historical metrics with year-over-year, CAGR, trend, and anomaly fields
Stock-code normalization for multiple A-share formats
Optional PDF, DOCX, PPTX, and image parsing via MinerU

Documentation Overview

ashare-mcp

CI Python License: MIT

Turn Chinese A-share (沪深京) financial statements into tools your LLM can call. 把 A 股财报变成 LLM 可调的工具 —— 一句"平安银行 2024 年报怎么样?"直接拿到结构化三大表。

Ask Claude about Ping An Bank's 2024 financials via ashare-mcp, get a structured table back

让 Claude(或任何 MCP 客户端)用一句"平安银行 2024 年报怎么样?"直接拿到结构化的资产负债表 / 利润表 / 现金流量表,字段经过精选、单位明确、缓存友好。

数据来源东方财富,通过 akshare,全部免费、无需 token。


为什么再做一个

GitHub 上"金融 LLM"项目大多卷在 trading agent 和 SEC 10-K RAG——前者同质化严重,后者只服务美股。A 股 + 中文 + MCP 协议层 的组合几乎空白。

ashare-mcp 的定位很窄:做 A 股财报这一件事,做到能被任何 LLM 客户端十秒接入。它不预测股价、不写研报、不替你做决策——它只把数据从东方财富搬到 LLM 的工具调用里,字段干净、单位清楚、错误明确。

快速开始

bash
git clone https://github.com/yli769227-jpg/ashare-mcp.git
cd ashare-mcp
python3 -m venv .venv && source .venv/bin/activate
pip install -e .

跑一次冒烟测试:

server.ts
python -c "from ashare_mcp.data_source import get_annual_statements; \
  r = get_annual_statements('SZ000001', 2024); \
  print(r['company_name'], r['balance_sheet']['TOTAL_ASSETS'])"
# -> 平安银行 5769270000000.0

接入 Claude Desktop

编辑 ~/Library/Application Support/Claude/claude_desktop_config.json(Mac):

config.json
{
  "mcpServers": {
    "ashare": {
      "command": "/absolute/path/to/ashare-mcp/.venv/bin/python",
      "args": ["-m", "ashare_mcp.server"]
    }
  }
}

重启 Claude Desktop,就能直接问:

帮我看一下平安银行 2024 年报,总资产、总负债、净利润、经营性现金流分别多少?

工具列表

工具输入输出
get_three_statementsstock_code, year年报三大表(精选 ~150 字段)
cross_check_balancestock_code, year4 条勾稽校验(3 条通用 + 1 条行业感知)+ 误差
compare_peersstock_codes[], year, metrics?同业 N 家横向对比 + 排名 / max-min-avg-std + ROE
track_company_historystock_code, years, metrics?跨年时间序列 + YoY / CAGR / trend / anomalies
parse_document (需 [pdf] extra)file_path, output_format?, lang?PDF / DOCX / PPTX / 图片 → LLM-ready markdown(MinerU)

代码归一化支持 000001 / SZ000001 / sz.000001 / 000001.SZ 多种格式。

cross_check_balance 当前包含 4 条勾稽(前 3 条行业通用,第 4 条行业感知):

  1. 资产负债平衡 — TOTAL_ASSETS = TOTAL_LIABILITIES + TOTAL_EQUITY
  2. 现金流恒等式 — NETCASH_OPERATE + NETCASH_INVEST + NETCASH_FINANCE + RATE_CHANGE_EFFECT = CCE_ADD
  3. 期末/期初现金对账 — END_CCE − BEGIN_CCE = CCE_ADD
  4. 营业利润分解(行业感知)
    • 银行:OPERATE_PROFIT = OPERATE_INCOME − OPERATE_EXPENSE
    • 工商企业:OPERATE_PROFIT = TOTAL_OPERATE_INCOME − TOTAL_OPERATE_COST + OTHER_INCOME + INVEST_INCOME + FAIRVALUE_CHANGE_INCOME + ASSET_IMPAIRMENT_INCOME + CREDIT_IMPAIRMENT_INCOME + ASSET_DISPOSAL_INCOME [+ EXCHANGE_INCOME]
    • 行业自动识别:有 ACCEPT_DEPOSIT > 10 亿 走银行公式,有 TOTAL_OPERATE_INCOME + TOTAL_OPERATE_COST 走工商公式,否则 skipped(保险等暂不支持)

容忍度:前 3 条 1 万元(单项舍入),第 4 条 1000 万元(多项加总舍入累积)。字段缺失或行业无法识别时该条 skipped,不影响其它校验。实测 3 行业(银行 / 白酒 / 电池)4 家公司 2024 年报全过 4/4。

走 lru cache 联动:先调 get_three_statements 后调 cross_check_balance,后者 < 1ms 秒回(同一只股票数据已在内存)。

compare_peers 默认 metrics:TOTAL_ASSETS / TOTAL_OPERATE_INCOME / PARENT_NETPROFIT / NETCASH_OPERATE / TOTAL_EQUITY,自动派生 ROE = PARENT_NETPROFIT / 平均权益(本年期末权益 + 去年期末权益的均值,去年数据走 lru cache 几乎无成本;去年数据缺失时降级为期末权益,在 roe_method 字段标 ending_equity_fallback)。自动 fallback:银行业 TOTAL_OPERATE_INCOME 缺失时退到 OPERATE_INCOME 并在 fallbacks 字段标注。并发实现:ThreadPoolExecutor(max_workers=8),N 家公司并行拉(单家失败不挂整体,记入 errors)。实测 4 大银行 2024 年报对比 ~38s 跑完;招行 ROE 12.85%(零售之王长期领跑)。

HTTP API 模式

除了 MCP stdio 协议,项目还提供一个 FastAPI HTTP wrapper,供 Web 前端、curl、Postman 等任意 HTTP 客户端调用——这是给 Web demo 用的:

Terminal
pip install -e .
ashare-mcp-http
# Uvicorn running on http://0.0.0.0:8000

5 个 endpoint(完整 schema 见 /docs FastAPI 自动生成的 OpenAPI 页面):

方法路径对应 MCP tool
GET/healthz(健康检查 + 版本号)
GET/api/statements?stock_code&yearget_three_statements
GET/api/cross-check?stock_code&yearcross_check_balance
POST/api/compare-peers(body JSON)compare_peers
GET/api/history?stock_code&yearstrack_company_history

错误统一格式:{"error": "...", "code": "INVALID_INPUT" | "UPSTREAM_ERROR"}(HTTP 422 / 502)。CORS 默认 *,生产部署前应收紧到具体域名。/api/compare-peers 单次最多 20 个代码(防请求放大);公开部署建议在反向代理层(Nginx / Cloudflare 等)再加限流。

冒烟测试:

Terminal
curl 'http://localhost:8000/api/statements?stock_code=000001&year=2024' | jq '.company_name, .balance_sheet.TOTAL_ASSETS'
# "平安银行"
# 5769270000000

Web 前端 demo

web/ 子目录是一个 React + Vite + TypeScript + Tailwind 写的 4-tab 前端,直接调上面的 HTTP API,给非技术用户也能用浏览器试一下:

bash
cd web
npm install
cp .env.example .env.local  # 默认 VITE_API_BASE=http://localhost:8000
npm run dev           # 开发预览 → http://localhost:5173
npm run build         # 生产构建到 dist/

4 个 tab 对应 4 个核心工具:三大报表 / 勾稽校验 / 同业对比 / 历史趋势。需要后端 ashare-mcp-http 同时跑在 :8000。详见 web/README.md。

PDF 文档解析(可选)

parse_document 工具用 opendatalab/MinerU 把 PDF / DOCX / PPTX / 图片(招股书、研报、年报扫描件等)解析成 LLM-ready 的 markdown。由于 MinerU pipeline 后端需要 torch + transformers 等几 GB 依赖,单独走 extra 安装:

Terminal
pip install -e ".[pdf]"        # 装 mineru
# 若要解析 PDF / 图片,还需 pipeline extras:
pip install "mineru[pipeline]"

不装也不影响其它 4 个工具——只是调用 parse_document 时会以 RuntimeError("mineru not installed") 友好失败。

架构

mermaid
flowchart LR
    LLM[Claude / 任意 MCP 客户端] -->|JSON-RPC over stdio| Server[ashare-mcp<br/>FastMCP server]
    Web[Web 前端<br/>React + Vite] -->|HTTP / JSON| HTTP[ashare-mcp-http<br/>FastAPI wrapper]
    Curl[curl / Postman / 其它] -->|HTTP / JSON| HTTP
    Server -->|共享业务层| Core[业务模块<br/>checks / peer_compare / history]
    HTTP -->|共享业务层| Core
    Core -->|代码归一化| Norm[股票代码归一化<br/>SZ/SH/BJ 自动判断]
    Core -->|拉取三表| DS[数据源封装<br/>akshare 包装层]
    DS -->|缓存命中| Cache[(进程内存缓存<br/>lru_cache)]
    DS -->|缓存未命中| YearlyEM[akshare<br/>by_yearly_em]
    YearlyEM -->|HTTP| EM[东方财富<br/>财报数据接口]
    DS -->|字段过滤| Filter[剔除元数据列<br/>剔除同比列<br/>剔除空/零字段]

关键设计:

  • 字段名保留东方财富原始英文(TOTAL_ASSETS / LOAN_ADVANCE / NETPROFIT)。LLM 直接能理解,且银行 / 工商企业 / 保险等不同行业字段都在同一份字典里,无需做行业判断。
  • 进程内存缓存让"同一公司多年份对比"几乎零成本——冷启动一次拉全量,后续年份切换 < 1ms。
  • 日志走 stderr,不污染 MCP stdio 协议通道。

部署

仓库已内置三份部署配置,前后端分开部署:

文件平台部署对象关键配置
railway.json + nixpacks.tomlRailway后端 ashare-mcp-httpNixpacks 构建(Python 3.11),启动 ashare-mcp-http,健康检查 /healthz,失败重启最多 3 次
vercel.jsonVercel前端 web/(Vite 静态站)构建 cd web && npm run build,产物 web/dist,SPA rewrites 到 index.html

后端(Railway):连接仓库后 Railway 自动读 nixpacks.toml 构建(锁 Python 3.11,不装 [pdf] extra),$PORT 由平台注入(见 http_app.py)。健康检查打 /healthz。

前端(Vercel):框架识别为 Vite,构建 web/ 子目录输出到 web/dist。部署前在 Vercel 环境变量里设置 VITE_API_BASE 指向你的 Railway 后端地址。

公开部署提醒:http_app.py 的 CORS 默认 *,生产应收紧到具体前端域名;/api/compare-peers 单请求上限 20 个代码,建议反向代理层再加限流。

路线图

版本工具状态
v0get_three_statements✅
v1cross_check_balance(3 条行业通用勾稽)✅
v1compare_peers(同业横向对比 + ROE 派生)✅
v1.5cross_check_balance + 营业利润分解(行业感知:银行 / 工商企业)✅
v1.5compare_peers 升级到 ROE_avg(平均权益)✅
v2跨年趋势工具 track_company_history(单公司多年 + CAGR)✅
v2parse_document PDF/DOCX → markdown(MinerU,optional)✅
v2(当前)FastAPI HTTP wrapper + Web 前端 demo + pytest + CI✅
v3季度数据 + 同比/环比派生指标待定
v3公开 demo 站部署配置(Vercel 前端 + Railway 后端)✅(railway.json / nixpacks.toml / vercel.json 已落仓,见「部署」一节)
v3MCP 官方 registry 发布待定

本地开发

server.ts
# 装 dev 依赖(包含 pytest / httpx)
pip install -e ".[dev]"

# 跑测试套件(全部离线,akshare 走 mock,~1.5s)
pytest tests/ -v

# 增量验证(每次改完跑一遍)
python -c "from ashare_mcp.server import mcp; \
  import asyncio; print([t.name for t in asyncio.run(mcp.list_tools())])"

# 起 HTTP server 本地预览
ashare-mcp-http
# 另一终端:
curl http://localhost:8000/healthz

CI

.github/workflows/ci.yml 跑两个 job:

  • Backend matrix:Python 3.10 / 3.11 / 3.12 — pip install -e ".[dev]" + pytest tests/ -v + 验证 MCP & HTTP 入口都能 import
  • Frontend(Node 20)— cd web && npm ci + tsc --noEmit + npm run build

PDF 路径(parse_document)默认 skip(mineru 是 optional);要本地跑这部分:pip install -e ".[dev,pdf]" && pytest tests/test_parse_document.py -v。

数据声明

  • 数据源:东方财富,通过 akshare。
  • 数据延迟、口径、准确性以东方财富为准,不构成投资建议。
  • 仅用于教育与研究目的。

License

MIT — see LICENSE.

Read the full README →View source on GitHub →

Related MCP Servers

View all in Finance & Fintech View all alternatives
  • MCP Server Ledger logoMCP Server Ledger

    A ledger-cli integration for managing financial transactions and generating reports.

    💰 Finance & Fintech3 views
    Compare vs MCP Server Ledger →
  • Xinkuang China Stock MCP logoXinkuang China Stock MCP

    Access real-time and historical market data for China A-shares and Hong Kong stocks, along with ne…

    💰 Finance & Fintech4 views
    Compare vs Xinkuang China Stock MCP →
  • Brazilian Central Bank (BCB) MCP logoBrazilian Central Bank (BCB) MCP
    Verified

    MCP server for the Brazilian Central Bank (Banco Central do Brasil): SGS time series (Selic, IPCA, exchange rates, GDP and 139 curated, source-verified indicators), the Focus market-expectations survey and PTAX official exchange rates. 15 tools, 3 resources and 3 prompts, with provenance metadata on every response. Runs locally via npx (stdio) or through the hosted endpoint at https://bcb.sidneybissoli.com/mcp — no API key or signup required.

    💰 Finance & Fintech7 views
    Compare vs Brazilian Central Bank (BCB) MCP →
  • Hledger MCP logoHledger MCP

    Double entry plain text accounting, right in your LLM! This MCP enables comprehensive read, and (optional) write access to your local HLedger accounting journals.

    💰 Finance & Fintech7 views
    Compare vs Hledger MCP →

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars
5
Stargazers on the source repository.
Directory activity
1 views
Config copies, upvotes, and views on AllMCPs.

Reviews

No reviews yet — be the first to share how this listing worked for you.

Frequently Asked Questions about Ashare MCP

It supports Chinese A-shares listed in Shanghai, Shenzhen, and Beijing.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewAshare MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/yli769227-jpg-ashare-mcp?style=directory)](https://allmcps.com/mcp/yli769227-jpg-ashare-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/yli769227-jpg-ashare-mcp"><img src="https://allmcps.com/api/badge/yli769227-jpg-ashare-mcp?style=directory" alt="Ashare MCP on AllMCPs" /></a>

Technical Specs & Signals

Category💰Finance & Fintech
PricingFree
More technical detailsExpand ▾
AuthNo auth required
LicenseMIT
ClientsClaude Desktop
Last updatedAug 11, 2026
Views1
Unique ViewsTotal visits recorded for this listing page on AllMCPs.
Installs0
Installs & Copy ActionsTotal times users copied install commands or configuration snippets for this server.
GitHub stars5
GitHub Star CountTotal stargazers on GitHub representing community popularity (5 stars).
41Quality signal: Fair · 41/100How this signal is calculated ▾
Server availabilityNot measured

Not scored for repo-hosted servers — we can't reach the running server, only its GitHub page. Hosted MCP endpoints are health-checked live.

Verified ownership10/20
Documentation & tools19/30
Adoption & activity2/15
Community engagement0/10

A guidance signal from public completeness & health data — not a user rating. New listings start lower and rise as they add docs, get verified, and grow adoption. Signals we can't observe for a listing are skipped, not counted against it.

★ FeaturedMoxie Docs MCP logo

Moxie Docs MCP

MCP & Agent Skills for Automated Documentation, and codebase conventions + context

Explore Server →

Own this project?

This directory is pre-filled from public sources. Claim via GitHub README, site badge, or DNS TXT to unlock edit access and the Official badge — proof is checked automatically, then reviewed by our team.

Free dofollow backlink: add your website and place the AllMCPs badge on it — no claim needed. We detect it automatically and keep it verified as long as the badge stays live.

Claim & get free dofollow

Share & Embed

Add our SVG badge (dark/light directory styles) or embeddable widget to your site.

Explore more

More in 💰 Finance & Fintech →Best MCP servers for Finance & Fintech →Alternatives to Ashare MCP →Install in Claude DesktopInstall in CursorInstall in VS Code