CN FinancialSAFE
cn金融数据 MCP 服务器 — 工具包覆盖 A 股行情、财报、估值、板块、市场全景、新闻及宏观指标。
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
cn大陆金融数据 MCP Server 基于 AKShare · 支持 MCP 协议 · 42 个金融工具
📸 Demo
在 Claude Code 中通过 MCP 工具查询中国西电的盘口走势以及投研分析
简介
cn-financial-mcp 是一个遵循 Model Context Protocol (MCP) 标准的金融数据服务器,专注于cn大陆市场。它让任何支持 MCP 的 AI Agent(如 Claude Code、Cursor、自定义 Agent)都能直接调用 A 股行情、财报、行业、宏观经济等 42 个金融工具,无需 API Key,开箱即用。
底层数据来源于 AKShare,并内置多数据源自动 fallback 机制(东方财富 → 新浪 / 腾讯 / 同花顺),确保在不同网络环境下的可用性。
✨ 功能一览
合计 42 个工具,覆盖从个股研究到宏观分析的完整链路。
🚀 快速开始
环境要求
- Python 3.10+
- pip
安装
git clone https://github.com//cn-financial-mcp.git cd cn-financial-mcp pip install -e .
验证安装
PYTHONPATH=src python -m cn_financial_mcp --help
usage: __main__.py [-h] [--http] [--port PORT] [--host HOST] cn-fina
8093324ed597OBSERVED · 2026-10-08Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control.
claude mcp add cn-financial-mcp -- uvx cn-financial-mcp
{
"mcpServers": {
"cn-financial-mcp": {
"command": "uvx",
"args": [
"cn-financial-mcp"
]
}
}
}Exposed tools (42)
42 read · 0 write · 0 destructive.
| Tool | Risk | Description |
|---|---|---|
get_analyst_rating | read | |
get_balance_sheet | read | |
get_bond_yield_curve | read | |
get_cash_flow_statement | read | |
get_company_announcements | read | |
get_company_info | read | |
get_company_profile | read | |
get_competitors | read | |
get_concept_list | read | |
get_dividend_data | read | |
get_dragon_tiger | read | |
get_financial_calendar | read | |
get_financial_indicators | read | |
get_financial_line_item | read | |
get_fx_rate | read | |
get_growth_rates | read | |
get_historical_price | read | |
get_income_statement | read | |
get_industry_list | read | |
get_industry_pe | read | |
get_industry_stocks | read | |
get_insider_trading | read | |
get_institutional_holdings | read | |
get_limit_up_down | read | |
get_macro_cpi | read | |
get_macro_gdp | read | |
get_macro_money_supply | read | |
get_macro_pmi | read | |
get_margin_trading | read | |
get_market_capitalization | read | |
get_market_overview | read | |
get_money_flow | read | |
get_north_bound_flow | read | |
get_per_share_data | read | |
get_realtime_quote | read | |
get_sector_fund_flow | read | |
get_segments_revenue | read | |
get_stock_list | read | |
get_stock_news | read | |
get_valuation_metrics | read | |
search_news | read | |
search_stock | read |
Trust audit
SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | PASS |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- none-observed
- Network
- none-observed
- Shell
- none-observed
- Dependencies
- not all pinned
- Secrets in source
- none-found
Findings (1)
mcp, akshare, pandas, pydantic, uvicorn, starlette, sse-starlette
Gates applied: no_behavioural_pass.
8093324ed597full audit observations/trust-audit/mcp-server/ccq1__cn-financial.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-08 | 8093324ed597 | SAFE | B | 89 | first audit |
Questions
What is the CN Financial MCP server?
cn金融数据 MCP 服务器 — 工具包覆盖 A 股行情、财报、估值、板块、市场全景、新闻及宏观指标。
What tools does CN Financial expose?
42 in total: 42 read-only, 0 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is CN Financial safe to connect to an agent?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B.
What credentials does CN Financial need?
No credential environment variables were found in its source, so it appears to need none.
How does CN Financial run?
It speaks sse and stdio, so it runs as a local process your client starts. It is published on PyPI as cn-financial-mcp.
How current is this page?
The grade is for one exact copy of the source (8093324ed597), read on 2026-10-08. The repository is watched and re-audited when it changes.