- MCP BaoStock Server
MCP BaoStock Server
Content
MCP BaoStock Server
一个基于BaoStock的股票数据服务器,提供了多个接口用于获取股票市场数据。
功能特点
- 提供股票基本信息查询
- 支持K线历史数据获取
- 行业分类数据查询
- 分红派息数据查询
- 季度财务指标数据(盈利能力、营运能力、成长能力)
- 指数数据查询
- 估值指标数据查询
安装与使用
依赖要求
- Python 3.10+
- baostock
- pandas
使用说明
安装使用
uv run mcp-baostock-server

接口测试用例
以下是各个接口的测试用例示例:
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
Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
Serper MCP ServerA Serper MCP Server
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
ChatWiseThe second fastest AI chatbot™
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
CursorThe AI Code Editor
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题;
Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
Tavily Mcp
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Amap Maps高德地图官方 MCP Server
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
Playwright McpPlaywright MCP server
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
DeepChatYour AI Partner on Desktop
WindsurfThe new purpose-built IDE to harness magic
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.