# TradeSearcher

> TradeSearcher is a freemium MCP server for trading analysis. MCP server that lets coding agents search TradeSearcher trading strategies and backtests. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Freemium
- **Platforms:** API, CLI, Web
- **Repository:** https://github.com/vnguyen42/tradesearcher-agent-tools
- **License:** MIT
- **MCP Registry name:** ai.tradesearcher/mcp-server
- **Categories:** [trading analysis](https://ai-powered.com/categories/trading-analysis)
- **Listing updated:** 2026-11-27

## About

TradeSearcher's MCP server connects AI coding assistants such as Claude Code, Cursor and Codex to the TradeSearcher strategy library. Once an agent is connected, it can look up strategies and existing backtest results without leaving the editor, so research happens alongside the code being written.

The server runs locally over stdio through npm and authenticates with a personal API key created in the TradeSearcher account settings. A companion command-line tool offers the same search, backtest, strategy and export commands for terminal use, including exporting a backtest's strategy as Pine Script source.

The package suits traders and quantitative developers who already use TradeSearcher and want agents to filter candidate strategies by metrics such as Sharpe ratio, profit factor, ROI and robustness. Some high-performance backtests are only visible on the premium plan.

## Features

- **Strategy and backtest search:** Search strategies by symbol and sort results by metrics such as Sharpe ratio, profit factor, ROI or robustness.
- **Backtest detail lookup:** Retrieve a backtest with optional trade lists and equity data for a closer review.
- **Pine Script export:** Export the Pine source text of a backtest strategy to a file.
- **Strategy comparison:** Compare two backtests side by side from the agent or the command line.
- **Local stdio setup:** Runs through npx with a single JSON entry and a personal API key in the environment.
- **Machine-readable command schemas:** Prints JSON schemas for each CLI command so agents can call them correctly.

## Good for

- Shortlisting trading strategies for a symbol from inside a coding agent
- Reviewing a backtest's trades and metrics before deciding to use a strategy
- Exporting a promising strategy's Pine Script for further testing in TradingView
- Comparing two backtests on the same market before choosing one

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add mcp-server --env TRADESEARCHER_API_KEY='<TRADESEARCHER_API_KEY>' -- npx -y @tradesearcher/mcp-server
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

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

### Claude Desktop (claude_desktop_config.json)

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

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

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

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@tradesearcher/mcp-server"
      ],
      "env": {
        "TRADESEARCHER_API_KEY": "<TRADESEARCHER_API_KEY>"
      }
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add mcp-server --env TRADESEARCHER_API_KEY='<TRADESEARCHER_API_KEY>' -- npx -y @tradesearcher/mcp-server
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.mcp-server]
command = "npx"
args = ["-y", "@tradesearcher/mcp-server"]
env = { TRADESEARCHER_API_KEY = "<TRADESEARCHER_API_KEY>" }
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

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

Or run: gemini mcp add -s user -e TRADESEARCHER_API_KEY='<TRADESEARCHER_API_KEY>' mcp-server npx -- -y @tradesearcher/mcp-server

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

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

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

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

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

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

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@tradesearcher/mcp-server"
      ],
      "env": {
        "TRADESEARCHER_API_KEY": "<TRADESEARCHER_API_KEY>"
      }
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

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

The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

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

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

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

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

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

## FAQ

### How is the server installed?

Add a JSON entry that runs npx with the package @tradesearcher/mcp-server and set the TRADESEARCHER_API_KEY environment variable.

### Do I need an account?

Yes. The server requires a personal API key created in your TradeSearcher account settings.

### Are all backtests available on free accounts?

No. Free accounts hide high-performance backtests with a profit factor above 3; the premium plan shows them along with more results and recent trades.

### How do I add TradeSearcher to Claude Code?

Run this command in your terminal: claude mcp add mcp-server --env TRADESEARCHER_API_KEY='<TRADESEARCHER_API_KEY>' -- npx -y @tradesearcher/mcp-server

### What are the best alternatives to TradeSearcher?

The closest alternatives to TradeSearcher are TradeOS (test), AlgoRover Research, Tactfolio, Algo Trade Analytics and Helvetic Research.

## Where this comes from

- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [TradeOS (test)](https://ai-powered.com/mcp/tradeos-test): TradeOS (test) is an MCP server for sports data.
- [AlgoRover Research](https://ai-powered.com/mcp/algorover-research): AlgoRover Research is an MCP server for trading analysis.
- [Tactfolio](https://ai-powered.com/mcp/tactfolio): Tactfolio is a freemium MCP server for trading analysis.
- [Algo Trade Analytics](https://ai-powered.com/mcp/algo-trade-analytics): Algo Trade Analytics is a freemium MCP server for analytics and data.
- [Helvetic Research](https://ai-powered.com/mcp/helvetic-research): Helvetic Research is a freemium MCP server for trading analysis.
- [XTester Studio](https://ai-powered.com/mcp/xtester-studio): XTester Studio is an MCP server for trading analysis.
- [Universal Quant Tournament MCP](https://ai-powered.com/mcp/universal-quant-tournament-mcp): Universal Quant Tournament MCP is an open-source MCP server for trading analysis.
- [Strategy Lab by Stocks Developer](https://ai-powered.com/mcp/strategy-lab-by-stocks-developer): Strategy Lab by Stocks Developer is a free MCP server for finance and payments.

---
Source: https://ai-powered.com/mcp/tradesearcher
