eaea.ai中文

eaea Backtest API: let your AI compile and backtest MT5 EAs

Connect this endpoint to Claude, Cursor or any MCP client. Your assistant can then compile an EA, read the errors, fix the code, run a real MetaTrader 5 backtest and read the report. Tests run on genuine MT5, not a simulator.

Three tools

compile_ea
Compile MQ5 source. Returns errors and warnings with line numbers.
run_backtest
Queue one backtest: XAUUSD, 1-minute OHLC, up to 366 days.
get_report
Check progress. When finished: net profit, trades, profit factor, max drawdown and the original report.

Connect in three steps

  1. Sign in with your Niubang account and create a key.
  2. Paste the command below into a terminal (Claude Code), or the config into Cursor.
  3. Ask: “Compile this EA, backtest the last three months and tell me the result.”

Loading…

Claude Code

claude mcp add --transport http eaea https://www.eaea.ai/mcp --header "Authorization: Bearer YOUR_KEY"

Cursor · ~/.cursor/mcp.json

{
  "mcpServers": {
    "eaea": {
      "url": "https://www.eaea.ai/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_KEY"
      }
    }
  }
}

Limits

FreePro · 10U/month
backtests / per day540
compiles / per day50400
at once12

Counters reset at 00:00 UTC. A backtest that ends without a report is not counted. Paid in USDT, monthly, no auto-renewal.

What it does and does not do

XAUUSD only; 1-minute OHLC model; leverage 1:500; up to 366 days per test; .mq5 source only, with an optional .set file.

No live trading, no optimisation, no batches. Source containing #import (DLL calls) is refused.

Source is used only to compile and test, and is removed from the server when the task ends. Reports are kept for 30 days; anyone holding the report link can open it, so share it deliberately.

A backtest is a calculation on historical data and says nothing certain about future results.

Plain HTTP works too, without MCP

curl -X POST https://www.eaea.ai/mcp/v1/compile \
  -H "Authorization: Bearer YOUR_KEY" -H "Content-Type: application/json" \
  -d '{"source":"void OnTick(){}"}'

curl -X POST https://www.eaea.ai/mcp/v1/backtests \
  -H "Authorization: Bearer YOUR_KEY" -H "Content-Type: application/json" \
  -d '{"source":"...","from":"2026-08-01","to":"2026-11-01","timeframe":"H1","deposit":10000}'

curl https://www.eaea.ai/mcp/v1/backtests/<id> -H "Authorization: Bearer YOUR_KEY"