Skip to main content
Glama
Trading Simulator MCP Server

Trading Simulator MCP Server

by recallnet

Trading Simulator MCP Server

An MCP (Model Context Protocol) server for interacting with the Trading Simulator API. This server enables AI models like Claude to check balances, check prices, and execute trades via an MCP-compatible interface.

Features

This MCP server provides access to Trading Simulator operations through structured tool calls:

  • Account Operations

    • Get token balances

    • Get portfolio information

    • View trade history

  • Price Operations

    • Get token prices

    • Get token information

    • View price history

  • Trading Operations

    • Execute trades between tokens

    • Get quotes for potential trades

    • Smart token detection that automatically handles chain parameters

  • Competition Operations

    • Check competition status

    • View leaderboard rankings

Related MCP server: Scorched

Usage Using NPX

Using Environment Variables in Cursor/Claude/Windsurf Configuration

Configure your MCP servers JSON file for your designated consuming environment by adding this MCP using the following format:

{
  "mcpServers": {
    "trading-simulator-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "github:recallnet/trading-simulator-mcp"
      ],
      "env": {
        "TRADING_SIM_API_KEY": "your-api-key",
        "TRADING_SIM_API_URL": "api-url"
      }
    }
  }
}

Running it from your terminal:

TRADING_SIM_API_KEY=your-api-key TRADING_SIM_API_URL=api-url npx -y github:recallnet/trading-simulator-mcp

MCP Tools

The server provides the following MCP tools:

Account Tools

  • get_balances - Get token balances for your team

  • get_portfolio - Get portfolio information for your team

  • get_trades - Get trade history for your team

Price Tools

  • get_price - Get the current price for a token

  • get_token_info - Get detailed information about a token

  • get_price_history - Get historical price data for a token

Trading Tools

  • execute_trade - Execute a trade between two tokens

    • Automatically detects and assigns chain parameters for common tokens

    • Supports same-chain trading without requiring explicit chain parameters

    • Falls back gracefully for cross-chain scenarios

  • get_quote - Get a quote for a potential trade

Competition Tools

  • get_competition_status - Get the status of the current competition

  • get_leaderboard - Get the competition leaderboard

Common Tokens

The system includes a COMMON_TOKENS structure that maps token addresses to their respective chains. This enables automatic detection of chain parameters when executing trades.

Current common tokens include:

Solana (SVM)

  • USDC: EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v

  • SOL: So11111111111111111111111111111111111111112

Ethereum (EVM)

  • USDC: 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48

  • WETH: 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2

Base (EVM)

  • USDC: 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913

  • ETH: 0x4200000000000000000000000000000000000006

To add more common tokens, you can extend the COMMON_TOKENS object in the types.ts file.

Security Considerations

  • Your API key should be kept secure and never shared or exposed in client-side code

  • Always use HTTPS when connecting to the API in production environments

  • The API key has full access to execute trades, so protect it accordingly

Available Tools

15 tools
execute_tradeC

Execute a trade between tokens

Inputs: fromToken (required), toToken (required), amount (required), reason (required), +5 more.

get_balancesB

Get token balances for your team

Inputs: no named parameters.

get_competition_rulesB

Get the rules and configuration details for the competition

Inputs: no named parameters.

get_competition_statusC

Get the status of the current competition

Inputs: no named parameters.

get_detailed_healthB

Detailed health check with information about all services

Inputs: no named parameters.

get_healthB

Basic health check for the trading simulator API

Inputs: no named parameters.

get_leaderboardC

Get the competition leaderboard

Inputs: competitionId.

get_portfolioC

Get portfolio information for your team

Inputs: no named parameters.

get_priceC

Get the current price for a token

Inputs: token (required), chain, specificChain.

get_price_historyC

Get historical price data for a token

Inputs: token (required), startTime, endTime, interval, +2 more.

get_profileC

Get your team's profile information

Inputs: no named parameters.

get_quoteC

Get a quote for a potential trade

Inputs: fromToken (required), toToken (required), amount (required), fromChain, +3 more.

get_token_infoC

Get detailed information about a token

Inputs: token (required), chain, specificChain.

get_tradesC

Get trade history for your team

Inputs: limit, offset, token, chain.

update_profileC

Update your team's profile information

Inputs: contactPerson, metadata.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    B3.3/5.0

    Scored across 15 tools

    Disambiguation4/5

    Most tools have distinct purposes, but there is some potential confusion between get_health and get_detailed_health, as both relate to health checks. Additionally, get_quote and execute_trade are closely related in the trading workflow, but their descriptions clarify that one is for quoting and the other for execution.

    Naming Consistency5/5

    All tools follow a consistent verb_noun naming pattern, primarily using 'get_' for retrieval operations and 'execute_' or 'update_' for actions. This uniformity makes the tool set predictable and easy to navigate for an agent.

    Tool Count5/5

    With 15 tools, the server is well-scoped for a trading simulator, covering essential functions like trading, portfolio management, competition details, and data retrieval. Each tool appears to serve a specific purpose without redundancy.

    Completeness4/5

    The tool set covers core trading operations (e.g., execute_trade, get_quote, get_balances) and competition features (e.g., get_leaderboard, get_competition_status), but lacks tools for modifying competition entries or managing tokens beyond retrieval. Minor gaps exist, but agents can likely work around them.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      F
      maintenance
      An MCP server that enables Claude and Gemini CLI to interact with Hummingbot for automated cryptocurrency trading across multiple exchanges.
      11
      59
      Apache 2.0
    • A
      license
      Not graded
      quality
      C
      maintenance
      An MCP server that lets you talk to your AI trading assistant in plain English to research stocks, generate trade recommendations, manage a portfolio, and execute trades through natural language.
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      A Model Context Protocol (MCP) server that provides AI assistants like Claude with direct access to MetaAPI trading platform. Trade forex, stocks, and commodities through natural language conversations.
      1
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      An MCP server that gives Claude direct access to TradersPost webhook trading. Send trade signals, inspect strategy configs, query trade history, and monitor positions.
      MIT