Xinkuang China Stock MCP logo

Xinkuang China Stock MCP

Fetches China A-share, B-share, and Hong Kong market data, financials, news, indicators, and index information over MCP.

Install Xinkuang China Stock MCP

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "xinkuang-china-stock-mcp": {
      "command": "uvx",
      "args": [
        "china-stock-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Claude Code command
claude mcp add --transport stdio xinkuang-china-stock-mcp -- uvx china-stock-mcp

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

Automated check passed— started and listed 30 tools correctly ().

Overview

xinkuang-china-stock-mcp connects AI assistants to China stock-market data through FastMCP and the akshare-one library. It provides tools for historical and real-time quotes, financial statements, news, ownership, forecasts, valuation, technical indicators, macroeconomic data, and index analysis. The server supports local stdio and network HTTP modes, with memory and disk caching plus fallback sources including Eastmoney, Sina Finance, and Xueqiu. Use it when an agent needs structured research data for Chinese equities or related market analysis.

Use cases

  • Retrieve historical A-share prices with technical indicators
  • Compare company financial statements and valuation data
  • Monitor real-time quotes, news, and fund flows
  • Analyze Chinese stock indexes and constituent data
  • Query ownership, forecasts, dividends, and management changes

Key features

  • Supports A-, B-, and H-share market data
  • Provides 30+ technical indicators
  • Returns JSON, CSV, XML, Excel, Markdown, or HTML
  • Uses multiple data sources with fallback retrieval
  • Caches data in memory and on disk
  • Runs through stdio or HTTP and supports Docker

Tools30

What Xinkuang China Stock MCP lets your agent do. Expand a tool for its parameters.

Verified live~3.3k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

28/28 checks healthy over the last 117d

What it can do

From the 30 tools this server returned when we ran it.

Read-only tools · 30
Network at startup2 connections
Files written at startup1

Observed 2026-12-04 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 3d ago via OSV.dev · china-stock-mcp (PyPI)

Adoption & maintenance

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

GitHub stars48Stargazers on the source repository.
Last commit9mo agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed30Callable tools this server registers over MCP.
Directory activity1 installsConfig copies, upvotes, and views on AllMCPs.

How Xinkuang China Stock MCP works

What xinkuang-china-stock-mcp does

xinkuang-china-stock-mcp exposes China financial-market queries as MCP tools. Coverage includes A-shares, B-shares, and Hong Kong stocks, along with company fundamentals, market activity, investor information, news, macroeconomic indicators, and Chinese index data.

The server can return results in JSON, CSV, XML, Excel, Markdown, or HTML for most data tools. This makes it suitable for agents that need either machine-readable records or formatted research output.

How it works

FastMCP handles MCP communication, while the akshare-one library supplies the underlying market-data access. Data retrieval can use Eastmoney, direct Eastmoney endpoints, Sina Finance, or Xueqiu, depending on the tool. A fallback mechanism tries alternate sources when a preferred source fails or returns no data.

Caching is available in memory and on disk. Cached index information is also supported for the tool that lists China Securities Index data. The server can run locally over stdio or as an HTTP service for network access.

Historical stock data supports minute, hourly, daily, weekly, monthly, and yearly intervals, optional price adjustment modes, and calculated technical indicators. More than 30 indicators are available, including SMA, EMA, RSI, MACD, Bollinger Bands, stochastic indicators, ATR, CCI, ADX, OBV, MFI, and others.

Setup and configuration

The source installation requires Python 3.12 or later, Git, and preferably uv. After cloning the repository, install dependencies with uv sync, or use pip install -r requirements.txt.

Run the default local mode with:

bash
uv run -m china_stock_mcp

For container deployment, pull ghcr.io/xinkuang/china-stock-mcp:latest and publish port 8081:

Terminal
docker run -p 8081:8081 ghcr.io/xinkuang/china-stock-mcp:latest

Smithery provides an installation route for Claude Desktop through its CLI:

Terminal
npx -y @smithery/cli install @xinkuang/china-stock-mcp

Tools and capabilities

Available tools cover:

  • Historical and real-time stock prices, trading data, volatility, fund flows, and technical rankings.
  • Balance sheets, income statements, cash-flow statements, financial metrics, valuation, forecasts, dividends, and products or business composition.
  • News, research reports, shareholder records, circulating holders, insider transactions, management changes, restricted-share releases, and chip-distribution data.
  • Basic stock information, all A-share code and name listings, investor sentiment, and macro indicators such as money supply, GDP, CPI, PMI, and stock summaries.
  • China Securities Index listings, historical index prices, and constituent details.
  • Industry-board real-time summaries and current-time or latest-trading-day information.

Most stock-specific tools accept a symbol and output format. Historical and volatility tools additionally accept date ranges and period or adjustment settings, while technical history can receive a list of indicators to calculate.

Limitations and notes

Market coverage and results depend on the upstream sources used by akshare-one and the configured fallback sequence. Historical technical calculations apply to the data retrieved for the requested symbol, dates, and interval. The server is a data-access and analysis interface; it does not provide order execution tools.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

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

Frequently Asked Questions about Xinkuang China Stock MCP

xinkuang-china-stock-mcp is an MCP server that connects AI assistants to China stock-market data through akshare-one and sources such as Eastmoney, Sina Finance, and Xueqiu. Its main tools retrieve historical and real-time prices, financial statements, news, ownership data, macro indicators, technical indicators, and index information.

Install it with Smithery, Docker, or from source. Smithery can configure it for Claude Desktop; Docker uses the published image and port 8081; source installation requires Python 3.12+, then `uv sync` or `pip install -r requirements.txt`.

Yes, the server is described as compatible with Cursor. It supports local stdio mode for MCP clients, and it also provides an HTTP mode for network-based use.

Call `get_hist_data` with a stock symbol, date range, interval, and `indicators_list`. The tool supports indicators such as SMA, EMA, RSI, MACD, BOLL, STOCH, OBV, and MFI, with the list accepted as a comma-separated string or string array.

Run the published image with port 8081 exposed: `docker pull ghcr.io/xinkuang/china-stock-mcp:latest`, followed by `docker run -p 8081:8081 ghcr.io/xinkuang/china-stock-mcp:latest`. The server also supports local stdio execution.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

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 PreviewXinkuang China Stock MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/xinkuang-china-stock-mcp?style=directory)](https://allmcps.com/mcp/xinkuang-china-stock-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/xinkuang-china-stock-mcp"><img src="https://allmcps.com/api/badge/xinkuang-china-stock-mcp?style=directory" alt="Xinkuang China Stock MCP on AllMCPs" /></a>