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.
Three steps
Install
Add the MCP server in one click, or install the CLI with a single npm command.
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.
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_symbolsMap short inputs like AAPL to full symbols like NASDAQ:AAPL.
search_backtestsSearch backtests by market, timeframe, and minimum metrics.
get_best_for_symbolGet the top ranked backtests for a symbol.
get_backtestFetch one backtest, optionally with trades and equity curve.
get_strategyGet strategy metadata and optional Pine source code.
compare_backtestsCompare selected backtests in compact form.
get_account_statusShow 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.