TDX stock data client with MCP server for AI assistants (Claude, Cursor, OpenClaw)
Project description
tdx-mcp
基于通达信行情服务器的 MCP Server,为 Claude、Cursor 等 AI 助手提供实时股票数据接口。
底层依赖 opentdx(子模块)
声明:本项目为个人学习项目,连接通达信公开行情服务器,严禁用于商业用途,严禁滥用接口。
MCP Server 一键配置
支持 Claude、Cursor、OpenClaw 等 AI 助手直接调用股票数据。
方式一:uvx(推荐)
{
"mcpServers": {
"tdx": {
"command": "uvx",
"args": ["--from", "tdx-mcp", "tdx-mcp"]
}
}
}
方式二:pip 安装后直接运行
{
"mcpServers": {
"tdx": {
"command": "tdx-mcp"
}
}
}
支持的数据
| 类别 | 说明 |
|---|---|
| A股行情 | 沪深北交所、创业板、科创板 |
| 扩展行情 | 期货、港股、美股、期权 |
| K线 | 多周期(1分/5分/日线/周线等),支持前/后复权 |
| 分时 | 实时/历史分时数据 |
| 排行榜 | 涨跌幅、振幅、换手率、量比等 |
| 异动监控 | 主力监控精灵 |
| F10 | 公司基本信息、财报 |
| 技术指标 | MA、EMA、MACD、RSI、KDJ、BOLL、ATR |
MCP Tools 一览
股票数据
| Tool | 说明 |
|---|---|
get_index_overview |
指数概况(上证/深证/北证/创业/科创/沪深300) |
stock_kline |
K线数据,支持复权 |
stock_quotes |
个股/批量报价 |
stock_quotes_list |
板块行情列表,支持排序过滤 |
stock_tick_chart |
分时图 |
stock_top_board |
涨跌/振幅/量比等排行榜 |
stock_transaction |
历史成交 |
stock_auction |
竞价数据 |
stock_unusual |
异动监控 |
stock_f10 |
F10 公司信息 |
扩展行情
| Tool | 说明 |
|---|---|
goods_kline |
期货/港股/美股 K线 |
goods_quotes |
扩展行情报价 |
goods_quotes_list |
扩展行情列表 |
goods_tick_chart |
商品分时图 |
goods_history_transaction |
商品历史成交 |
技术指标
| Tool | 说明 |
|---|---|
indicator_ma |
移动平均线 |
indicator_ema |
指数移动平均 |
indicator_macd |
MACD |
indicator_rsi |
RSI |
indicator_kdj |
KDJ |
indicator_boll |
布林带 |
indicator_atr |
真实波动幅度 |
indicator_vol_ma |
成交量均线 |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tdx_mcp-0.2.4.tar.gz.
File metadata
- Download URL: tdx_mcp-0.2.4.tar.gz
- Upload date:
- Size: 85.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2aaabdf67d01c2a0042875cee33dc192bb32a098b449ba1454fab50750ff7b03
|
|
| MD5 |
2930286c04c1d33505478469161751b5
|
|
| BLAKE2b-256 |
c1da64ee595435f32429db9a20e4f88ad081df872e8571a12f1a472c30595139
|
Provenance
The following attestation bundles were made for tdx_mcp-0.2.4.tar.gz:
Publisher:
publish.yml on LisonEvf/tdx_mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tdx_mcp-0.2.4.tar.gz -
Subject digest:
2aaabdf67d01c2a0042875cee33dc192bb32a098b449ba1454fab50750ff7b03 - Sigstore transparency entry: 1523500813
- Sigstore integration time:
-
Permalink:
LisonEvf/tdx_mcp@38cf42a7848fec8c951daa8346823599c6abd13c -
Branch / Tag:
refs/tags/v0.2.4 - Owner: https://github.com/LisonEvf
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@38cf42a7848fec8c951daa8346823599c6abd13c -
Trigger Event:
push
-
Statement type:
File details
Details for the file tdx_mcp-0.2.4-py3-none-any.whl.
File metadata
- Download URL: tdx_mcp-0.2.4-py3-none-any.whl
- Upload date:
- Size: 121.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7f20323258486cc862f17b7f86d2235c7c7895d3f2c643a2fab4b7a734a14599
|
|
| MD5 |
4ff3a28351cc6576836aa4087743b366
|
|
| BLAKE2b-256 |
97a4137b6e8fabe00d4b1e84f185beaf6870f30bf10961d8ed427ae3cc9129fb
|
Provenance
The following attestation bundles were made for tdx_mcp-0.2.4-py3-none-any.whl:
Publisher:
publish.yml on LisonEvf/tdx_mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tdx_mcp-0.2.4-py3-none-any.whl -
Subject digest:
7f20323258486cc862f17b7f86d2235c7c7895d3f2c643a2fab4b7a734a14599 - Sigstore transparency entry: 1523500829
- Sigstore integration time:
-
Permalink:
LisonEvf/tdx_mcp@38cf42a7848fec8c951daa8346823599c6abd13c -
Branch / Tag:
refs/tags/v0.2.4 - Owner: https://github.com/LisonEvf
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@38cf42a7848fec8c951daa8346823599c6abd13c -
Trigger Event:
push
-
Statement type: