En

A

A-share market MCP protocol server supporting multi-data queries

Install & Use

Copy this prompt and send it to your AI assistant (Claude / Cursor / TRAE / Codex / WorkBuddy etc.) to auto-install:

Help me install this AI Skill: A.
It is used for: A-share market MCP protocol server supporting multi-data queries
Details: https://321skill.com/en/skills/a-a-share-mcp-is-just-i-need/

This Skill addresses the fragmentation and inconsistent interfaces faced by A-share investors and quantitative traders when accessing financial data. In practical development, developers often need to piece together market data, financials, sector information, etc., from multiple sources. The Baostock MCP server integrates A-share historical quotes, real-time quotes, financial indicators, and sector data into a conversational interface via the standardized MCP protocol, significantly lowering the barrier to data acquisition.

Usage is straightforward: simply configure the server address and credentials in an MCP-compatible AI assistant (such as Claude). You can then query data using natural language instructions, e.g., "Query Kweichow Moutai's daily K-line data from 2023 to present" or "Get the current list of CSI 300 constituent stocks." The server automatically parses requests, calls the Baostock API, and returns structured results—no coding required.

It is well-suited for quantitative traders, data analysts, and financial developers who need quick access to A-share data for strategy backtesting, market analysis, or investment research. Teams already using AI tools like Claude for data analysis can particularly benefit by embedding data query capabilities directly into their conversational workflows, eliminating the need to switch between multiple tools.

Before first use, it is recommended to register an account on the Baostock official website to obtain an API key. Note that the server primarily relies on Baostock's data sources; some high-frequency or real-time data may have delays and is not suitable for millisecond-level trading scenarios. When querying historical data, specifying a date range is advised to avoid excessive data returns that could impact response speed.

Key Features

Compared to TuShare's MCP server, the Baostock MCP server offers free access to basic data without registration and provides more comprehensive coverage of historical market data (supporting data from 1990 to present). Unlike AkShare's MCP solution, it natively supports the MCP protocol, requiring no additional wrapping and offering simpler configuration.

Limitations

Relies on Baostock data sources; real-time quotes have approximately a 15-minute delay and do not support Level-2 data. Requires Python 3.8+ environment and network connectivity.

FAQ

Is this Skill free to use?

Baostock itself is free, and this MCP server is also open-source and free. However, using an AI assistant (e.g., Claude) may require a subscription fee.

What types of data does it support querying?

It supports A-share historical daily/weekly/monthly K-lines, real-time quotes, financial indicators, sector constituent stocks, ex-rights and ex-dividend adjustments, dividend distributions, etc. For details, refer to the official Baostock documentation.