AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
MCP verified MIT Self-run

Tsrs Mcp Server

mcp-hanxuanliang-tsrs-mcp-server · by hanxuanliang

tushare rust mcp server

— No reviews yet
0 installs
35 views
0.0% view→install

Install

$ agentstack add mcp-hanxuanliang-tsrs-mcp-server

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • ✓ Prompt-injection patterns
  • ✓ Secret / credential exfiltration
  • ✓ Dangerous shell & filesystem operations
  • ✓ Untrusted network calls
  • ✓ Known-malicious package signatures

What it can access

  • ✓ Network access No
  • ✓ Filesystem access No
  • ✓ Shell / process execution No
  • ● Environment & secrets Used
  • ✓ Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/mcp-hanxuanliang-tsrs-mcp-server)

Reliability & compatibility

✓ Security review passed
0 installs to date
— no reviews yet
○ stale · 1y ago

Declared compatibility

Claude CodeClaude DesktopCursorWindsurf

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Tsrs Mcp Server? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

tsrs-mcp-server

这是一个基于 Model Context Protocol (MCP) 的TuShare数据服务器,提供了一系列股票市场数据查询接口。

项目简介

本项目是一个Rust实现的MCP服务器,封装了TuShare的API接口,提供了多个股票市场数据查询工具。项目使用了以下主要技术:

  • Rust
  • Model Context Protocol (MCP)
  • Poem MCP Server
  • TuShare API
  • 过程宏 (Procedural Macros)

功能特性

项目提供了以下MCP工具:

| 工具名称 | 功能描述 | 主要参数 | 返回数据 | |---------|---------|---------|---------| | limitstep | 获取每天连板个数晋级的股票 | tradedate, startdate, enddate, nums | 股票代码、名称、交易日期、连板次数 | | thshot | 获取同花顺App热榜数据 | tradedate | 股票信息、排名、热度、概念等 | | kpllist | 获取涨跌停板数据 | tag, startdate, enddate | 涨跌停详细信息、成交数据等 | | kplconcept | 获取开盘啦概念题材列表 | tradedate | 题材代码、名称、涨停数量等 | | kplconceptcons | 获取开盘啦概念题材的成分股 | tradedate, tscode | 题材成分股详细信息 | | limitcptlist | 获取每天涨停股票最多的概念板块 | tradedate, startdate, enddate | 板块代码、名称、连板数据等 | | moneyflowths | 获取同花顺个股资金流向数据 | tscode, tradedate, startdate, enddate | 资金流向详细数据 | | moneyflowcntths | 获取同花顺概念板块每日资金流向 | tradedate, startdate, enddate | 板块资金流向数据 | | stkmins | 获取A股分钟数据 | tscode, freq, startdate, enddate | 分钟级别的交易数据 |

项目结构

项目包含以下主要组件:

  • ts-derive: 提供用于TuShare API的过程宏实现
  • ts-model: 包含数据模型
  • src: 主程序实现

环境配置

在运行之前,需要设置TuShare的API token:

  • 复制 .env.example 为 .env
  • 在 .env 文件中设置你的TuShare token:
TUSHARE_TOKEN=your_token_here

构建

前提条件:安装 Rust 和 Cargo。

cargo build --release

./target/release/tsrs-mcp-server

运行

你可以在release中找到对应平台下的编译产物, 例如 tsrs-mcp-server--aarch64-apple-darwin.tar.gz。

服务器支持两种运行模式:

  1. Stdio模式(默认):直接下载release产物。执行: ./tsrs-mcp-server stdio
  2. Stream模式:提供Streamable HTTP模式。endpoint: http://127.0.0.1:8999

运行方式如下图配置(仅展示在chatwise的配置):

鸣谢

感谢以下项目和库, 尤其是 poem-mcpserver 对MCP编写的极强便捷性支持, 没有它, 本项目没有如此简便的实现方式。 同时感谢 TuShare API 提供的数据接口。 最后要感谢 rust, 没有 procedural macros, 本项目的模版实现将变得异常机械化。

License

本项目采用 MIT 许可证。详见 [LICENSE](LICENSE) 文件。

Source & license

This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.