Skip to main content
Glama
liqiongyu

Xueqiu MCP

by liqiongyu

Xueqiu MCP

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

项目简介

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

Related MCP server: AI-Kline MCP Server

安装方法

本项目使用uv进行依赖管理。请按照以下步骤进行安装:

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

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

配置

配置雪球Token

  1. 在项目根目录创建.env文件

  2. 添加以下内容:

XUEQIU_TOKEN=您的雪球token
  • 快捷方式:

echo 'XUEQIU_TOKEN="xq_a_token=xxxxx;u=xxxx"' > .env

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

运行服务

使用以下命令启动MCP服务:

uv --directory /path/to/xueqiu_mcp run main.py

或者,如果您已经配置了Claude Desktop:

"xueqiu-mcp": {
  "args": [
    "--directory",
    "/path/to/xueqiu_mcp",
    "run",
    "main.py"
  ],
  "command": "uv"
}

功能特性

  • 获取股票实时行情

  • 查询指数收益

  • 获取深港通/沪港通北向数据

  • 基金相关数据查询

  • 关键词搜索股票代码

展示图

image

image

致谢

许可证

MIT License

Install Server
A
license - permissive license
C
quality
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    C
    quality
    D
    maintenance
    The MCP provides comprehensive financial data and analytical tool support for AI large language models, specifically including the following five core data capabilities: Stock Analysis/ETF Analysis/Public Funds/News & Information/General Tools More Info: https://github.com/shenqingtech/deepq-finan
    44
    40
    7
    ISC
  • A
    license
    -
    quality
    A
    maintenance
    Provides real-time stock market data for Claude Desktop and MCP-compatible clients, enabling natural language queries for quotes, historical prices, company profiles, financial statements, analyst ratings, comparisons, news, options, holdings, dividends, estimates, symbol search, and market status.
    600
    16
    MIT
  • F
    license
    -
    quality
    C
    maintenance
    MCP server adapter that exposes A-share stock data tools, prompts, and resources via FastMCP, enabling querying of stocks, K-lines, financials, sectors, and market hot spots through natural language.

View all related MCP servers

Related MCP Connectors

View all MCP Connectors

Appeared in Searches

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/liqiongyu/xueqiu_mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server