MCP BaoStock Server
@MCP-Mirror
About MCP BaoStock Server
Mirror of
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"HuggingAGI_mcp-baostock-server": {
"command": "uv",
"args": [
"run",
"mcp-baostock-server"
]
}
}
}Tools
No tools detected
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is MCP BaoStock Server?
A stock data server built on BaoStock that provides multiple MCP interfaces for querying Chinese stock market data, including basic info, historical K-line data, industry classification, dividends, quarterly financial indicators, index data, and valuation metrics.
How to use MCP BaoStock Server?
Install dependencies (Python 3.10+, baostock, pandas) and run the server with uv run mcp-baostock-server. The server exposes nine MCP tools, each demonstrated with Python test cases for specific stocks and date ranges.
Key features of MCP BaoStock Server
- Query stock basic information (listing date, industry)
- Retrieve historical daily K-line data (with forward adjustment)
- Look up industry classification for a stock
- Get dividend and bonus distribution records
- Access quarterly profitability, operational, and growth metrics
- Fetch index data (e.g., CSI 300 daily line)
- Obtain valuation indicators (P/E, P/B, etc.)
Use cases of MCP BaoStock Server
- Analyze a stock’s historical price trends using adjusted K-line data
- Retrieve dividend details for a given stock and year
- Evaluate a company’s quarterly earnings, efficiency, and growth ratios
- Compare index performance over a custom date range
- Monitor valuation metrics (P/E, P/B) over time for individual stocks
FAQ from MCP BaoStock Server
What types of financial data does MCP BaoStock Server provide?
It provides stock basic info, K-line history, industry classification, dividends, quarterly financial indicators (profitability, operational capacity, growth capacity), index data, and valuation indicators.
What are the system requirements to run MCP BaoStock Server?
Python 3.10 or higher, plus the baostock and pandas Python packages.
How do I start the MCP BaoStock Server?
Run the command uv run mcp-baostock-server after installing the dependencies.
Are there example queries I can test?
Yes, the README includes Python test cases for each interface, e.g., fetching K-line data for Ping An Bank from 2023-01-01 to 2023-01-31 with forward adjustment.
How can I get support or ask questions?
You can contact the developer via WeChat: iamxxn683 (ID given in the README).
Frequently asked questions
What types of financial data does MCP BaoStock Server provide?
It provides stock basic info, K-line history, industry classification, dividends, quarterly financial indicators (profitability, operational capacity, growth capacity), index data, and valuation indicators.
What are the system requirements to run MCP BaoStock Server?
Python 3.10 or higher, plus the `baostock` and `pandas` Python packages.
How do I start the MCP BaoStock Server?
Run the command `uv run mcp-baostock-server` after installing the dependencies.
Are there example queries I can test?
Yes, the README includes Python test cases for each interface, e.g., fetching K-line data for Ping An Bank from 2023-01-01 to 2023-01-31 with forward adjustment.
How can I get support or ask questions?
You can contact the developer via WeChat: iamxxn683 (ID given in the README).
Basic information
More Other MCP servers

Figs, Relationship Expert
Figs O'Sullivan, LMFTCouples therapist Figs O'Sullivan (LMFT, 17 years, endorsed by Sue Johnson, creator of EFT) inside your AI. Ask relationship questions answered from his clinical writing, name the pattern in a fight, get a three-step rep
ghidraMCP
LaurieWiredMCP Server for Ghidra
XcodeBuildMCP
cameroncookeA Model Context Protocol (MCP) server and CLI that provides tools for agent use when working on iOS and macOS projects.
Unity MCP ✨
justinpbarnettUnity MCP acts as a bridge between AI assistants and your Unity Editor. Give your LLM tools to manage assets, control scenes, edit scripts, and automate tasks within Unity.
AutoBrowser MCP
autobrowser-aiBrowser MCP is a Model Context Provider (MCP) server that allows AI applications to control your browser
Comments