Skip to main content
Glama
tdx-finance-mcp

tdx-finance-mcp

by matrevi

TDX Finance Toolbox

Look up a quote, read a company's cash flow statement or follow a stock through the trading day in Codex, Claude Code, DeepSeek Harness or Antigravity CLI. The tools fetch market data, and the skills guide your assistant through each research question.

List the first three indices in the TDX broad-market group (宽基规模). Include their exchange codes.

The assistant can answer this one offline. The first lines returned by tdx_index_list with {"group":"宽基规模"} are shown below.

主要指数清单: 50/100 个(分组: 宽基规模)
999999.SH 上证指数 [宽基规模]
399001.SZ 深证成指 [宽基规模]
399330.SZ 深证100 [宽基规模]

Quick start

To build the plugins from source, use Node.js 22.16 or newer.

git clone https://github.com/matrevi/awesome-tdx-finance-toolbox.git
cd awesome-tdx-finance-toolbox
npm ci
npm run build

Already have an archive containing dist/? Start in the extracted directory. Choose your host below and run its commands there. Keep local marketplace directories in place after installation.

codex plugin marketplace add ./dist/codex
codex plugin add awesome-tdx-finance-toolbox@tdx-toolbox
claude plugin marketplace add ./dist/claude-code
claude plugin install awesome-tdx-finance-toolbox@tdx-toolbox
dsh plugin --profile web add "$PWD/dist/dsh-tdx-finance-toolbox-1.0.0.tgz"

For a headless session, use --profile headless.

agy plugin install ./dist/antigravity/plugins/awesome-tdx-finance-toolbox

Install the project's Node dependencies with npm ci, then link the checkout.

openclaw plugins install . --link
openclaw plugins inspect tdx-finance-mcp

For a client with an mcpServers configuration, install dependencies with npm ci in the checkout, then point the client at the stdio entry. Replace the path with your absolute path. On Windows you can use forward slashes, for example C:/projects/awesome-tdx-finance-toolbox/mcp-stdio.mjs.

{
  "mcpServers": {
    "tdx-finance-mcp": {
      "command": "node",
      "args": ["/absolute/path/to/awesome-tdx-finance-toolbox/mcp-stdio.mjs"]
    }
  }
}

For a standalone installation, run npm install --global ./dist/tdx-tdx-finance-mcp-1.0.0.tgz and configure the client to launch tdx-finance-mcp. To add an individual skill, copy its entire folder from dist/skills/ into your host's skills directory. Skills that query TDX also need the MCP server connected.

Check the connection. Open a new session and try the index question above. The tool should report 50 matches from the 100-index catalog, and the assistant can show the first three. No TDX token is needed for this check. Host verification guide

Related MCP server: Stock SDK MCP Server

Research skills

Ask your assistant

Skill

“What is Ping An Bank's main business? Its Shenzhen stock code is 000001.”

Company profile

“Show me the latest available cash flow statement for Kweichow Moutai (600519).”

Financial statements

“Using five-minute bars, how did volume change during today's session for 601600?”

Intraday tracking

The company profile skill requests the business overview through tdx_api_data. The stock code is a string to preserve its leading zeros.

{"entry":"TdxSharePCCW.tdxf10_gg_zxts","code":"000001","fixedTag":"gsgy"}

The catalog includes Chinese trigger phrases, tool dependencies and workflows for all 48 skills. Scripted strategies such as OBV/MA and first-to-second limit-up screening have additional Python requirements. Their local TQ modes also need a running Windows TDX terminal. Browse the skill catalog

Tool reference

Tool

What you can look up

tdx_lookup_stock

Securities and market codes matching a name or alias

tdx_quotes

Quote snapshots, price changes and five levels of order-book depth

tdx_kline

Historical OHLC bars, with period and price-adjustment options

tdx_api_data

F10 company profiles, financials, shareholders, dividends and trading activity

tdx_screener

Securities matching a natural-language screen

tdx_indicator_select

Financial indicators matching a query

tdx_index_list

Offline · 100 major indices, filterable by group

tdx_industry_list

Offline · 503 industry groups across three levels

The two offline tools use bundled snapshots. The other six query TDX over the network. Try a live query anonymously first. If a route requires a credential, set TDX_API_TOKEN in the stdio server's environment (TDX_API_KEY is the fallback). OpenClaw reads the plugin setting tdxApiToken or the environment variable TDX_API_KEY. API and data dictionary · F10 route catalog

Development

After npm ci, run the offline checks from the repository root.

npm run check
npm test
npm run build
npm run test:packages

The package tests start the server from installed artifacts. For live upstream checks, node tests/run-tests.mjs contacts TDX and writes reports under tests/. Test guide · Architecture · Contributor guide

The toolbox starts at 1.0.0. If you have a legacy 3.x installation, explicitly install the 1.0.0 artifact for your host. The MCP service ID remains tdx-finance-mcp. Versioning and migration · Changelog · MIT license

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
      A
      quality
      D
      maintenance
      Enables MCP clients like Claude to query Chinese A-share market data, including K-line charts with forward/backward adjustment, limit-up and limit-down pools, per-stock fund flows, index quotes, and stock news, with automatic symbol normalization and retry handling for throttled data sources.
      6
      MIT
    • A
      license
      Not graded
      quality
      A
      maintenance
      Enables AI assistants to access real-time and historical market data for A-shares, Hong Kong, US stocks, funds, futures, and options, calculate technical indicators, analyze sectors, screen stocks, and monitor portfolios through MCP tools, prompts, and skills.
      159 npm
      ISC
    • A
      license
      Not graded
      quality
      A
      maintenance
      Enables AI assistants and MCP-compatible clients to access real-time and historical market data across A-shares, Hong Kong, US equities, funds, futures, and options, along with technical indicators, sector analysis, screening, prompts, and resources.
      159 npm
      ISC
    • F
      license
      Not graded
      quality
      A
      maintenance
      Enables AI agents and backends to query A-share, US equity, ETF, index, and crypto market data, compute technical indicators, retrieve fundamentals, news, filings, money flow, and export CSV/JSON for code workflows through MCP tools and HTTP APIs.
      -