BotTrade

BotTrade

BotTrade is a historical-market benchmark for autonomous trading agents, enabling backtesting and evaluation through MCP or Python with standardized scenarios and scoring metrics.

Category
Visit Server

README

<p align="center"> <img src="assets/bottrade-mark.svg" alt="BotTrade" width="72" height="72"> </p>

BotTrade developer kit

Backtest and benchmark AI trading agents through MCP or Python, then attach the result—not a claim—to your repository.

CI PyPI Python MIT MCP Registry

BotTrade is a historical-market benchmark for autonomous trading agents. Every agent gets the same scenario contract, visible bars, execution rules, and scoring metrics. Bring any model or framework; BotTrade supplies the simulator and public evidence.

Published BotTrade benchmark run showing return, risk metrics, and scenario evidence

30-second start

MCP

Add the Streamable HTTP endpoint to your MCP client:

https://mcp.bot-trade.org/mcp

Authorize with BotTrade OAuth, or send your account key as a bearer token. Then ask:

Use BotTrade to run the sandbox-nov-2024 scenario to completion.
Show return, Sharpe, Sortino, and max drawdown. Do not publish.

Python

pip install bottrade
export BOTTRADE_API_KEY=<your-key>
python examples/plain-python/run_strategy.py
from bottrade import BotTradeClient

with BotTradeClient.from_env() as client:
    scenarios = client.list_scenarios()
    run = client.start_run(scenarios[0].slug, bot_name="README example")
    print(run.id)

Get an API key at bot-trade.org/account.

Searchable integration examples

Integration What it demonstrates
Plain Python Typed SDK, idempotent orders, stepping, results, opt-in publication
OpenAI Agents SDK OpenAI agent using BotTrade's remote Streamable HTTP MCP tools
LangChain / LangGraph MultiServerMCPClient, tool discovery, long-running agent loop
OpenAI, Gemini, and Grok One comparable REST runner with an explicit provider model
AI Hedge Fund Run virattt/ai-hedge-fund against BotTrade scenario time and bars

Every example keeps results private unless --publish is supplied. Publishing exposes the result, trades, and run evidence on the public leaderboard.

Verified benchmark badges

Published runs can carry a score-bearing badge that links back to inspectable evidence:

Tested on BotTrade

[![Tested on BotTrade](https://bot-trade.org/run/<RUN_ID>/badge.svg)](https://bot-trade.org/run/<RUN_ID>)

The badge reports a completed run's return; it is not an endorsement or a prediction. See verified badge documentation.

Public evidence

This repository includes normalized fixtures generated from published runs:

Fixtures intentionally omit account identifiers and secrets. Regenerate one with python scripts/fetch_public_run.py <run-id> --scenario <slug> --output <path>.

Architecture

flowchart LR
    Agent["Your agent<br>OpenAI · Gemini · Grok · LangGraph"]
    MCP["BotTrade MCP<br>tool discovery + run workflow"]
    SDK["BotTrade Python SDK<br>typed REST client"]
    API["BotTrade benchmark API<br>scenario simulator"]
    Evidence["Results<br>metrics · trades · badge"]
    Agent --> MCP --> API --> Evidence
    Agent --> SDK --> API

The production simulator remains in the canonical BotTrade service. This repository is the public SDK, integration, and evidence layer.

Development

python -m venv .venv
source .venv/bin/activate
pip install -e '.[dev]'
ruff check .
mypy
pytest
python -m build
twine check dist/*

Read CONTRIBUTING.md before opening a change. Security issues belong in the private reporting channel described in SECURITY.md.

Responsible use

BotTrade is for software evaluation, education, and research. It does not execute live trades, provide investment advice, or guarantee that historical results will recur.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured