1. Conduid
  2. Finance
  3. Stock SDK
MCP server · Finance

Stock SDK

为前端设计的无需 Python、无需后端服务、零依赖的获取股票数据 JavaScript SDK。

67Good

Scored 8 hours ago · breakdown

About Stock SDK

Stock SDK is an MCP server published by chengzuopeng in the Finance category: 为前端设计的无需 Python、无需后端服务、零依赖的获取股票数据 JavaScript SDK。. It is published to npm as stock-sdk and starts with npx.

The repository has 2.0K stars and 203 forks, is licensed ISC, and its last commit was on 26 Nov 2026. The latest release is v2.4.7 (21 Nov 2026): Stock SDK 2.4.7 改进了 MCP 结果、Skills 编排和 CLI 参数校验。依赖 MCP 截断结果或 CLI 退出码的脚本请留意下列行为变化。 新增 MCP 基金净值和同类排名支持日期筛选,并报告实际覆盖区间。 修复 MCP 超限时保留最新 K 线和信号及榜首数据,并校验消息和嵌套参数。 Skills 按工具依赖展示,… It follows v2.4.6 (3 Oct 2026), and the 5 most recent releases go back to v2.4.3 (9 Sep 2026). It passes all 5 static checks Conduid ran on the repository. Its topics include sdk-js, sharesdk and stock-market.

Install

Claude Code
claude mcp add stock-sdk -- npx -y stock-sdk
npx
npx -y stock-sdk
From source
git clone https://github.com/chengzuopeng/stock-sdk

Security checks

Static checks derived from the repository 5 days ago. Heuristics on the source, not an audit.

  • ✓README presentThe repository's README runs to about 1.6K words.
  • ✓License declaredThe repository declares the ISC license.
  • ✓Tests presentA test suite exists in the repository.
  • ✓Dependencies pinnedDependency versions are pinned by pnpm-lock.yaml.
  • ✓No dynamic code executionScanned 159 source files and found no eval, dynamic Function or shell execution.

1 check has not been run yet.

What the source scan found

Transport
None found in the source
Starts other programs
No calls that start other programs
Outbound network calls
8 callssrc/core/jsVars.ts:243, src/core/jsonp.ts:174, src/providers/tencent/hkQuote.ts:47
Writes or deletes files
No file writes or deletes
Lockfile
pnpm-lock.yaml

Pattern matches on the source text of 159 files: places to read, not proof of what the code does at run time.

Releases

v2.4.7v2.4.7 MCP, Skills & CLI · 21 Nov 2026Stock SDK 2.4.7 改进了 MCP 结果、Skills 编排和 CLI 参数校验。依赖 MCP 截断结果或 CLI 退出码的脚本请留意下列行为变化。 新增 MCP 基金净值和同类排名支持日期筛选,并报告实际覆盖区间。 修复 MCP 超限时保留最新 K 线和信号及榜首数据,并校验消息和嵌套参数。 Skills 按工具依赖展示,更新取数范围和安装示例。 CLI 对无效参数返回退出码 `2`,补齐分页和 MCP 启动帮助。 升级 npm install…
v2.4.6v2.4.6 K-line Fallback Switch · 3 Oct 2026v2.4.6 是一次 请求可控 + 数据正确性 版本:A 股 K 线的备用源切换可以关闭了,批量拉取时不必再连带触发备用源的频控;同时修掉 `chips.cn` 在备用源下静默返回空统计的问题。无破坏性变更,升级无需改代码。 新增 A 股 K 线备用源开关 `klineFallback`(#80,感谢 @zhrenyue 提出需求):2.4.4 起,A 股 K…
v2.4.5v2.4.5 Pagination & HK Real-time Quote Keys · 29 Sep 2026v2.4.5 是一次 取数效率 + 行情时效 版本:资金流排名与盘口异动支持分页,只看榜单前段不必再拉全量;港股个股行情改用腾讯实时行情键。无破坏性变更,升级无需改代码。 新增 资金流排名与盘口异动支持分页(#65,感谢 @iarjian 提出需求):此前这三个方法只能拉全量。个股资金流排名每次调用都要按每页 100 条翻完全市场约 5600 条,约 57 次请求,只想看前 20 也得全拉,放大了被东财限流的风险。 | 方法 | 新增参数 | 每页条数 |…
v2.4.4v2.4.4 K-line Fallback Fixes & Regulatory Alerts · 12 Sep 2026v2.4.4 是一次 上游容灾 + 数据正确性 版本:A 股 K 线在东财受限时可切换备用源,同时修掉备用源带来的前复权负价问题,并新增交易所监管异动预警接口。无破坏性变更,升级无需改代码。 新增 监管异动 `marketEvent.unusualFluctuation`(#76,感谢 @WJMA-GIT 提出需求并提供线索):交易所「股票交易异常波动」预警,能看到哪些个股已触发、哪些正在逼近阈值。 | 字段 | 说明 | |---|---| | `rule` |…
v2.4.3v2.4.3 Fund Flow & Board Changes Fixes · 9 Sep 2026v2.4.3 是一次 上游失效修复 版本:两个接口因上游变更在线上完全失效——实时资金流的腾讯数据源已下线,板块异动的东财字段已改名。本版分别切换数据源、适配新字段。无破坏性变更,升级无需改代码。 修复 实时资金流 `quotes.fundFlow` / `get_fund_flow` 返回空数组(#74,感谢 @run-bigpig 提交):腾讯 `ff_` 行情键已停止服务,上游对任何代码直接返回 `v_pv_none_match="1"`,2.4.2 及之前对所有有效…

README

The repository's README runs to about 1.6K words, fetched 5 days ago. The original in the repository is authoritative.

Read full README
Questions

About Stock SDK

How do I install Stock SDK?

In Claude Code, run claude mcp add stock-sdk -- npx -y stock-sdk. Other MCP clients take the command after "--" in their server configuration.

Is Stock SDK safe to use with an AI agent?

Its trust score is 67 out of 100 (good). It passes all 5 static checks Conduid ran on the repository. Conduid's scan of 159 source files found that it makes outbound network calls (8 calls). Its dependencies are pinned by pnpm-lock.yaml. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Stock SDK still maintained?

Yes — the latest release is v2.4.7 (21 Nov 2026), and the last commit was 6 days ago. The repository has 2.0K stars.

What license is Stock SDK released under?

The repository declares the ISC license. That applies to the latest release, v2.4.7, as well.