Skip to main content

基于雪球API的MCP服务,让您通过Claude或其他AI助手轻松获取股票数据

Project description

Snowball MCP (雪球 MCP)

基于雪球API的MCP服务,让您通过Claude或其他AI助手轻松获取股票数据。

项目简介

本项目基于pysnowball封装了雪球API,并通过MCP协议提供服务,使您能够在Claude等AI助手中直接查询股票数据。

安装方法

方式一:在线安装(推荐)✨

无需克隆仓库,直接使用 uvx 运行:

# 设置环境变量
export XUEQIU_TOKEN="xq_a_token=xxxxx;u=xxxx"

# 直接运行
uvx snowball-mcp

方式二:Claude Desktop / Cursor / MCPHub 配置

在 MCP 客户端配置文件中添加:

{
  "mcpServers": {
    "snowball-mcp": {
      "command": "uvx",
      "args": ["snowball-mcp"],
      "env": {
        "XUEQIU_TOKEN": "xq_a_token=xxxxx;u=xxxx"
      }
    }
  }
}

方式三:本地开发安装

# 克隆仓库
git clone https://github.com/xunzhimeng/xueqiu_mcp.git
cd xueqiu_mcp

# 使用uv安装依赖
uv pip install -e .

# 创建 .env 文件配置 token
echo 'XUEQIU_TOKEN="xq_a_token=xxxxx;u=xxxx"' > .env

# 运行
snowball-mcp

配置雪球Token

关于如何获取雪球token,请参考pysnowball文档

功能特性

  • 获取股票实时行情
  • 获取K线数据(支持日/周/月/季/年线和分钟级数据)
  • 查询指数收益
  • 获取深港通/沪港通北向数据
  • 基金相关数据查询
  • 关键词搜索股票代码
  • 财务报表数据(利润表、资产负债表、现金流量表等)
  • 资金流向数据
  • 融资融券数据
  • 大宗交易数据
  • 机构评级和持仓数据

展示图

image

image

致谢

本项目 fork 自 liqiongyu/xueqiu_mcp,在此基础上进行了改进和优化。

许可证

MIT License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

snowball_mcp-0.2.1.tar.gz (484.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

snowball_mcp-0.2.1-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file snowball_mcp-0.2.1.tar.gz.

File metadata

  • Download URL: snowball_mcp-0.2.1.tar.gz
  • Upload date:
  • Size: 484.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for snowball_mcp-0.2.1.tar.gz
Algorithm Hash digest
SHA256 5b1812b12b8100b1b936c6c858f821c694fa7f0e60cc3b35ba6ce05e7593b6e8
MD5 92fffa712d8c802989149a0200ed49aa
BLAKE2b-256 a8206d33600b9470a94511f9f675d3b24d84e9dd8413da4447cec08cc031ed1e

See more details on using hashes here.

Provenance

The following attestation bundles were made for snowball_mcp-0.2.1.tar.gz:

Publisher: publish.yml on xunzhimeng/xueqiu_mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file snowball_mcp-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: snowball_mcp-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for snowball_mcp-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f3c657559be2846067673995d752f15b79f4a200ab31d01f21d530bbad2ddc17
MD5 d7a00e651bdf67dc88b452fe4fb883b9
BLAKE2b-256 b817c62cc7c356b621856cc2d385bdd29ba0ab9fb1b4e4fcd8a419f46db937be

See more details on using hashes here.

Provenance

The following attestation bundles were made for snowball_mcp-0.2.1-py3-none-any.whl:

Publisher: publish.yml on xunzhimeng/xueqiu_mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page