npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

xueqiu-mcp

v1.1.1

Published

雪球股票数据 MCP Server

Readme

xueqiu-mcp

npm version npm downloads CI License: MIT

雪球股票数据 MCP Server,提供 A股、港股、美股的实时行情查询。

功能

| 工具 | 说明 | | --- | --- | | search_stock | 搜索股票,返回匹配的股票列表(代码、名称、市场类型) | | get_stock | 查询单只股票详细数据(价格、涨跌幅、盘前盘后、成交量/额、量比、市值、市盈率、市净率、市销率、股息率、交易状态等) | | get_stocks | 批量查询多只股票的实时价格、涨跌额、涨跌幅和成交额 | | get_market_index | 查询大盘指数行情(价格、涨跌额、涨跌幅),支持 A股(cn)、美股(us)、港股(hk) |

安装

bunx(推荐)

无需安装,直接在 MCP 客户端配置中使用:

{
  "mcpServers": {
    "xueqiu-mcp": {
      "command": "bunx",
      "args": ["-y", "xueqiu-mcp@latest"]
    }
  }
}

全局安装

npm install -g xueqiu-mcp

配置

Claude Code

claude mcp add xueqiu-mcp -- bunx -y xueqiu-mcp@latest

HTTP 模式

如果需要通过 HTTP 方式接入:

MCP_TRANSPORT_TYPE=http MCP_HTTP_PORT=3000 bunx xueqiu-mcp@latest

服务启动后,MCP 端点为 http://localhost:3000/mcp

使用示例

配置完成后,在 AI 对话中直接提问即可:

  • "搜索腾讯相关的股票"
  • "查一下茅台的股价"
  • "帮我看看 AAPL 和 TSLA 的行情"
  • "今天 A股大盘怎么样"

开发

# 安装依赖
bun install

# 启动(stdio 模式)
bun run start

# 启动(HTTP 模式)
bun run start:http

# 使用 MCP Inspector 调试
bun run inspector

# 代码检查
bun run check

# 构建
bun run build

许可证

MIT