About Stock API
Stock API is an MCP server published by zhangxiangliang in the Browser category: 查询 A 股、美股、港股与场内基金行情,并通过 Node.js、浏览器、CLI 或 MCP 快速接入。. Conduid read 5 tools from its source: get_klines, get_stock, get_stocks, inspect_stock and search_stocks. It is published to npm as stock-api and starts with npx.
The repository has 2.0K stars and 227 forks, is licensed MIT, and its last commit was on 1 Dec 2026. The latest release is v2.7.5 (21 Sep 2026): Bug Fixes split quote/search status and detect eastmoney JSONP responses (8f561df). It follows v2.7.4 (6 Sep 2026), and the 5 most recent releases go back to v2.7.1 (26 May 2026). It passes all 5 static checks Conduid ran on the repository. Its topics include browser and stocks.
Install
claude mcp add stock-api -- npx -y stock-apinpx -y stock-apigit clone https://github.com/zhangxiangliang/stock-apiTools (5)
get_klinesGet normalized K-line rows for charting.| Parameter | Type | Description |
|---|---|---|
| adjust | string | Price adjustment mode. Defaults to none. |
| code * | any | |
| count | number | Number of rows to return. Defaults to the provider default. |
| period | string | K-line period. Defaults to day. |
| source | any |
get_stockGet one normalized stock quote by code.| Parameter | Type | Description |
|---|---|---|
| code * | any | |
| source | any |
get_stocksGet normalized stock quotes for multiple codes.| Parameter | Type | Description |
|---|---|---|
| codes * | array | Stock codes, such as SH510500 or SZ000651. |
| source | any |
inspect_stockInspect quote availability and provider fallback details.| Parameter | Type | Description |
|---|---|---|
| code * | any | |
| source | any |
search_stocksSearch stock symbols by keyword.| Parameter | Type | Description |
|---|---|---|
| query * | string | Search keyword, such as 格力电器. |
| source | any |
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 396 words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by package-lock.json.
- ✓No dynamic code executionScanned 43 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
- No outbound network calls
- Writes or deletes files
- No file writes or deletes
- Lockfile
- package-lock.json
Pattern matches on the source text of 43 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 396 words, fetched 5 days ago. The original in the repository is authoritative.
Read full README