Agent
Reversion exposes its full trading platform to AI agents through the Model Context Protocol (MCP). Connect any MCP-compatible app — Claude Desktop, Cursor, VS Code, or your own agent — and interact with markets, strategies, and backtesting using natural language.
Architecture
Section titled “Architecture”Agent App (Claude Desktop, Cursor, VS Code, custom agent) ↕ stdio or HTTPreversion-mcp ↕ HTTP (Bearer token auth)Reversion Backend — single public API gateway ├── Trading, market data, account (direct) └── Charting, backtesting, optimization (proxied to compute worker)The MCP server is a thin client that forwards all requests to the Reversion backend. It never touches private keys — authentication uses scoped API tokens (rvt_...) issued through the web app.
What’s in This Section
Section titled “What’s in This Section”Complete reference of every tool available through the MCP server — market data, trading, charting, algorithms, backtesting, optimization, and more. 46 tools across 10 categories.
Reversion Agent is the AI trading assistant built into the Reversion platform. Learn how to set it up with your API token and start analyzing markets, building strategies, and running backtests through conversation.
Technical guide for installing and configuring the MCP server. Covers npm, source, and HTTP transport setups, environment variables, and token scopes.
Token Scopes
Section titled “Token Scopes”Your API token controls what the agent can access. Assign scopes when creating a token:
| Scope | Grants Access To |
|---|---|
read | Account overview, watchlist, market data, economic calendar |
trade | Order placement & cancellation, position management, leverage & margin |
algo | Algorithm CRUD, charting, backtesting, optimization |
For full functionality, create a token with all three scopes: ["read", "trade", "algo"].