Reamer Research MCP server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Reamer Research MCP server write an ATR band strategy, backtest it on SAMPLE_5min.csv, and run Monte Carlo"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Reamer Research MCP server
An MCP server and Claude Code plugin for Reamer Research, a backtesting and live trading engine for Python and C++. Your AI assistant writes a strategy file, backtests it on your bars, reads every closed trade, runs Monte Carlo and opens the run in visual trade diagnostics, all on your own machine.
Works with Claude Code, Claude Desktop, Cursor and any client that speaks MCP over stdio.
Tools
Tool | What it does |
| Finds the installed engine: version, default settings, Evaluation Mode limits. |
| The strategy API, order functions and every setting, for writing a strategy. |
| Runs a strategy file on CSV or |
| Every round trip of a run, sorted and paged. |
| Resamples a run's per-trade returns into loss, ruin and drawdown statistics. |
| Every value the strategy printed, stamped with its bar's time. |
| Opens the run in visual trade diagnostics: each trade on its own bars, beside every value the strategy printed. |
Each backtest runs in its own process under the Python that has the engine,
so anything a strategy prints stays out of the MCP connection. Runs are
stored in ~/.cache/reamer-research-mcp/runs/ (REAMER_MCP_RUNS moves it),
each with the full JSON report and the trade diagnostics page.
Related MCP server: OpenFinClaw CLI
Install
The server installs the engine,
reamer-research from PyPI, with
itself: no download, key or sign-up. Linux x86-64, macOS on Apple silicon,
Windows through WSL2. Add it in one of these ways.
Claude Code plugin, which also adds a Reamer Research skill (needs uv):
claude plugin marketplace add reamerlabs/reamer-research-mcp
claude plugin install reamer-research@reamerlabsClaude Code, server only:
claude mcp add reamer-research -- uvx reamer-research-mcpClaude Desktop, Cursor and other clients, in the client's MCP config:
{
"mcpServers": {
"reamer-research": {
"command": "uvx",
"args": ["reamer-research-mcp"]
}
}
}Without uv, pip install reamer-research-mcp and use reamer-research-mcp
as the command.
To use an engine you installed elsewhere instead (a virtual environment with
pip install reamer-research, or the kit's wheel), point REAMER_PYTHON at
that environment's Python:
"env": { "REAMER_PYTHON": "/home/you/venv/bin/python" }The server needs Python 3.10 or later. The engine runs on Python 3.9 or later.
Try it
Ask your assistant:
Download https://raw.githubusercontent.com/reamerlabs/reamer-research-examples/main/python/sample_data/AAPL.csv, write an ATR band reversion strategy for Reamer Research, backtest it on that file with a 0.005 commission and a 0.01 spread, show me the five worst trades and run Monte Carlo.
Evaluation Mode
Without a licence, each backtest runs on one ticker over at most 30 days or
50,000 bars, whichever comes first, and live trading is off. A run past a
limit returns an error that names the limit. A
Reamer Research licence is $20 per seat per
month and removes every limit; activate it once per machine with
bin/reamer-license from the full kit, and
the same strategy files run unchanged.
Links
Licence
This server, the plugin and the skill are under the MIT licence. The engine is commercial software under the Reamer Labs Software License Agreement, installed from PyPI as a dependency.
Support: open an issue at github.com/reamerlabs/reamer-research/issues, or email support@reamerlabs.com (best effort).
Available Tools
7 toolsapi_referenceA
The Reamer Research API: how to write a strategy and call it. topic is one of strategy, data, orders, settings, data_files, results, evaluation_mode, live, install; leave it out for everything. Read it before writing a strategy file.
Inputs: topic. Returns: result
backtestA
Run a Reamer Research backtest.
strategy_file: path to a Python file defining on_bar(data) as a function, a class or an object (see api_reference). Relative paths resolve against the server's working directory. data: a .csv or .bin path, a list of them, or {ticker: path}. A ticker is named after its file. strategy_name: which global in the file to run, when it defines several. lookback: bars per on_bar window; defaults to the strategy's lookback, else 1. start, end: epoch seconds UTC, inclusive; only bars in that range run. settings: rr.backtest settings such as initial_capital, commission_per_unit, spread, slippage, price_volatility, leverage, rng_seed. Costs default to 0. ticker_config: {ticker: {setting: value}} where one ticker's costs differ.
Returns the summary metrics and a run_id for closed_trades, monte_carlo, printed_output and open_trade_diagnostics.
Inputs: data (required), strategy_file (required), end, start, +5 more.
closed_tradesB
The closed trades of a backtest run: ticker, side, open and close time, entry and exit price, qty, gross and net P&L, fees, slippage, return_pct, stop_loss, take_profit. sort_by is any of those fields (for example net_pnl with descending=True for the best trades). Paged by limit and offset.
Inputs: run_id (required), limit, offset, ticker, +2 more.
engine_statusA
Check that the Reamer Research engine is installed. Returns the engine version, the Python it runs under, its default settings, the Evaluation Mode limits and where runs are stored, or install instructions.
Inputs: no named parameters.
monte_carloB
Monte Carlo on a backtest run: resamples its per-trade returns into loss, ruin and maximum-drawdown statistics. Reruns the stored backtest, which gives the same trades to the byte, then simulates.
Inputs: run_id (required), seed, timeout_s, simulations.
open_trade_diagnosticsA
Open a run in visual trade diagnostics, a page that charts every closed trade on its own bars beside every value the strategy printed, with the console lines for each bar and a Monte Carlo simulation. Returns the page's path; opens it in the browser unless open_browser is False.
Inputs: run_id (required), open_browser.
printed_outputB
What the strategy printed during a run, one JSON line per print, stamped with the bar's time. Use it to see the values behind each decision.
Inputs: run_id (required), limit, offset.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Each tool targets a distinct artifact: engine/install status, API docs, backtest execution, closed trades, Monte Carlo stats, strategy prints, and a visual diagnostics page. The only mild overlaps are engine_status vs. api_reference (both informational) and monte_carlo vs. open_trade_diagnostics (the diagnostics page also shows a Monte Carlo), but descriptions make the boundaries clear.
All seven names are lowercase snake_case and descriptive, with noun-phrase naming dominating (engine_status, closed_trades, monte_carlo, printed_output, api_reference). Only open_trade_diagnostics breaks into a verb-first phrase while backtest is a bare term, a minor deviation in an otherwise predictable scheme.
Seven tools is well within the ideal 3-15 range and each earns its place: setup/docs, execution, three result-inspection views, and a visualization step. Nothing feels padded or redundant for a backtesting research engine.
The core run-to-inspect loop (status, docs, backtest, trades, Monte Carlo, prints, diagnostics) is covered, but there is no way to enumerate or revisit past runs by name, no equity-curve/time-series results, no open-position listing, and no live-trading tools even though api_reference documents a live topic.
Maintenance
Related MCP Connectors
Trading MCP server for AI agents, with live market data, account reads and controlled execution.
Create and manage trading strategies, bots, webhooks and signals from any MCP client.
MCP server for OpenMM — exposes market data, account, trading, and strategy tools to AI agents
MCP server exposing the Backtest360 engine API as tools for AI agents.
Related MCP Servers
- AlicenseAqualityBmaintenanceMCP server for the FLOX trading framework. About 30 tools to run backtests, scaffold strategies, validate for lookahead bias, compute indicators, place orders, and query PnL from Claude/Cursor.38187 PyPI231MIT
- FlicenseNot gradedqualityDmaintenanceEnables quant research, strategy generation, backtesting, and paper trading from natural language prompts, integrating with AI agents via an MCP server.24-
- AlicenseBqualityDmaintenanceLocal-first MCP server for building and running reproducible Backtrader strategies offline, with tools to inspect datasets, manage drafts, and execute backtests via controlled subprocess runs. It supports multiple hosts including Claude, Codex, OpenCode, and OpenClaw through stdio.301MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to run a full quant research workflow over MCP: pulling data, authoring and backtesting strategies, running statistical validation and risk checks, and recording findings for future sessions.1MIT