Overview

The TokenBot MCP (Model Context Protocol) server allows AI assistants and LLMs to interact with the TokenBot platform programmatically.

What is MCP?

MCP is a protocol that lets AI models call tools and access data sources. The TokenBot MCP server exposes trading operations as tools that AI assistants can use.

Connection

The MCP server runs locally and communicates via stdio or SSE:

# Install
npm install @tokenbot-org/mcp-server

# Run
npx tokenbot-mcp --api-key tb_live_your_key

Authentication

Set your API key when starting the server. The server handles authentication for all tool calls.

# Via environment variable
TOKENBOT_API_KEY=tb_live_your_key npx tokenbot-mcp

# Via command line
npx tokenbot-mcp --api-key tb_live_your_key

Available Tool Domains

  • Auth — Set/get user context

  • Exchanges — List, get, test, create, delete exchange accounts

  • Strategies — List, get, create, update, delete strategies; link copiers

  • Copiers — List, get, create, update, delete, toggle copiers

  • Trades — List, get, cancel trades; view analytics

See Tools Reference for full details.

Last updated

Was this helpful?