mcp-baostock-server logo

mcp-baostock-servermcp-baostock-server 股票数据服务器

(0)
Daniel Nikulshyn审阅者 Daniel Nikulshyn·更新 2026年7月

概览

MCP BaoStock Server 是一个基于 BaoStock 的股票数据服务器,提供多个接口来获取股票市场数据。它允许用户查询基本股票信息、获取历史 K 线数据、访问行业分类数据、分红分配数据和季度财务指标数据。服务器还支持查询指数数据和估值指标数据。该工具旨在为需要通过程序获取股票市场数据的用户而设计,它特别适用于中国市场。该工具使用 Python 构建,依赖库如 pandas。该功能通过 API 接口可得到访问,这些接口可以通过提供的例子进行测试。 MCP BaoStock Server 作为连接 BaoStock 数据和需要结构化访问股票市场信息的应用的桥梁

主要功能

  • 基本股票信息查询
  • K 线历史数据检索
  • 行业分类数据查询
  • 分红分配数据查询
  • 季度财务指标数据
  • 指数数据查询

价格

模型
Free
评分
暂无评价

使用场景

股票市场分析

使用 MCP BaoStock Server 还原历史股票数据,从而对历史数据进行技术分析,如计算移动平均值或识别趋势。

投资组合管理

将 MCP BaoStock Server 与投资组合管理系统集成,从而自动获取股票数据并更新投资组合估值。

金融研究

利用 MCP BaoStock Server 来获取和分析财务数据,例如研究不同财务指标与股票表现之间的关系。

优点 & 缺点

优点

  • 提供多个接口进行股票数据检索
  • 支持查询各种类型的股票数据
  • 使用 Python 构建,易于集成
  • 依赖已建立的库如 pandas
  • 提供详细的财务指标数据

缺点

  • 需要 Python 3.10 或更高版本
  • 仅限于 BaoStock 提供的数据
  • 不存在明确的文档,除了 README 和接口例子
  • 没有关于数据更新频率或实时能力的信息

评测

登录以留下评测。

暂无评测。来当第一个吧!

问答

Is there any built‑in documentation besides the README and example calls?

No additional documentation is provided; the only guidance comes from the README file and the sample interface test cases bundled in the source repository.

Asked by Abebe Girma · Apr 22, 2026

How do I test the API endpoints for retrieving data like basic stock info or K‑line history?

The repository includes example test cases in the README that demonstrate calls such as fetching basic info for sh.600519 or daily K‑line data for sz.000001 between specific dates; you can run them after installing the package with uv run mcp baostock server.

Asked by Xiomara Delgado · Mar 17, 2026

Can the server provide real‑time stock quotes or is it limited to historical data?

The documentation only mentions access to historical K‑line data, industry classifications, dividends, quarterly financial indicators, index data, and valuation metrics; it does not specify real‑time quote capabilities.

Asked by Hannah Goldberg · Feb 27, 2026

What Python version and dependencies are required to run mcp-baostock-server?

The server requires Python 3.10 or higher and depends on the baostock and pandas libraries, which are listed in its pyproject.toml.

Asked by Ethan Brooks · Jan 15, 2026

提问

服务配缩器 的替代品