Skip to main content
Glama
Asia Market Data MCP Server

Asia Market Data MCP Server

by quantkit-co

Asia Market Data MCP Server

Glama MCP server score

Market data for A-share (China), Hong Kong, and US markets via the Model Context Protocol (MCP).

Unofficial, may be delayed, for information only — not financial advice.

It uses free data sources that need no accounts or API keys. Use the hosted endpoint, or run the server yourself.

Features

  • Stock quotes — latest available for A-share, HK, and US markets; may be delayed

  • K-line / candlestick data — daily OHLCV for the last 1, 3, 6 or 12 months

  • Market status — US, HK, and CN session state from a built-in unofficial schedule, with exchange holidays

  • Market summary — major global indices (S&P 500, NASDAQ, Dow, Hang Seng, SSE, CSI 300)

  • Batch quotes — multiple stocks in a single call (up to 20)

Related MCP server: Ashare MCP Server

Quick Start

Use the hosted endpoint (nothing to install)

Add a remote MCP server with the Streamable HTTP transport:

{
  "mcpServers": {
    "asia-market-data": {
      "type": "http",
      "url": "https://mcp.quantkit.co/mcp"
    }
  }
}

Claude Code: claude mcp add --transport http asia-market-data https://mcp.quantkit.co/mcp. Menus and config keys differ between clients; check your client's documentation.

Run with uvx (no clone needed)

uvx --from git+https://github.com/quantkit-co/asia-market-mcp asia-market-mcp

Run from a clone

git clone https://github.com/quantkit-co/asia-market-mcp
cd asia-market-mcp
pip install .
asia-market-mcp                      # stdio transport (default)
asia-market-mcp --http --port 9100   # streamable-HTTP transport

Connect your MCP client

Claude Desktop / Claude Code / any stdio client:

{
  "mcpServers": {
    "asia-market-data": {
      "command": "asia-market-mcp"
    }
  }
}

HTTP client (your own local server):

{
  "mcpServers": {
    "asia-market-data": {
      "url": "http://127.0.0.1:9100/mcp",
      "transport": "streamable-http"
    }
  }
}

Data Sources & Fallbacks

The server picks an available source per market and falls back automatically. All of them are unofficial for this purpose and their data may be delayed, incomplete, or unavailable:

Market

Primary

Fallback

A-share (SH/SZ)

Tencent public quote feed

yfinance

Hong Kong

Tencent public quote feed

yfinance

US

yfinance

—

Optional enhancement: if you have the Longbridge CLI installed and configured, it is detected automatically and preferred for US quotes (secondary for HK). Everything works without it — no setup, no keys, no account.

Running a server that other people use? Set MCP_DISABLE_LONGBRIDGE=1. The server then never looks for or calls the Longbridge CLI, so your brokerage login and data entitlement are not used to answer them.

Symbol Format

CODE.MARKET — e.g. 600519.SH, 0700.HK, NVDA.US

Market

Code

Exchange

SH

Shanghai Stock Exchange

A-shares

SZ

Shenzhen Stock Exchange

A-shares

HK

Hong Kong Stock Exchange

HK stocks

US

US markets

NYSE, NASDAQ

Tools

Tool

Description

stock_quote

Latest available quote for a single stock (may be delayed)

stock_quote_batch

Batch quotes (up to 20 symbols; extra symbols are reported, not silently dropped)

kline

Historical daily OHLCV candlestick data (period: 1mo/3mo/6mo/1y, default 3mo)

market_status

US, HK and CN open/close status from an unofficial schedule

market_summary

Major global indices summary

Market status schedule

US counts as open 09:30–16:00 New York time (daylight saving included), with pre-market from 04:00 and after-hours to 20:00. HK and CN count as open from 09:30 local time (01:30 UTC) to 16:00 and 15:00. Markets show closed on the exchange holidays built into market_calendar.py (US and HK 2026–2027, CN 2026); US early closes end at 13:00 and HK half days at 12:00. For a year without a calendar the response includes a warning. Lunch breaks and unscheduled closures are not modelled. Check the exchange before relying on it.

Example Usage

> Get the current price of Tencent
→ stock_quote(symbol="0700.HK")

> Show me the last 3 months of K-line data for Moutai
→ kline(symbol="600519.SH", period="3mo")

> What markets are open right now?
→ market_status()

Development

git clone https://github.com/quantkit-co/asia-market-mcp
cd asia-market-mcp
pip install -e ".[dev]"
pytest                 # offline unit tests (no network, no Longbridge needed)
python test_matrix.py  # live checks against a running server (optional)

CI runs the offline test suite on Python 3.10 and 3.12 for every push and PR.

Disclaimer

Market data returned by this server is unofficial, may be delayed, and is for information only. Nothing here is financial advice. Check the terms of each data source before relying on or redistributing its data.

License

MIT — see LICENSE. Maintained by QuantKit. The licence covers the server code, not the market data.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables querying real-time stock data for A-shares, Hong Kong, and US markets, including search, price details, and market indices via natural language.
      115 npm
      6
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Real-time stock quotes, batch quotes, and K-line (candlestick) data for A-share (Shanghai/Shenzhen), Hong Kong, and US markets. Covers 5 tools: stock_quote, stock_quote_batch, kline, market_status, and market_summary.
      5
      MIT
    • A
      license
      Not graded
      quality
      A
      maintenance
      Enables AI assistants to access real-time quotes, K-line data, technical indicators, sector/futures/options data, and composite stock analysis across A-share, Hong Kong, US, and fund markets through MCP tools, prompts, and resources.
      140 npm
      ISC