Skip to content
Back to search

mcp-baostock-server

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

Safety scan

A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.

Checked today
Badge for your README
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/huggingagi--mcp-baostock-server/badge.svg)](/listings/huggingagi--mcp-baostock-server)

HTML

<a href="/listings/huggingagi--mcp-baostock-server"><img src="/api/listings/huggingagi--mcp-baostock-server/badge.svg" alt="findsafeskills safety rating" /></a>

Install

i

What was scanned

The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.

README.md · README · 86 lines

View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)

  1. [![MseeP.ai Security Assessment Badge](https://mseep.net/pr/huggingagi-mcp-baostock-server-badge.png)](https://mseep.ai/app/huggingagi-mcp-baostock-server)
  2. # MCP BaoStock Server
  3. [![Trust Score](https://archestra.ai/mcp-catalog/api/badge/quality/HuggingAGI/mcp-baostock-server)](https://archestra.ai/mcp-catalog/huggingagi__mcp-baostock-server)
  4. 一个基于BaoStock的股票数据服务器,提供了多个接口用于获取股票市场数据。
  5. ## 功能特点
  6. - 提供股票基本信息查询
  7. - 支持K线历史数据获取
  8. - 行业分类数据查询
  9. - 分红派息数据查询
  10. - 季度财务指标数据(盈利能力、营运能力、成长能力)
  11. - 指数数据查询
  12. - 估值指标数据查询
  13. ## 安装与使用
  14. ### 依赖要求
  15. - Python 3.10+
  16. - baostock
  17. - pandas
  18. ### 使用说明
  19. 安装使用
  20. ```bash
  21. uv run mcp-baostock-server
  22. ```
  23. ![](./assets/demo.png)
  24. ## 接口测试用例
  25. 以下是各个接口的测试用例示例:
  26. ### 1. 获取股票基本信息
  27. ```python
  28. # 获取贵州茅台(sh.600519)的基本信息,包括上市日期、行业分类等基础数据
  29. ```
  30. ### 2. 获取K线历史数据
  31. ```python
  32. 获取平安银行(sz.000001)从2023年1月1日到2023年1月31日的日K线数据,使用前复权方式
  33. ```
  34. ### 3. 获取行业分类数据
  35. ```python
  36. 查询中国平安(sh.601318)所属的行业分类信息
  37. ```
  38. ### 4. 获取分红派息数据
  39. ```python
  40. 查看工商银行(sh.601398)在2022年的分红派息详细信息
  41. ```
  42. ### 5. 获取季度盈利能力数据
  43. ```python
  44. 获取贵州茅台2023年第一季度的盈利能力数据,包括净利润、毛利率等指标
  45. ```
  46. ### 6. 获取季度营运能力数据
  47. ```python
  48. 分析招商银行(sh.600036)2023年第二季度的营运能力指标,包括应收账款周转率和存货周转率
  49. ```
  50. ### 7. 获取季度成长能力数据
  51. ```python
  52. 评估比亚迪(sz.002594)2023年第三季度的成长能力,包括营收增长率和净利润增长率
  53. ```
  54. ### 8. 获取指数数据
  55. ```python
  56. 获取沪深300指数(sh.000300)从2023年1月1日到2023年12月31日的日线行情数据
  57. ```
  58. ### 9. 获取估值指标数据
  59. ```python
  60. 分析阿里巴巴(sh.688699)从2023年初至今的估值指标变化,包括市盈率、市净率等数据
  61. ```
  62. ## 技术交流
  63. - 微信: iamxxn886

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If it’s helped, pass it on.