China StockSAFE
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
English
Overview
China Stock MCP Server is a Multi-Call Protocol (MCP) server that provides comprehensive access to Chinese stock market data through a unified API. It leverages the AKShare library to fetch real-time and historical data from various Chinese stock exchanges including Shanghai (SSE), Shenzhen (SZSE), and Beijing (BSE).
Features
- Comprehensive Data Coverage: Access to A-shares, B-shares, indices, ETFs, and more
- Real-time Market Data: Up-to-date quotes, bid-ask spreads, and market depth
- Historical Data: Daily, minute-level, and tick-level historical price data
- Fundamental Data: Company information, financial reports, and dividend history
- Market Intelligence: Sector analysis, concept boards, and institutional holdings
- Technical Indicators: Various technical analysis metrics and signals
Installation
# Clone the repository git clone https://github.com/yourusername/china-stock-mcp.git cd china-stock-mcp/china-stock-mcp-server # Create and activate a virtual environment python -m venv .venv source .venv/bin/activate # On Windows: .venv\Scripts\activate # Install dependencies pip install -r requirements.txt
API Documentation
The server exposes numerous endpoints for accessing different types of stock market data. Each function is well-documented with parameter descriptions and return value formats. Some key functions include:
stock_zh_a_spot_em(): Get real-time A-share market datastock_zh_a_daily(symbol, start_date, end_date, adjust): Get historical daily data for a specific stockstock_individual_info_em(symbol): Get detailed information for a specific stockstock_financial_analysis_indicator(symbol): Get financial analysis indicators for a specific stock
Dependencies
- AKShare: Chinese financial data interface package
- FastMCP: Multi-Call Protocol server framework
License
This project is licensed under the MIT License - see the LIC
efce4e4eaae7OBSERVED · 2026-10-10Connect
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 china-stock-mcp-server -- uvx china-stock-mcp-server
{
"mcpServers": {
"china-stock-mcp-server": {
"command": "uvx",
"args": [
"china-stock-mcp-server"
]
}
}
}Exposed tools (200)
348 read · 3 write · 0 destructive.
| Tool | Risk | Description |
|---|---|---|
news_report_time_baidu | read | Get 百度股市通-财报发行 |
news_trade_notify_dividend_baidu | read | Get 百度股市通-交易提醒-分红派息 |
news_trade_notify_suspend_baidu | read | Get 百度股市通-交易提醒-停复牌 |
stock_a_all_pb | read | Get 乐咕乐股-A 股等权重与中位数市净率 |
stock_a_below_net_asset_statistics | read | Get 乐咕乐股-A 股破净股统计数据 |
stock_a_congestion_lg | read | Get 乐咕乐股-大盘拥挤度 |
stock_a_gxl_lg | read | Get 乐咕乐股-股息率-A 股股息率 |
stock_a_high_low_statistics | read | Get 不同市场的创新高和新低的股票数量 |
stock_a_indicator_lg | read | Get 乐咕乐股-A 股个股指标: 市盈率, 市净率, 股息率 |
stock_a_ttm_lyr | read | Get 乐咕乐股-A 股等权重市盈率与中位数市盈率 |
stock_account_statistics_em | read | Get statistics on stock trading accounts. |
stock_add_stock | write | Get 新浪财经-发行与分配-增发 |
stock_allotment_cninfo | read | Get 巨潮资讯-个股-配股实施方案 |
stock_analyst_detail_em | read | Get detailed analyst reports for a specific stock from Eastmoney. |
stock_analyst_rank_em | read | Get 东方财富网-数据中心-研究报告-东方财富分析师指数 |
stock_balance_sheet_by_report_delisted_em | read | Get 东方财富-股票-财务分析-资产负债表-已退市股票-按报告期 |
stock_balance_sheet_by_report_em | read | Get 东方财富-股票-财务分析-资产负债表-按报告期 |
stock_balance_sheet_by_yearly_em | read | Get 东方财富-股票-财务分析-资产负债表-按年度 |
stock_bid_ask_em | read | Get real-time bid-ask data for a specific stock. |
stock_bj_a_spot_em | read | Get Beijing Stock Exchange real-time quotes for all stocks. |
stock_board_change_em | read | Get 东方财富-行情中心-当日板块异动详情 |
stock_board_concept_cons_em | read | Get stocks in a specific concept board from Eastmoney. |
stock_board_concept_hist_em | read | Get 东方财富-沪深板块-概念板块-历史行情数据 |
stock_board_concept_hist_min_em | read | Get 东方财富-沪深板块-概念板块-分时历史行情数据 |
stock_board_concept_index_ths | read | Get 同花顺-板块-概念板块-指数日频率数据 |
stock_board_concept_info_ths | read | Get 同花顺-板块-概念板块-板块简介 |
stock_board_concept_name_em | read | Get a list of all stock concept boards from Eastmoney. |
stock_board_concept_spot_em | read | Get 东方财富网-行情中心-沪深京板块-概念板块-实时行情 |
stock_board_industry_cons_em | read | Get stocks in a specific industry board from Eastmoney. |
stock_board_industry_hist_em | read | Get 东方财富-沪深板块-行业板块-历史行情数据 |
stock_board_industry_hist_min_em | read | Get 东方财富-沪深板块-行业板块-分时历史行情数据 |
stock_board_industry_index_ths | read | Get 同花顺-板块-行业板块-指数日频率数据 |
stock_board_industry_name_em | read | Get a list of all stock industry boards from Eastmoney. |
stock_board_industry_spot_em | read | Get 东方财富网-沪深板块-行业板块-实时行情 |
stock_board_industry_summary_ths | read | Get 同花顺-同花顺行业一览表 |
stock_buffett_index_lg | read | Get 乐估乐股-底部研究-巴菲特指标 |
stock_cash_flow_sheet_by_quarterly_em | read | Get cash flow statement by quarter from East Money for a specific stock. |
stock_cash_flow_sheet_by_report_delisted_em | read | Get 东方财富-股票-财务分析-现金流量表-已退市股票-按报告期 |
stock_cash_flow_sheet_by_report_em | read | Get cash flow statement by reporting period from East Money for a specific stock. |
stock_cash_flow_sheet_by_yearly_em | read | Get cash flow statement by year from East Money for a specific stock. |
stock_cg_equity_mortgage_cninfo | read | Get equity pledge data from CNINFO (China Securities Regulatory Commission Information Disclosure). |
stock_cg_guarantee_cninfo | read | Get 巨潮资讯-数据中心-专题统计-公司治理-对外担保 |
stock_cg_lawsuit_cninfo | read | Get 巨潮资讯-数据中心-专题统计-公司治理-公司诉讼 |
stock_changes_em | read | Get market anomaly data from East Money |
stock_circulate_stock_holder | read | Get circulating shareholder data from Sina Finance. |
stock_comment_detail_scrd_cost_em | read | Get market cost data from East Money |
stock_comment_detail_scrd_desire_daily_em | read | Get daily market participation willingness data from East Money |
stock_comment_detail_scrd_desire_em | read | Get market participation willingness data from East Money |
stock_comment_detail_scrd_focus_em | read | Get user focus index data from East Money |
stock_comment_detail_zhpj_lspf_em | read | Get historical score data from East Money |
stock_comment_detail_zlkp_jgcyd_em | read | Get institutional participation data from East Money |
stock_comment_em | read | Get comprehensive stock evaluation data from East Money |
stock_concept_cons_futu | read | Get concept stock constituents from Futu Niuiu |
stock_concept_fund_flow_hist | read | Get historical concept fund flow data from East Money |
stock_cy_a_spot_em | read | Get real-time quotes for ChiNext (Growth Enterprise Market) stocks from East Money. |
stock_cyq_em | read | Get chip distribution data from East Money |
stock_dividend_cninfo | read | Get dividend history for a specific stock from CNINFO. |
stock_dxsyl_em | read | Get new stock subscription yield data from East Money |
stock_dzjy_hygtj | read | Get active A-share statistics for block trades from East Money |
stock_dzjy_hyyybtj | read | Get active brokerage statistics for block trades from East Money |
stock_dzjy_mrmx | read | Get daily details of block trades from East Money |
stock_dzjy_mrtj | read | Get daily statistics of block trades from East Money |
stock_dzjy_sctj | read | Get market statistics of block trades from East Money |
stock_dzjy_yybph | read | Get brokerage rankings for block trades from East Money |
stock_ebs_lg | read | Get equity-bond spread data from LeGuLeGu. |
stock_esg_hz_sina | read | Get ESG ratings from Sina Finance |
stock_esg_msci_sina | read | Get 新浪财经-ESG评级中心-ESG评级-MSCI |
stock_esg_rate_sina | read | Get 新浪财经-ESG评级中心-ESG评级-ESG评级数据 |
stock_esg_rft_sina | read | Get 新浪财经-ESG评级中心-ESG评级-路孚特 |
stock_esg_zd_sina | read | Get 新浪财经-ESG评级中心-ESG评级-秩鼎 |
stock_fhps_detail_em | read | Get 东方财富网-数据中心-分红送配-分红送配详情 |
stock_fhps_detail_ths | read | Get 同花顺-分红情况 |
stock_fhps_em | read | Get 东方财富-数据中心-年报季报-分红配送 |
stock_financial_abstract | read | Get 新浪财经-财务报表-关键指标 |
stock_financial_abstract_ths | read | Get 同花顺-财务指标-主要指标 |
stock_financial_analysis_indicator | read | Get financial analysis indicators for a specific stock. |
stock_financial_benefit_ths | read | Get 同花顺-财务指标-利润表 |
stock_financial_cash_ths | read | Get 同花顺-财务指标-现金流量表 |
stock_financial_debt_ths | read | Get 同花顺-财务指标-资产负债表 |
stock_financial_hk_analysis_indicator_em | read | Get 东方财富-港股-财务分析-主要指标 |
stock_financial_hk_report_em | read | Get 东方财富-港股-财务报表-三大报表 |
stock_financial_report_sina | read | Get 新浪财经-财务报表-三大报表 |
stock_financial_us_analysis_indicator_em | read | Get 东方财富-美股-财务分析-主要指标 |
stock_financial_us_report_em | read | Get 东方财富-美股-财务分析-三大报表 |
stock_fund_flow_big_deal | read | Get big deal tracking data from TongHuaShun data center. |
stock_fund_flow_concept | read | Get concept fund flow data from TongHuaShun data center. |
stock_fund_flow_individual | read | Get individual stock fund flow data from TongHuaShun data center. |
stock_fund_flow_industry | read | Get industry fund flow data from TongHuaShun data center. |
stock_fund_stock_holder | read | Get 新浪财经-股本股东-基金持股 |
stock_gddh_em | read | Get 东方财富网-数据中心-股东大会 |
stock_gdfx_free_holding_analyse_em | read | Get 东方财富网-数据中心-股东分析-股东持股分析-十大流通股东 |
stock_gdfx_free_holding_change_em | read | Get 东方财富网-数据中心-股东分析-股东持股变动统计-十大流通股东 |
stock_gdfx_free_holding_detail_em | read | Get 东方财富网-数据中心-股东分析-股东持股明细-十大流通股东 |
stock_gdfx_free_holding_statistics_em | read | Get 东方财富网-数据中心-股东分析-股东持股统计-十大股东 |
stock_gdfx_free_holding_teamwork_em | read | Get 东方财富网-数据中心-股东分析-股东协同-十大流通股东 |
stock_gdfx_free_top_10_em | read | Get 东方财富网-个股-十大流通股东 |
stock_gdfx_holding_analyse_em | read | Get 东方财富网-数据中心-股东分析-股东持股分析-十大股东 |
stock_gdfx_holding_change_em | read | Get 东方财富网-数据中心-股东分析-股东持股变动统计-十大股东 |
stock_gdfx_holding_detail_em | read | Get 东方财富网-数据中心-股东分析-股东持股明细-十大股东 |
stock_gdfx_holding_statistics_em | read | Get 东方财富网-数据中心-股东分析-股东持股统计-十大股东 |
stock_gdfx_holding_teamwork_em | read | Get 东方财富网-数据中心-股东分析-股东协同-十大股东 |
stock_gdfx_top_10_em | read | Get 东方财富网-个股-十大股东 |
stock_ggcg_em | read | Get 东方财富网-数据中心-特色数据-高管持股 |
stock_gpzy_distribute_statistics_bank_em | read | Get 东方财富网-数据中心-特色数据-股权质押-质押机构分布统计-银行 |
stock_gpzy_distribute_statistics_company_em | read | Get 东方财富网-数据中心-特色数据-股权质押-质押机构分布统计-证券公司 |
stock_gpzy_industry_data_em | read | Get 东方财富网-数据中心-特色数据-股权质押-上市公司质押比例-行业数据 |
stock_gpzy_pledge_ratio_detail_em | read | Get 东方财富网-数据中心-特色数据-股权质押-重要股东股权质押明细 |
stock_gpzy_pledge_ratio_em | read | Get 东方财富网-数据中心-特色数据-股权质押-上市公司质押比例 |
stock_gpzy_profile_em | read | Get 东方财富网-数据中心-特色数据-股权质押-股权质押市场概况 |
stock_gsrl_gsdt_em | read | Get 东方财富网-数据中心-股市日历-公司动态 |
stock_history_dividend | read | Get 新浪财经-发行与分配-历史分红 |
stock_history_dividend_detail | read | Get 新浪财经-发行与分配-分红配股 |
stock_hk_daily | read | Get historical daily data for a specific Hong Kong stock. |
stock_hk_fhpx_detail_ths | read | Get 同花顺-港股-分红派息 |
stock_hk_ggt_components_em | read | Get 东方财富网-行情中心-港股市场-港股通成份股 |
stock_hk_gxl_lg | read | Get 乐咕乐股-股息率-恒生指数股息率 |
stock_hk_hist | read | Get 东方财富网-行情首页-港股-每日分时行情 |
stock_hk_hist_min_em | read | Get 东方财富网-行情首页-港股-每日分时行情 |
stock_hk_hot_rank_detail_em | read | Get 东方财富网-股票热度-历史趋势 |
stock_hk_hot_rank_detail_realtime_em | read | Get 东方财富网-个股人气榜-实时变动 |
stock_hk_hot_rank_em | read | Get 东方财富-个股人气榜-人气榜-港股市场 |
stock_hk_hot_rank_latest_em | read | Get 东方财富-个股人气榜-最新排名 |
stock_hk_indicator_eniu | read | Get 亿牛网-港股个股指标: 市盈率, 市净率, 股息率, ROE, 市值 |
stock_hk_main_board_spot_em | read | Get 港股主板的实时行情数据; 该数据有 15 分钟延时 |
stock_hk_profit_forecast_et | read | Get 经济通-公司资料-盈利预测 |
stock_hk_spot | read | Get 所有港股的实时行情数据; 该数据有 15 分钟延时 |
stock_hk_spot_em | read | Get real-time quotes for all Hong Kong stocks. |
stock_hk_valuation_baidu | read | Get 百度股市通-港股-财务报表-估值数据 |
stock_hold_change_cninfo | read | Get 巨潮资讯-数据中心-专题统计-股东股本-股本变动 |
stock_hold_control_cninfo | read | Get 巨潮资讯-数据中心-专题统计-股东股本-实际控制人持股变动 |
stock_hold_management_detail_cninfo | read | Get 巨潮资讯-数据中心-专题统计-股东股本-高管持股变动明细 |
stock_hold_management_detail_em | read | Get 东方财富网-数据中心-特色数据-高管持股-董监高及相关人员持股变动明细 |
stock_hold_management_person_em | read | Get 东方财富网-数据中心-特色数据-高管持股-人员增减持股变动明细 |
stock_hold_num_cninfo | read | Get 巨潮资讯-数据中心-专题统计-股东股本-股东人数及持股集中度 |
stock_hot_deal_xq | read | Get 雪球-沪深股市-热度排行榜-交易排行榜 |
stock_hot_follow_xq | read | Get 雪球-沪深股市-热度排行榜-关注排行榜 |
stock_hot_keyword_em | read | Get 东方财富-个股人气榜-热门关键词 |
stock_hot_rank_detail_em | read | Get 东方财富网-股票热度-历史趋势及粉丝特征 |
stock_hot_rank_detail_realtime_em | read | Get 东方财富网-个股人气榜-实时变动 |
stock_hot_rank_em | read | Get 东方财富网站-股票热度 |
stock_hot_rank_latest_em | read | Get 东方财富-个股人气榜-最新排名 |
stock_hot_rank_relate_em | read | Get 东方财富-个股人气榜-相关股票 |
stock_hot_rank_wc | read | Get 问财-热门股票排名数据; 请注意访问的频率 |
stock_hot_search_baidu | read | Get 百度股市通-热搜股票 |
stock_hot_tweet_xq | read | Get 雪球-沪深股市-热度排行榜-讨论排行榜 |
stock_hot_up_em | read | Get 东方财富-个股人气榜-飙升榜 |
stock_hsgt_board_rank_em | read | Get sector ranking data for Shanghai-Shenzhen-Hong Kong Stock Connect holdings from East Money. |
stock_hsgt_fund_flow_summary_em | read | Get 东方财富网-数据中心-资金流向-沪深港通资金流向 |
stock_hsgt_fund_min_em | read | Get 东方财富-数据中心-沪深港通-市场概括-分时数据 |
stock_hsgt_hist_em | read | Get historical data for Shanghai-Shenzhen-Hong Kong Stock Connect capital flows from East Money. |
stock_hsgt_hold_stock_em | read | Get individual stock ranking data for Shanghai-Shenzhen-Hong Kong Stock Connect holdings from East Money. |
stock_hsgt_individual_detail_em | read | Get 东方财富网-数据中心-沪深港通-沪深港通持股-具体股票-个股详情 |
stock_hsgt_individual_em | read | Get Shanghai-Shenzhen-Hong Kong Stock Connect holdings data for a specific stock from East Money. |
stock_hsgt_institution_statistics_em | read | Get institutional ranking data for Shanghai-Shenzhen-Hong Kong Stock Connect holdings from East Money. |
stock_hsgt_sh_hk_spot_em | read | Get real-time stock data for Shanghai-Hong Kong Stock Connect (Shanghai to Hong Kong) from East Money. |
stock_hsgt_stock_statistics_em | read | Get daily stock statistics for Shanghai-Shenzhen-Hong Kong Stock Connect holdings from East Money. |
stock_index_pb_lg | read | Get index price-to-book ratio data from LeGuLeGu. |
stock_index_pe_lg | read | Get index price-to-earnings ratio data from LeGuLeGu. |
stock_individual_fund_flow | read | Get fund flow data for a specific stock. |
stock_individual_fund_flow_rank | read | Get fund flow ranking for all stocks. |
stock_individual_info_em | read | Get detailed information for a specific stock. |
stock_individual_spot_xq | read | Get real-time stock data for individual stocks from XueQiu. |
stock_industry_category_cninfo | read | Get industry classification data from CNINFO (China Securities Regulatory Commission) |
stock_industry_change_cninfo | read | Get industry classification changes for listed companies from CNINFO. |
stock_industry_clf_hist_sw | read | Get historical industry classification data for all stocks from Shenwan Hongyuan Research. |
stock_industry_pe_ratio_cninfo | read | Get industry price-to-earnings ratio data from CNINFO. |
stock_info_a_code_name | read | Get stock codes and names for all A-shares listed on Shanghai, Shenzhen, and Beijing Stock Exchanges. |
stock_info_bj_name_code | read | Get stock codes and names for all stocks listed on the Beijing Stock Exchange. |
stock_info_change_name | read | Get historical names (former names) of a stock from Sina Finance. |
stock_info_sh_delist | read | Get suspended/delisted stocks information from the Shanghai Stock Exchange. |
stock_info_sh_name_code | read | Get stock codes and names for stocks listed on the Shanghai Stock Exchange. |
stock_info_sz_change_name | read | Get company name change information from the Shenzhen Stock Exchange. |
stock_info_sz_delist | read | Get suspended/delisted stocks information from the Shenzhen Stock Exchange. |
stock_info_sz_name_code | read | Get stock codes and names for stocks listed on the Shenzhen Stock Exchange. |
stock_inner_trade_xq | read | Get insider trading information from Xueqiu for stocks in the Shanghai and Shenzhen markets. |
stock_institute_hold | read | Get institutional investors |
stock_institute_hold_detail | read | Get detailed institutional shareholding information from Sina Finance. |
stock_institute_recommend | read | Get institutional recommendation pool data from Sina Finance based on specific indicators. |
stock_institute_recommend_detail | read | Get detailed stock rating records from the institutional recommendation pool on Sina Finance. |
stock_intraday_em | read | Get intraday data for a specific A-share stock from Eastmoney. |
stock_intraday_sina | read | Get intraday time-series data from Sina Finance. |
stock_ipo_benefit_ths | read | Get IPO beneficiary stocks data from TongHuaShun Data Center. |
stock_ipo_declare | read | Get IPO declaration information from East Money Data Center. |
stock_ipo_info | read | Get new stock issuance information from Sina Finance. |
stock_ipo_summary_cninfo | read | Get IPO-related information for a specific stock from CNINFO (China Securities Information). |
stock_irm_ans_cninfo | read | Get answer data from the Interactive Easy platform (CNINFO). |
stock_irm_cninfo | read | Get question data from the Interactive Easy platform (CNINFO). |
stock_jgdy_detail_em | read | Get detailed institutional research data from East Money. |
stock_jgdy_tj_em | read | Get institutional research statistics from East Money. |
stock_kc_a_spot_em | read | Get real-time quotes for all stocks on the Science and Technology Innovation Board (STAR Market) from East Money. |
stock_lh_yyb_capital | read | Get data on brokerage departments ranked by financial strength from the Dragon-Tiger List. |
stock_lh_yyb_control | read | Get data on brokerage departments ranked by group operation strength from the Dragon-Tiger List. |
stock_lh_yyb_most | read | Get data on brokerage departments ranked by most appearances on the Dragon-Tiger List. |
stock_lhb_detail_daily_sina | read | Get daily details from the Dragon-Tiger List from Sina Finance. |
stock_lhb_detail_em | read | Get Dragon-Tiger List details from East Money |
stock_lhb_ggtj_sina | read | Get individual stock listing statistics from the Dragon-Tiger List from Sina Finance. |
stock_lhb_hyyyb_em | read | Get daily active brokerage departments from the Dragon-Tiger List from East Money |
stock_lhb_jgmmtj_em | read | Get daily statistics of institutional buying and selling from the Dragon-Tiger List from East Money |
stock_lhb_jgmx_sina | read | Get institutional seat transaction details from the Dragon-Tiger List from Sina Finance. |
stock_lhb_jgstatistic_em | read | Get institutional seat tracking from the Dragon-Tiger List from East Money |
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
- pinned
- Secrets in source
- none-found
Findings (1)
Gates applied: no_behavioural_pass, no_license.
efce4e4eaae7full audit observations/trust-audit/mcp-server/peikuo__china-stock.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-10 | efce4e4eaae7 | SAFE | B | 89 | first audit |
Questions
What tools does China Stock expose?
200 in total: 348 read-only, 3 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is China Stock 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 China Stock need?
No credential environment variables were found in its source, so it appears to need none.
How current is this page?
The grade is for one exact copy of the source (efce4e4eaae7), read on 2026-10-10. The repository is watched and re-audited when it changes.