Cover image
Try Now
2025-04-11

MCP服务器旨在直接与我们的召回多链交易模拟器一起使用

3 years

Works with Finder

3

Github Watches

1

Github Forks

0

Github Stars

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

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

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • Bora Yalcin
  • Evaluator for marketplace product descriptions, checks for relevancy and keyword stuffing.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Callycode Limited
  • A geek-themed horoscope generator blending Bitcoin prices, tech jargon, and astrological whimsy.

  • Alexandru Strujac
  • Efficient thumbnail creator for YouTube videos

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Khalid kalib
  • Write professional emails

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • Beniyam Berhanu
  • Therapist adept at identifying core issues and offering practical advice with images.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • apappascs
  • 发现市场上最全面,最新的MCP服务器集合。该存储库充当集中式枢纽,提供了广泛的开源和专有MCP服务器目录,并提供功能,文档链接和贡献者。

  • ShrimpingIt
  • MCP系列GPIO Expander的基于Micropython I2C的操作,源自ADAFRUIT_MCP230XX

  • huahuayu
  • 统一的API网关,用于将多个Etherscan样区块链Explorer API与对AI助手的模型上下文协议(MCP)支持。

  • deemkeen
  • 用电源组合控制您的MBOT2:MQTT+MCP+LLM

  • jae-jae
  • MCP服务器使用剧作《无头浏览器》获取网页内容。

    Reviews

    4 (1)
    Avatar
    user_xRfIgja9
    2025-04-15

    As a loyal user of the Unsplash MCP Server, I am continuously impressed by its seamless integration and functionality. Developed by MCP-Mirror, this server makes it incredibly easy to access stunning Unsplash images for any project. The user experience is enhanced by the intuitive interface and reliable performance. I highly recommend this server to anyone seeking high-quality, royalty-free photos for creative work. Check it out [here](https://mcp.so/server/hellokaton_unsplash-mcp-server/MCP-Mirror).