Hk Stocks logo

Hk Stocks

Live HKEX quotes, Hang Seng index data, and English or Chinese company-name resolution through MCP.

Install Hk Stocks

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "hk-stocks": {
      "command": "npx",
      "args": [
        "-y",
        "@pipeworx/mcp-hk-stocks"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Claude Code command
claude mcp add --transport stdio hk-stocks -- npx -y @pipeworx/mcp-hk-stocks

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

Automated check passed— started and listed 3 tools correctly ().

Overview

The Hk Stocks MCP server provides live Hong Kong equity quotes, Hang Seng index snapshots, and company-name-to-code lookup. It connects through the Pipeworx gateway or runs locally over stdio, using public Sina Finance and Yahoo Finance endpoints without credentials. Use it to check Hong Kong market performance, retrieve individual HKEX prices, or resolve a company name before requesting its quote. The server filters out warrants, CBBCs, and RMB counters when resolving stock codes.

Use cases

  • Check closing levels for major Hong Kong indexes
  • Retrieve live quotes for HKEX-listed stocks
  • Resolve English or Chinese company names to HKEX codes
  • Filter ordinary shares from warrants and RMB counters

Key features

  • Hang Seng index snapshots
  • Real-time HKEX stock quotes
  • English and Chinese symbol resolution
  • Multiple HKEX code formats
  • Warrant and counter filtering
  • Hosted HTTP and local stdio modes

Tools3

What Hk Stocks lets your agent do. Expand a tool for its parameters.

Verified live~571 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

14/14 checks healthy over the last 68d

What it can do

From the 3 tools this server returned when we ran it; 3 declare their own safety hints.

Makes network requests · 3Read-only tools · 3
Network at startup4 connections
Files written at startupNone
Install scriptsNone
npm provenanceSigned build
Package age40 days
Maintainers1

Observed 2026-11-03 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 3d ago via OSV.dev · @pipeworx/mcp-hk-stocks (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

npm downloads676Package downloads in the last 30 days.
Last commit26d agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed3Callable tools this server registers over MCP.

How Hk Stocks works

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.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Hk Stocks

Hk Stocks is an MCP server that connects AI clients to public Sina Finance and Yahoo Finance endpoints for Hong Kong market data. Its main tools provide Hang Seng index snapshots, real-time HKEX stock quotes, and English or Chinese company-name resolution to HKEX codes, without requiring an API key, account, or registration.

Run it locally with `npx -y @pipeworx/mcp-hk-stocks` and configure your MCP client to launch that command. You can instead connect to `https://gateway.pipeworx.io/hk-stocks/mcp` as a hosted MCP endpoint. Neither option requires credentials.

Yes, Hk Stocks works with Cursor through the hosted MCP endpoint or a local stdio configuration. Add the gateway URL to the client, or configure it to run `npx -y @pipeworx/mcp-hk-stocks`.

Yes, `hk_resolve_symbol` accepts Chinese company names and uses Sina's suggestion service for Chinese input. Latin-character searches use Yahoo Finance first, with a Sina fallback when Yahoo returns no match.

It filters resolved codes by HKEX ranges and accepts codes below 10000 for equities and GEM listings. This excludes common derivative ranges and 80000-and-above RMB counters, which could otherwise be mistaken for the ordinary HKD share.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewHk Stocks AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/hk-stocks?style=directory)](https://allmcps.com/mcp/hk-stocks)
HTML Embed
<a href="https://allmcps.com/mcp/hk-stocks"><img src="https://allmcps.com/api/badge/hk-stocks?style=directory" alt="Hk Stocks on AllMCPs" /></a>