MCP.so
登录

MCP BaoStock Server

@HuggingAGI

关于 MCP BaoStock Server

暂无概览

基本信息

分类

其他

运行时

python

传输方式

stdio

发布者

HuggingAGI

配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "mcp-baostock-server": {
      "command": "uv",
      "args": [
        "run",
        "mcp-baostock-server"
      ]
    }
  }
}

工具

未检测到工具

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

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.

评论

其他 分类下的更多 MCP 服务器