Featured

Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free
Your own AI agent, running 24/7 with QwikClaw logoYour own AI agent, running 24/7 with QwikClaw

QwikClaw sets up and runs an always-on OpenClaw agent for you. One click, no config files, no server setup.

Deploy now
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it — secured from day one.

Get it set up for you
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free
Reach 47,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here

Works with

Claude CodeClaude DesktopCursorVS CodeClineCodex CLIOpenClaw+ any MCP client

Install to Claude Code

This server doesn't publish a one-line install command. Follow the setup in the source repository.

Summary

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

README.md

![MseeP.ai Security Assessment Badge](https://mseep.ai/app/huggingagi-mcp-baostock-server)

MCP BaoStock Server

![Trust Score](https://archestra.ai/mcp-catalog/huggingagi__mcp-baostock-server)

一个基于BaoStock的股票数据服务器,提供了多个接口用于获取股票市场数据。

功能特点

  • 提供股票基本信息查询
  • 支持K线历史数据获取
  • 行业分类数据查询
  • 分红派息数据查询
  • 季度财务指标数据(盈利能力、营运能力、成长能力)
  • 指数数据查询
  • 估值指标数据查询

安装与使用

依赖要求

  • Python 3.10+
  • baostock
  • pandas

使用说明

安装使用 ``bash uv run mcp-baostock-server ``

![](./assets/demo.png)

接口测试用例

以下是各个接口的测试用例示例:

1. 获取股票基本信息

# 获取贵州茅台(sh.600519)的基本信息,包括上市日期、行业分类等基础数据

2. 获取K线历史数据

获取平安银行(sz.000001)从2023年1月1日到2023年1月31日的日K线数据,使用前复权方式

3. 获取行业分类数据

查询中国平安(sh.601318)所属的行业分类信息

4. 获取分红派息数据

查看工商银行(sh.601398)在2022年的分红派息详细信息

5. 获取季度盈利能力数据

获取贵州茅台2023年第一季度的盈利能力数据,包括净利润、毛利率等指标

6. 获取季度营运能力数据

分析招商银行(sh.600036)2023年第二季度的营运能力指标,包括应收账款周转率和存货周转率

7. 获取季度成长能力数据

评估比亚迪(sz.002594)2023年第三季度的成长能力,包括营收增长率和净利润增长率

8. 获取指数数据

获取沪深300指数(sh.000300)从2023年1月1日到2023年12月31日的日线行情数据

9. 获取估值指标数据

分析阿里巴巴(sh.688699)从2023年初至今的估值指标变化,包括市盈率、市净率等数据

技术交流

  • 微信: iamxxn886

See related servers & alternatives →

Related MCP servers

Browse all →

Related guides

Hand-picked reading to help you choose and use Finance & Investing servers.