TickTest logo

TickTest

A股量化回测 MCP Server — AI Agent 用自然语言回测 A 股。¥0.5/次,¥1 体验卡,¥19 月卡,海龟永久免费。

Install TickTest

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

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "ticktest": {
      "command": "uvx",
      "args": [
        "ticktest-mcp"
      ]
    }
  }
}

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

Claude Code command
claude mcp add --transport stdio ticktest -- uvx ticktest-mcp

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

We couldn’t confirm it starts correctly

We hit an unexpected error while testing this listing automatically.

uvx ticktest-mcp

Rate limit exceeded, please try again later - you have reached the maximum number of concurrent E2B sandboxes (20). If you need more, please visit 'https://e2b.dev/docs/billing'

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

Tools6

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

Self-reported~44 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.

13/13 checks healthy over the last 52d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 12h ago via OSV.dev · ticktest-mcp (PyPI)

Adoption & maintenance

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

Last commit1mo agoMost recent push to the default branch.
Install checkInconclusiveWe hit an unexpected error running the automated check.
Tools exposed6Callable tools this server registers over MCP.

From the project README

TickTest MCP Server

让 AI Agent(Claude Code、Cursor、Windsurf 等)通过 MCP 协议直接调用 TickTest A 股量化回测 API。

安装

Terminal
pip install ticktest-mcp

配置

Claude Code

在 .claude/mcp.json 或项目根目录 .mcp.json 中添加:

config.json
{
  "mcpServers": {
    "ticktest": {
      "command": "python",
      "args": ["-m", "ticktest_mcp"],
      "env": {
        "TICKTEST_API_URL": "https://api.ticktest.cn",
        "TICKTEST_API_KEY": "tt_your_api_key_here"
      }
    }
  }
}

Cursor / Windsurf

在 MCP 配置中添加:

config.json
{
  "mcpServers": {
    "ticktest": {
      "command": "ticktest-mcp",
      "env": {
        "TICKTEST_API_URL": "https://api.ticktest.cn",
        "TICKTEST_API_KEY": "tt_your_api_key_here"
      }
    }
  }
}

获取 API Key

无需离开对话,Agent 会帮你完成注册:

  1. Agent 询问你的邮箱
  2. Agent 调用 send-code → 你收到 6 位验证码
  3. 告诉 Agent 验证码 → 注册成功,拿到 API Key + 500 信用点
  4. Agent 配置 Key,开始回测

Tools

Tool认证说明
get_capabilities公开获取策略、因子、定价、注册流程
health_check公开检查 API 服务状态
search_symbols公开搜索 A 股股票代码
validate_strategy需 Key免费验证策略参数
run_backtest需 Key运行回测,¥0.50/次
create_payment需 Key生成三卡支付页:¥0.50 单次 / ¥1 体验卡 / ¥19 月卡

快速体验

海龟交易策略永久免费,无需付费:

Code
Agent: 帮我回测中际旭创,海龟交易
→ 自动搜索 sz300308 → 回测 → 返回收益率/夏普/回撤/胜率

定价

  • 单次回测:¥0.50(25 信用点)
  • 畅测体验卡:¥1(24 小时回测不限次,新人限购 1 次)
  • 畅测月卡:¥19(30 天回测不限次,真·不限次仅并发≤2)
  • 注册送 500 信用点(≈ 20 次)
  • 海龟交易:永久免费

环境变量

变量必填说明
TICKTEST_API_URL否API 地址,默认 https://api.ticktest.cn
TICKTEST_API_KEY否API Key,不配则只能调公开 Tool
TICKTEST_BACKTEST_TIMEOUT否回测超时秒数,默认 90

License

MIT

Reviews

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

Frequently Asked Questions about TickTest

TickTest is an MCP server that lets AI agents use natural-language requests to backtest A-share strategies through the TickTest API. It supports public capability, health, and symbol-search tools, plus authenticated strategy validation and backtesting; Turtle trading is free, while other backtests cost ¥0.50, with ¥1 24-hour and ¥19 30-day passes available.

Install TickTest with pip install ticktest-mcp, then configure the server with the Python module or ticktest-mcp command. Set TICKTEST_API_URL to https://api.ticktest.cn and provide TICKTEST_API_KEY for authenticated tools; without an API key, only public tools are available.

You can obtain an API key through the agent without leaving the conversation. Provide your email, receive a six-digit verification code through send-code, and submit the code to complete registration; successful registration provides an API key and 500 credits.

A single backtest costs ¥0.50, while the 24-hour experience pass costs ¥1 and the 30-day monthly pass costs ¥19. Registration includes 500 credits, approximately 20 backtests, and Turtle trading is permanently free.

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 PreviewTickTest AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/ticktest?style=directory)](https://allmcps.com/mcp/ticktest)
HTML Embed
<a href="https://allmcps.com/mcp/ticktest"><img src="https://allmcps.com/api/badge/ticktest?style=directory" alt="TickTest on AllMCPs" /></a>