MCP Stock Analyst

Stock market data for A-shares, Hong Kong, US & Taiwan — over MCP

A股 / 港股 / 美股 / 台股行情数据 —— 通过 MCP 协议提供

A Model Context Protocol server delivering real-time quotes, smart symbol search and historical K-lines. Zero-cost data sources, pay-per-call, no subscription.

Live on Apify Store MIT v0.2.0 4 markets $0 data cost

Four markets, one server

All three tools work across every market — no separate tool per exchange.

China A-shares

Shanghai & Shenzhen, e.g. 600519

Hong Kong

HKEX listings, e.g. 00700

United States

NYSE / NASDAQ, e.g. AAPL

Taiwan

TWSE / TPEx, e.g. 2330.TW

Three practical tools

Expose market data directly to any MCP client (Claude, Cursor, custom agents).

get_quote

Real-time quote for one or many symbols (up to 10 per call). Batch A-share / HK / US / Taiwan in one request.

search_stock

Fuzzy lookup by Chinese name, pinyin initials, partial code or English name. e.g. 茅台 / TSMC.

get_kline

Historical candlesticks (day / week / month, 20–640 bars). e.g. 600519 or 2330.TW.

Pricing — pay per event

No subscription, no monthly fee. You pay only when data is returned.

Event Charged when Price
tool-call primary each get_quote / get_kline call $0.02
search-call each search_stock call $0.005
free MCP handshake (initialize) & tools/list $0.00
Free tier: every Apify account includes $5 of free platform credit monthly (~250 quote calls), so light users effectively pay nothing.

Connect

Use the hosted endpoint (recommended) or run it locally.

Hosted endpoint
Local (stdio)
{
  "mcpServers": {
    "stock-analyst": {
      "command": "npx",
      "args": [
        "-y", "mcp-remote",
        "https://neeenja--mcp-stock-analyst.apify.actor/mcp",
        "--header", "Authorization: Bearer ${APIFY_TOKEN}"
      ],
      "env": { "APIFY_TOKEN": "" }
    }
  }
}

Get your token from Apify Console → Settings → API & Integrations.

git clone https://github.com/PanStories/mcp-stock-analyst
cd mcp-stock-analyst
npm install && npm run build

# then in your MCP client config:
{
  "mcpServers": {
    "stock-analyst": {
      "command": "node",
      "args": ["/path/to/mcp-stock-analyst/build/index.js"]
    }
  }
}