Asia Market Data
This server provides real-time financial market data for A-share, Hong Kong, and US stocks via MCP tools.
Stock quotes: Get real-time price and quote details for a single stock (e.g.,
600519.SH,0700.HK,NVDA.US).Batch quotes: Fetch quotes for up to 20 stocks in one call (comma-separated symbols; extra symbols are reported).
K-line/candlestick data: Retrieve historical OHLCV data for a stock over periods of 1, 3, or 6 months, or 1 year.
Market status: Check whether US, HK, and CN markets are currently open, pre-market, after-hours, or closed.
Market summary: View current prices and daily change percentages for major global indices (S&P 500, NASDAQ, Dow, Hang Seng, SSE, CSI 300).
Free & key-less: Works without API keys or accounts, with automatic fallback data sources (Tencent Finance, yfinance, optional Longbridge).
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-mcpRun 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 transportConnect 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 |
| Real-time quote for a single stock |
| Batch quotes (up to 20 symbols; extra symbols are reported, not silently dropped) |
| Historical OHLCV candlestick data ( |
| Global market open/close status |
| 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 toolsklineB
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
Scored across 5 tools
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.
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.
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.
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
A-share/ETF/index/futures daily & minute bars, 15 APIs, pay-per-call. 中国A股行情数据 API。
Provide access to Chinese stock market data including historical prices, real-time data, news, and…
Access real-time and historical market data for China A-shares and Hong Kong stocks, along with ne…
China A-share data for AI agents: 57 read-only tools plus 6 tools for your own watchlist.
Related MCP Servers
- AlicenseBqualityDmaintenanceProvides 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.33ISC
- AlicenseNot gradedqualityDmaintenanceEnables 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.3ISC
- FlicenseNot gradedqualityDmaintenanceProvides 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.-
- AlicenseAqualityCmaintenanceReal-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.74MIT