Skip to main content
Glama
gt-protocol

:GT Protocol MCP Server

Official
by gt-protocol

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


Related MCP server: CMP-server Pocket Option 2026

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.

Tokens auto-refresh as long as you use the server at least once every 7 days. After 7 days of total inactivity, call authenticate again.

Signed up with Google? You don't have a password. Open the GT Protocol web app, open DevTools → Application → Local Storage, copy access_token and refresh_token, and add them to .mcp.json as env vars:

"env": {
  "GT_TOKEN": "<access_token>",
  "GT_REFRESH_TOKEN": "<refresh_token>"
}

The server will pick them up on startup and auto-refresh from there.

3. 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 standalone strategies/bots. Does NOT include Portfolio strategies — call list_portfolios for those.

list_portfolios

List Portfolio strategies (multi-bot baskets). Each portfolio occupies its exchange: a portfolio on Binance blocks any new standalone SPOT bot on that account. Always call together with list_bots when auditing exchange usage.

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

delete_bot

Archive (soft-delete) a bot. Requires no active deal — close it first with close_deal if open.

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

Backtest

Tool

Description

run_backtest

Run a backtest on historical data. Strategies: macd, bollinger, kdj. Returns win rate, PnL, drawdown, full trade list.

Note: Backtest requests are routed through a proxy. The proxy key is fetched automatically after authenticate — no extra env vars needed.


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: true in create_bot to create a demo bot from scratch

  • Use paper_clone to 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

GT_PROXY_URL

http://46.225.216.13:8081

Backtest proxy URL

GT_PROXY_API_KEY

Override backtest proxy key (fetched automatically after authenticate)


Supported Exchanges

  • Binance (SPOT + FUTURES)

  • Hyperliquid (FUTURES)


Requirements

  • Node.js 18+ (dependencies are bundled — no npm install needed)

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

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 16 tool updatesv1.0.0
    • First observedauthenticate
    • First observedclose_deal
    • First observedcreate_bot
    • First observedget_active_deals
    • First observedget_balance
    • First observedget_bot
    • First observedget_deal_history
    • First observedget_exchanges
    • First observedget_profile
    • First observedlist_bots
    • First observedlist_deals
    • First observedpaper_clone
    • First observedstart_bot
    • First observedstart_deal
    • First observedstop_bot
    • First observedupdate_bot

TDQS

B3.2/5.0

Scored across 16 tools

Disambiguation4/5

Tools have distinct purposes with clear boundaries (create/update/start/stop_bot, start/close_deal). Minor overlap exists between list_deals, get_active_deals, and get_deal_history—the latter two are specialized subsets of the first, but their specific intents (active-only vs. historical P&L) are clear enough to prevent serious confusion.

Naming Consistency4/5

Consistently follows verb_noun pattern (create_bot, close_deal, get_balance) with high predictability. Minor deviation in 'paper_clone' (noun-verb compound) and 'authenticate' (standalone verb), but overall conventions are readable and mostly uniform.

Tool Count4/5

16 tools is appropriate for a trading bot management domain covering authentication, bot CRUD/lifecycle, deal operations, exchange integration, and paper trading. Slightly above the ideal 3-15 range but each tool earns its place without bloat.

Completeness4/5

Strong coverage of bot lifecycle (create, read, update, start, stop) and deal management (start, close, history, active tracking). Minor gap: no delete_bot or remove_exchange operations, though these may be omitted for audit trail purposes. Paper trading is covered via clone operation.

Maintenance

ActivityInactive
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers

  • F
    license
    Not graded
    quality
    D
    maintenance
    Enables AI tools to execute trades and fetch market data across six crypto exchanges via natural language or API, with dual Telegram and MCP interfaces.
    2
    -
  • A
    license
    A
    quality
    C
    maintenance
    Enables AI assistants to interact with the PocketOption trading platform via MCP, including balance checks, candle data, asset screening, and trade placement, with support for multi-agent coordination.
    24
    6
    MIT
  • A
    license
    B
    quality
    D
    maintenance
    Enables AI agents to trade crypto with paper money, access market data, view leaderboards, and manage trading bots via an MCP-compatible interface.
    16
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Connects TradeOS trading intelligence to MCP-compatible AI tools, enabling natural language-driven market analysis, ticker search, spread comparison, macro context, and custom trading agent management.
    27 npm
    18
    MIT