logo
Developers
For developers & AI coding agents

TradeSearcher in your coding agent

Query TradeSearcher's strategies and backtests directly from Claude Code, Cursor, Codex, or the terminal. Install the CLI or the MCP server and let your agent search, compare, and export Pine source for you.

Claude CodeCursorCodexVS Code

Three steps

Step 1

Create an API key

Generate a key from your account. Free accounts work with limited results.

Step 2

Install

Add the MCP server in one click, or install the CLI with a single npm command.

Step 3

Ask your agent

“Find strong BTCUSD swing backtests” — your agent uses the tools and answers with real data.

Add the MCP server

Paste your API key to personalize the snippets and one-click links below. It stays in your browser — nothing is sent anywhere.

Using a placeholder for now — replace YOUR_TRADESEARCHER_API_KEY with your key after installing.

Add to CursorAdd to VS Code

Claude Code is a terminal tool — paste the copied claude mcp add command into your shell to install.

Or paste this into any MCP client's config

{
  "mcpServers": {
    "tradesearcher": {
      "command": "npx",
      "args": [
        "-y",
        "@tradesearcher/mcp-server"
      ],
      "env": {
        "TRADESEARCHER_API_KEY": "YOUR_TRADESEARCHER_API_KEY"
      }
    }
  }
}

Or use the CLI

The same data from your terminal or scripts. Install globally, authenticate once, then run commands or pipe them into your own tooling.

npm install -g @tradesearcher/cli
tradesearcher auth login
tradesearcher search BTCUSD --sort sharpeSearch backtests for a symbol, sorted by Sharpe.
tradesearcher best AAPLRanked shortlist of the best backtests for a symbol.
tradesearcher backtest 12345 --details --tradesInspect one backtest with stats and recent trades.
tradesearcher strategy 6789 --sourceRead a strategy's metadata and Pine source when available.
tradesearcher export 12345 --pine --out strategy.pineExport Pine source for a backtest to a file.
tradesearcher compare 12345 67890Compare final candidate backtests side by side.

Tools your agent gets

search_symbols

Map short inputs like AAPL to full symbols like NASDAQ:AAPL.

search_backtests

Search backtests by market, timeframe, and minimum metrics.

get_best_for_symbol

Get the top ranked backtests for a symbol.

get_backtest

Fetch one backtest, optionally with trades and equity curve.

get_strategy

Get strategy metadata and optional Pine source code.

compare_backtests

Compare selected backtests in compact form.

get_account_status

Show the current account tier, limits, and upgrade link.

Free vs Premium

Free accounts can test the tools with limited results and hide high-performance backtests. Premium unlocks stronger backtests, more results, recent trades, and full strategy details — through the same tools. Upgrade to Premium.

Resources