:GT Protocol MCP Server
Connects MCP-compatible AI agents to GT Protocol trading accounts, enabling natural language control of automated trading bots, strategy backtesting, deal execution, and balance monitoring on Binance and Hyperliquid exchanges.
README
@gt-protocol/mcp
GT Protocol MCP Server — connect Claude, Cursor, Claude Code, or any MCP-compatible AI agent to your GT Protocol trading account.
Manage bots, run backtests, check balances, and automate trading strategies — all through natural language.
What is MCP?
Model Context Protocol is an open standard that lets AI agents call external tools. This server exposes the GT Protocol REST API as a set of tools that any MCP-compatible AI can use.
Quickstart
1. Add to Claude Code
Add this to your .mcp.json (or ~/.claude.json for global access):
{
"mcpServers": {
"gt-protocol": {
"command": "node",
"args": ["/path/to/gt-protocol/mcp-server/index.js"]
}
}
}
No env variables needed.
2. Authenticate
On first use, call the authenticate tool:
Authenticate with GT Protocol using email@example.com and my password
The server calls /auth/sign_in, saves tokens to ~/.gt-mcp-auth.json, and confirms with your account email. Done.
You will never need to do this again — tokens are auto-refreshed on every use and persist across restarts.
3. Add to Cursor
Open Settings → MCP and add the same configuration block (without env).
4. Start trading with AI
List my active bots
What's my Binance balance?
Create a BTC/USDT long bot with $50 start order and 2% take profit
Close the deal on bot 12345
Run a backtest for ETH/USDT with MACD strategy, 3% TP, 1% SL
Available Tools
Auth
| Tool | Description |
|---|---|
authenticate |
Sign in with email + password. Call once — tokens persist to disk and auto-refresh. |
Bots
| Tool | Description |
|---|---|
list_bots |
List all your strategies |
get_bot |
Get details of a specific bot |
create_bot |
Create a new trading bot |
update_bot |
Update bot settings |
start_bot |
Activate a bot |
stop_bot |
Deactivate a bot |
paper_clone |
Create a paper trading copy of a live bot |
Deals
| Tool | Description |
|---|---|
start_deal |
Manually open a deal on an active bot immediately (skip signal wait) |
close_deal |
Market-close the active deal on a bot |
list_deals |
List all deals (open + closed), filter by bot |
get_active_deals |
Get all currently active deals |
get_deal_history |
Closed deals with profit stats |
Account
| Tool | Description |
|---|---|
get_exchanges |
List connected exchange accounts |
get_balance |
Get balance for an exchange account |
get_profile |
Current user profile and stats |
Examples
Morning portfolio check
What's the status of all my bots? Which ones have active deals?
Show me my total profit this week.
What's my available USDT balance on Binance?
Strategy research
Run a backtest for BTC/USDT on Binance with bollinger strategy,
long direction, 2.5% TP, 1% SL, 5m timeframe, last 30 days.
Compare with MACD strategy same params.
Bot management
Stop all my losing bots (those with negative total profit).
Update bot 12345 — increase take profit to 3% and add a 5% stop loss.
Start a deal on bot 12345 right now without waiting for a signal.
Paper Trading
GT Protocol supports paper (demo) trading — test strategies without real capital.
- Set
paper: trueincreate_botto create a demo bot from scratch - Use
paper_cloneto copy an existing live bot into demo mode
Paper bots run on real market data but don't place real orders.
Authentication Details
Tokens are stored in ~/.gt-mcp-auth.json after the first authenticate call.
| Token | TTL | Behavior |
|---|---|---|
| Access token | ~1 hour | Auto-refreshed on 401 responses |
| Refresh token | ~7 days | Used to get new access tokens silently |
When the refresh token expires (~7 days of total inactivity), call authenticate again. Normal usage keeps tokens alive indefinitely through automatic refresh.
You can still set GT_TOKEN / GT_REFRESH_TOKEN in .mcp.json env to override the saved tokens — useful for CI/automation.
Environment variables
| Variable | Default | Description |
|---|---|---|
GT_TOKEN |
— | Override access token (optional) |
GT_REFRESH_TOKEN |
— | Override refresh token (optional) |
GT_API_URL |
http://46.225.216.13:8765 |
Override API base URL |
Supported Exchanges
- Binance (SPOT + FUTURES)
- Hyperliquid (FUTURES)
Requirements
- Node.js 18+
- A GT Protocol account — sign up at gt-protocol.io
- A connected exchange account (Binance or Hyperliquid)
License
MIT — free to use, fork, and extend.
Built by GT Protocol.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。