Skip to main content
Glama
Asia Market Data

Asia Market Data

Asia Market Data MCP Server

Real-time financial market data for A-share (China), Hong Kong, and US markets via the Model Context Protocol.

Works out of the box with free, key-less data sources — no accounts, no API keys. Install, connect your MCP client, and query.

Features

  • Real-time stock quotes — A-share, HK, and US markets

  • K-line / candlestick data — historical OHLCV with multiple periods

  • Market status — live trading session status for US, HK, and CN

  • 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: Stock Data MCP Server

Quick Start

Run with uvx (no clone needed)

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

Run from a clone

git clone https://github.com/timoranjes/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:

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

Data Sources & Fallbacks

The server picks the best available source per market and falls back automatically:

Market

Primary

Fallback

A-share (SH/SZ)

Tencent Finance API (free, real-time)

yfinance

Hong Kong

Tencent Finance API (free, real-time)

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.

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

Real-time quote for a single stock

stock_quote_batch

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

kline

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

market_status

Global market open/close status

market_summary

Major global indices summary

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/timoranjes/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.

License

MIT — fork it, extend it, ship it.

Available Tools

5 tools
klineB

Get K-line (candlestick/OHLCV) data for a stock.

Inputs: symbol (required), period. Returns: result

market_statusA

Get global market open/close status for US, HK, and CN markets.

Returns current trading session status (open/pre_market/after_hours/closed) for each major market based on UTC time.

Inputs: no named parameters. Returns: result

market_summaryA

Get summary of major global indices (S&P 500, NASDAQ, Dow Jones, Hang Seng, SSE, CSI 300).

Returns current price and daily change percentage for each index.

Inputs: no named parameters. Returns: result

stock_quoteC

Get real-time stock quote for A-share, HK, or US stocks.

Inputs: symbol (required). Returns: result

stock_quote_batchA

Get real-time quotes for multiple stocks. Symbols separated by commas.

Inputs: symbols (required). Returns: result

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.8/5.0

    Scored across 5 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose: single quote, batch quote, historical K-line data, market status, and market summary. The only overlap is between stock_quote and stock_quote_batch, but batch is a natural extension and clearly named.

    Naming Consistency5/5

    All tool names follow a consistent snake_case pattern with a clear verb-noun structure (e.g., stock_quote, market_status). Even 'kline' is a concise but recognizable abbreviation, and the naming is uniform throughout.

    Tool Count5/5

    Five tools is well-scoped for a market data server, covering real-time quotes, historical data, and market-level information without redundancy or unnecessary bloat.

    Completeness4/5

    The surface covers the core needs for market data: quotes, historical candles, market status, and index summaries. Minor gaps like search/fundamentals exist but are not essential for the primary use case.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      Provides real-time stock information for Chinese A-shares and US stocks using the Xueqiu API. Enables users to fetch comprehensive market data including current price, percentage changes, volume, and other key metrics by stock code.
      3
      3
      ISC
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables querying financial data including stocks, indices, funds, and futures from Chinese, Hong Kong, and US markets. Provides real-time market information, financial indicators, news, and trading suggestions through Eastmoney and Sina data sources.
      3
      ISC
    • F
      license
      Not graded
      quality
      D
      maintenance
      Provides real-time quotes, fund flows, and corporate announcements for Chinese A-share stocks. It enables users to search for stocks, analyze financial indicators, and summarize quarterly reports through natural language.
      -
    • A
      license
      A
      quality
      C
      maintenance
      Real-time A-share stock data for AI assistants. Provides real-time stock prices, K-line data, financial indicators, and sector fund flow analysis for Chinese A-share market. Multi-source data validation ensures accuracy.
      7
      4
      MIT