# HuggingAGI/mcp-baostock-server [Health: Active]

**Category:** 💰 Finance & Fintech  
**Repository:** https://github.com/HuggingAGI/mcp-baostock-server  
**GitHub Stars:** 118  
**Views:** 2  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/huggingagi-mcp-baostock-server

## Description
MCP server based on baostock, providing access and analysis capabilities for Chinese stock market data.

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/HuggingAGI/mcp-baostock-server), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Start the server:

```sh
uv run mcp-baostock-server
```

## Documentation

## What HuggingAGI/mcp-baostock-server does

HuggingAGI/mcp-baostock-server connects MCP clients with BaoStock data for the Chinese stock market. Its interfaces cover several common research tasks: retrieving a company’s basic information, requesting historical K-line records, checking industry classifications, reviewing dividend and distribution records, and examining financial or valuation indicators.

The available financial indicators include quarterly profitability, operating-capacity, and growth measures. The server also supports historical index market data, including examples based on the CSI 300.

This places the project in the 💰 Finance & Fintech category. It is suited to data lookup and analysis workflows that need BaoStock’s Chinese equity and index datasets through an agent-facing interface.

## How it works

An MCP-compatible client starts the server and sends requests for the supported BaoStock data categories. Queries can identify securities with exchange-qualified codes such as `sh.600519` or `sz.000001`, and historical requests can specify a date range. The examples also show daily K-line retrieval with a forward-adjustment option.

Requests can target a particular reporting period, such as a quarter or calendar year. For example, an agent can ask for a company’s second-quarter operating indicators, a year’s dividend details, or index daily prices across a selected period. The returned data can then support comparisons or further analysis in the client.

## Setup and configuration

HuggingAGI/mcp-baostock-server requires Python 3.10 or newer, the `baostock` package, and `pandas`. The README provides this launch command:

```bash
uv run mcp-baostock-server
```

The repository includes a demonstration image and Python-based interface examples, but does not provide client-specific setup instructions.

## Tools and capabilities

The documented capability areas are:

- Query stock basic information, including listing dates and industry details.
- Retrieve historical K-line data for a selected security, date range, frequency, and adjustment approach.
- Look up industry classification information.
- Retrieve dividend and distribution records for a specified year.
- Query quarterly profitability indicators.
- Query quarterly operating-capacity indicators.
- Query quarterly growth indicators.
- Retrieve historical index market data.
- Examine valuation indicators such as price-to-earnings and price-to-book ratios.

## Limitations and notes

HuggingAGI/mcp-baostock-server is documented around BaoStock and Chinese stock-market datasets. It also does not state update frequency, historical coverage limits, rate limits, or error-handling behavior.

Results should be interpreted according to the requested security code, period, frequency, and adjustment settings. The examples use Chinese-language prompts and exchange-prefixed symbols, so callers should provide identifiers in the format expected by BaoStock.

_Full upstream README: https://allmcps.com/mcp/huggingagi-mcp-baostock-server/readme_

