mcpField
S
stock-sdk-mcp

stock-sdk-mcp

github.com/tiancheng91Other2106 installsUpdated 6w ago
Repository

About stock-sdk-mcp

A skill describing a stock-market data service for A-shares, Hong Kong and US stocks, and funds. It covers quote, candlestick, indicator, and sector tools, with usage guidance for querying them.

Key features

  1. 01Real-time quotes across listed markets and funds
  2. 02Historical and intraday candlestick data
  3. 03Technical indicator calculations
  4. 04Industry and concept sector queries
  5. 05Fund flows and market details

Use cases

  1. 01Checking quotes for selected securities
  2. 02Reviewing K-lines with technical indicators
  3. 03Exploring industry or concept sectors
  4. 04Tracking fund flows and trading dates

MCP support

Describes stock-data tools exposed through the stock-sdk-mcp MCP server, including quote, K-line, indicator, sector, and related queries. Examples show invoking the server through mcp2cli.

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/tiancheng91/skills --skill stock-sdk-mcp

After installing, type/stock-sdk-mcpin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

market-overview.md
realtime-monitor.md
stock-analyst.md
stock-screener.md
tools-reference.md

Details

From the project README

Stock SDK MCP

股票行情数据服务,基于 stock-sdk-mcp 构建。支持 A股/港股/美股/基金的实时行情、K线数据、技术指标计算、板块数据查询。

支持的市场

市场说明
A股沪深北交易所、科创板、创业板
港股香港交易所
美股纳斯达克、纽交所
基金公募基金

命令格式

所有工具通过 mcp2cli 调用:

# 列出所有工具
uvx mcp2cli --mcp-stdio "npx -y stock-sdk-mcp" --list

# 查看工具帮助
uvx mcp2cli --mcp-stdio "npx -y stock-sdk-mcp" <tool-name> --help

核心工具速查

最常用工具
工具用途示例
get-quotes-by-query按名称/代码/拼音查询行情(推荐)--queries '["茅台", "腾讯"]'
get-kline-with-indicators获取K线+技术指标--symbol "600519" --indicators '{"macd":true}'
get-concept-list概念板块列表无参数
get-industry-list行业板块列表无参数
代码格式
市场格式示例
A股sh600519 或 600519茅台
港股00700腾讯
美股AAPL苹果

高级技能(按需加载)

根据用户场景,参考以下技能文档:

场景技能文档说明
技术分析stock-analyst.mdK线形态、MACD/RSI/KDJ分析
股票筛选stock-screener.md按条件筛选全市场股票
市场概览market-overview.md大盘走势、热点板块
持仓监控realtime-monitor.md自选股跟踪、盈亏计算

工具分类索引

一、实时行情
  • get-quotes-by-query - 通用查询(最推荐)
  • get-a-share-quotes - A股行情
  • get-hk-quotes - 港股行情
  • get-us-quotes - 美股行情
  • get-fund-quotes - 基金净值
二、批量行情(数据量大,谨慎使用)
  • get-all-a-share-quotes - 全A股(5000+只)
  • get-all-hk-quotes - 全港股(2000+只)
  • get-all-us-quotes - 全美股(8000+只)
三、K线数据
  • get-kline-with-indicators - 带技术指标的K线(核心)
  • get-history-kline - A股历史K线
  • get-hk-history-kline - 港股历史K线
  • get-us-history-kline - 美股历史K线
  • get-minute-kline - 分钟K线
  • get-today-timeline - 当日分时
四、板块数据
  • get-industry-list/spot/constituents/kline - 行业板块
  • get-concept-list/spot/constituents/kline - 概念板块
五、扩展功能
  • get-fund-flow - 资金流向
  • get-panel-large-order - 盘口大单
  • get-trading-calendar - 交易日历
  • get-dividend-detail - 分红详情

注意事项

  1. 批量查询:get-all-* 系列数据量大,谨慎使用
  2. 市场识别:get-quotes-by-query 自动识别市场,最推荐
  3. 技术指标:get-kline-with-indicators 一次性获取K线和指标,效率最高

Comments

Markdown supported