Processes stock market data into pandas dataframes, providing structured financial data for analysis including K-line history, financial indicators, and stock information.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-baostock-serverget Apple's stock price history for the last month"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP BaoStock Server
一个基于BaoStock的股票数据服务器,提供了多个接口用于获取股票市场数据。
功能特点
提供股票基本信息查询
支持K线历史数据获取
行业分类数据查询
分红派息数据查询
季度财务指标数据(盈利能力、营运能力、成长能力)
指数数据查询
估值指标数据查询
Related MCP server: Financial Datasets MCP Server
安装与使用
依赖要求
Python 3.10+
baostock
pandas
使用说明
安装使用

接口测试用例
以下是各个接口的测试用例示例:
1. 获取股票基本信息
2. 获取K线历史数据
3. 获取行业分类数据
4. 获取分红派息数据
5. 获取季度盈利能力数据
6. 获取季度营运能力数据
7. 获取季度成长能力数据
8. 获取指数数据
9. 获取估值指标数据
技术交流
微信: iamxxn886