MCP.so
Sign In

MCP BaoStock Server

@HuggingAGI

About MCP BaoStock Server

No overview available yet

Basic information

Category

Other

Runtime

python

Transports

stdio

Publisher

HuggingAGI

Config

Add this server to your MCP-compatible client using the configuration below.

{
  "mcpServers": {
    "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 based on BaoStock that provides multiple interfaces to query Chinese stock market data. It is intended for developers who need programmatic access to fundamental stock information, historical prices, financial indicators, and index data.

How to use MCP BaoStock Server?

Install and run the server using uv run mcp-baostock-server. The server requires Python 3.10+ and the baostock and pandas libraries. Once running, it exposes several tools that can be invoked by an MCP client to retrieve market data.

Key features of MCP BaoStock Server

  • Query basic stock information (listing date, industry, etc.)
  • Retrieve historical K‑line data (with forward adjustment)
  • Look up industry classification data
  • Access dividend and share distribution data
  • Obtain quarterly financial indicators (profitability, operation, growth)
  • Query index data (e.g., CSI 300 daily quotes)
  • Get valuation indicator data (P/E, P/B, etc.)

Use cases of MCP BaoStock Server

  • Build a stock screener that filters stocks by industry and basic info.
  • Perform backtesting with historical daily K‑line data for a given period.
  • Analyze a company’s quarterly profitability, operation efficiency, or growth.
  • Monitor index trends for market overview or portfolio benchmarking.
  • Track valuation metrics over time to support investment decisions.

FAQ from MCP BaoStock Server

What are the runtime requirements?

Python 3.10 or higher is required. The server depends on baostock and pandas.

How do I start the server?

Run uv run mcp-baostock-server in the terminal. The server will then be available for MCP client connections.

What data sources does it use?

All data comes from the BaoStock public database, which provides comprehensive A‑share market data.

Which stock markets are covered?

The server supports A‑share stocks traded on the Shanghai and Shenzhen exchanges, including their indices.

Does the server require any authentication or API key?

No. The README does not mention any authentication key; it relies on the public BaoStock service.

Comments

More Other MCP servers