# Hk Stocks [Health: Active]

**Category:** 💰 Finance & Fintech  
**Repository:** https://github.com/pipeworx-io/mcp-hk-stocks  
**GitHub Stars:** 0  
**npm Downloads (last month):** 676  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/hk-stocks

## Description
Hong Kong equities MCP. Keyless.

## Tools
Capabilities this server exposes over MCP:

- **hk_market_snapshot** — Hong Kong stock market snapshot — closing levels and daily change for the whole Hang Seng index family: the Hang Seng Index (恒生指数, HSI), Hang Seng China Enterprises Index (恒生中国企业指数, HSCEI, the H-share benchmark), Hang Seng TECH Index (恒生科技指数, HSTECH), Hang Seng China-Affiliated Corporations Index (恒生香港中资企业指数, HSCCI, red chips), and the HSI Volatility Index (恒指波幅指数, VHSI). Answers 'Hang Seng index today', 'how did Hong Kong stocks close', '恒生指数最新收盘点位和涨跌幅', '恒生科技指数', 'HSCEI level', 'Hong Kong market close'. Each index returns level, change, change %, open, day high/low and 52-week high/low. Source: Sina (keyless).
- **hk_quote** — Real-time quote(s) for Hong Kong-listed stocks by HKEX code. Answers 'Tencent stock price', '腾讯股价', '00700 quote', 'HSBC Hong Kong share price'. Accepts one code or a comma-separated list, in any common form (700, 00700, 0700.HK). Returns English and Chinese name, price, change and change %, open, previous close, day high/low, volume, turnover in HKD, P/E, and the 52-week range. If you have a company NAME rather than a code, call hk_resolve_symbol first. Example: hk_quote({ codes: "00700,00005" }) for Tencent and HSBC. Source: Sina (keyless).
- **hk_resolve_symbol** — Find the HKEX stock code for a company by name — the lookup step before hk_quote. Answers 'what is Tencent's Hong Kong ticker', 'Xiaomi HK code', 'Alibaba Hong Kong listing'. Returns ONLY Hong Kong-listed equities: derivative warrants, CBBCs and non-HK listings (ADRs, US/Frankfurt lines) are excluded, and each match states the code it resolved to so you can confirm it is the company you meant before quoting it. Source: Yahoo Finance search (keyless).

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "hk-stocks": {
    "command": "npx",
    "args": ["-y","@pipeworx/mcp-hk-stocks"]
  }
}
```

## Documentation

## What Hk Stocks MCP server does

The Hk Stocks MCP server exposes three market-data tools for Hong Kong equities. `hk_market_snapshot()` reports closing level, daily change, percentage change, day range, and 52-week range for the Hang Seng Index, Hang Seng China Enterprises Index, Hang Seng TECH Index, Hang Seng China-Affiliated Corporations Index, and Hang Seng Volatility Index. Index volume and turnover are intentionally omitted because the upstream index fields do not provide values that can be reliably identified as those measures.

`hk_quote({ codes })` returns quote details for HKEX-listed stocks, including English and Chinese names, current price, change, opening price, previous close, daily high and low, share volume, HKD turnover, P/E, and 52-week range. Codes can be supplied in forms such as `700`, `00700`, `0700.HK`, or `HK:700`.

`hk_resolve_symbol({ name })` maps an English or Chinese company name to an HKEX code. Resolution is designed to return the ordinary share rather than a similarly named warrant or other derivative.

## How it works

The Hk Stocks MCP server uses Sina Finance for market levels and quotes. Because that feed returns Chinese text in GBK encoding, the response must be decoded from raw bytes rather than treated as UTF-8. Name resolution uses separate paths for different scripts: Sina's suggestion endpoint handles Chinese input, while Yahoo Finance search handles Latin-character input. If Yahoo does not find a Latin query, the implementation falls back to Sina.

Resolved codes are filtered using HKEX ranges. Codes below 10000 are accepted for equities and GEM listings; derivative warrants and CBBCs generally occupy 10000–69999, while 80000-and-above codes represent RMB counters. This prevents a warrant or dual-counter listing from being selected as the requested HKD equity.

## Setup and configuration

The server requires no API key, account, or environment variables. You can connect to the hosted pack endpoint at `https://gateway.pipeworx.io/hk-stocks/mcp`, or use the full Pipeworx gateway at `https://gateway.pipeworx.io/mcp`. The hosted pack endpoint lists these stock tools together with shared Pipeworx meta-tools; the full gateway lists the broader catalog directly.

For a local MCP process, configure a client to run `npx -y @pipeworx/mcp-hk-stocks`. The local process communicates over stdin/stdout and exposes only the pack's three tools. The same tools are also available through the gateway's HTTP tool interface, including direct POST requests to endpoints such as `/v1/tools/hk_market_snapshot`.

## Tools and capabilities

- Capture a snapshot of major Hong Kong indexes.
- Retrieve current and reference metrics for one or more HKEX codes.
- Resolve English company names to stock codes.
- Resolve Chinese company names to stock codes.
- Accept several common HKEX code formats.
- Use `ask_pipeworx` through the gateway to route plain-language questions to the appropriate tool.

## Limitations and notes

An unknown listing may produce an empty upstream payload with an HTTP success response. Callers should interpret an empty field list as not found rather than assuming it is a valid quote with missing prices.

The Hk Stocks MCP server depends on public upstream feeds. Yahoo Finance rejects non-ASCII search terms, so Chinese-name lookup is handled by Sina instead. Sina's Latin-name suggestions can prioritize warrants, which is why Latin queries use Yahoo first and apply code-range filtering. The package is licensed under MIT.

_Full upstream README: https://allmcps.com/mcp/hk-stocks/readme_

