Free market feeds go down individually and quietly; the automatic fallback is what keeps a quote coming back, and the inspection call is what lets you find out why a number looks odd instead of guessing at it.
A stock quote tool in TypeScript with a zero-dependency runtime, usable from Node, a browser, the command line or as an MCP server. It reads public market feeds from Tencent, Sina and East Money, and by default falls back between them automatically rather than failing when one is down.
- One normalised quote by code, and a batch of them in a single call
- K-line rows ready for charting, with the period, the count and the price adjustment set on the call
- Symbol search by keyword, for when you have the company name rather than the code
- An inspection call that reports which providers answered and how the fallback resolved — the diagnostic for when a quote looks wrong
- A specific source forced per call when you want Tencent, Sina or East Money rather than whichever answers first
- A-share, Hong Kong and US codes handled through the same SH, SZ, HK and US prefixes
Node.js 18 or newer and network access to the upstream feeds. Run over stdio from npm as stock-api with the mcp subcommand; no key and no account, because the sources are public endpoints. That is also the limit worth knowing: the project states plainly that it does not guarantee the accuracy, completeness, timeliness or continued availability of third-party data, gives no investment advice, and asks you to check each source's own terms before commercial, high-frequency or production use.
One command — npx -y stock-api mcp
