← Back to Plugins
Tools

Awesome Tdx Finance Toolbox

matrevi By matrevi 👁 30 views ▲ 0 votes

TongDaXin (TDX) market data and research skills for Chinese A-shares, available through MCP and plugins for conventional Agents.

GitHub

Install

npm install --global

Configuration Example

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

README

# ![TDX Finance Toolbox](assets/tdx-finance-toolbox-logo-horizontal.webp)

<p align="center">
  <strong>English</strong> · <a href="README.zh-CN.md">简体中文</a> · <a href="#quick-start">Quick start</a>
</p>

<p align="center">
  <a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-green" alt="MIT license"></a>
  <a href="docs/versioning.md"><img src="https://img.shields.io/badge/version-1.0.0-blue" alt="Project version 1.0.0"></a>
  <a href="#tool-reference"><img src="https://img.shields.io/badge/MCP%20tools-8-blue" alt="8 MCP tools"></a>
  <a href="#research-skills"><img src="https://img.shields.io/badge/skills-48-blueviolet" alt="48 research skills"></a>
</p>

<p align="center"><strong>TongDaXin data for AI-assisted A-share research</strong></p>

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.

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

## Quick start

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

```sh
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.

<details open>
<summary><strong>Codex</strong></summary>

```sh
codex plugin marketplace add ./dist/codex
codex plugin add awesome-tdx-finance-toolbox@tdx-toolbox
```

</details>
<details>
<summary><strong>Claude Code</strong></summary>

```sh
claude plugin marketplace add ./dist/claude-code
claude plugin install awesome-tdx-finance-toolbox@tdx-toolbox
```

</details>
<details>
<summary><strong>DeepSeek Harness (DSH)</strong></summary>

```sh
dsh plugin --profile web add "$PWD/dist/dsh-tdx-finance-toolbox-1.0.0.tgz"
```

For a headless session, use `--profile headless`.

</details>
<details>
<summary><strong>Antigravity CLI</strong></summary>

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

</details>
<details>
<summary><strong>OpenClaw</strong></summary>

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

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

</details>
<details>
<summary><strong>Other MCP clients or a single skill</strong></summary>

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`.

```json
{
  "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.

</details>

**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](tests/hosts/README.md)

## Research skills

| Ask your assistant | Skill |
| --- | --- |
| “What is Ping An Bank's main business? Its Shenzhen stock code is 000001.” | [Company profile](skills/tdx-company-info/SKILL.md) |
| “Show me the latest available cash flow statement for Kweichow Moutai (600519).” | [Financial statements](skills/tdx-financials/SKILL.md) |
| “Using five-minute bars, how did volume change during today's session for 601600?” | [Intraday tracking](skills/tdx-intraday-tracking/SKILL.md) |

<details>
<summary>See the F10 tool call behind the company profile</summary>

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

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

</details>

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](SKILLS.md)

## 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](references/tdx-finance-mcp-接口与数据字典.md) · [F10 route catalog](references/F10-catalog.md)

## Development

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

```sh
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](tests/README.md) · [Architecture](docs/architecture.md) · [Contributor guide](AGENTS.md)

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](docs/versioning.md) · [Changelog](CHANGELOG.md) · [MIT license](LICENSE)
tools

Comments

Sign in to leave a comment

Loading comments...