# Market data and backtests in Claude Code (MCP)

> Add the TradePuffin MCP server to Claude Code with one command: bars, indicators, scans, scripts, backtests and webhook alerts for your research.
Source: https://tradepuffin.com/connect/claude-code

TradePuffin for Claude Code

# Market data and backtests in Claude Code

One command gives Claude Code 37 tools for market analysis. Research a strategy from your terminal: it pulls the bars, writes the indicator or strategy as a script, backtests it across your watchlist, and wires alerts to your own webhook. The chart in your browser shows what it did.

[Start free trial](https://app.tradepuffin.com/signup?ref=site-connect-claude-code)

7-day free trial. You sign in once with OAuth; there are no API keys to paste.

## Set it up

1.  Run `claude mcp add --transport http --scope user tradepuffin https://app.tradepuffin.com/mcp` in your terminal.
2.  In Claude Code, type `/mcp`, pick **tradepuffin** and choose **Authenticate**. Your browser opens to allow it.

## What you’ll see

Keep app.tradepuffin.com open in a browser tab. Each line, level and alert Claude Code adds appears on your chart as it works — here, support, a trend line and an alert on NVDA:

## Try asking

## What Claude Code gets

37 tools, which it picks on its own:

-   **Market data**: prices, quotes and bars for stocks, ETFs, indices, crypto and forex
-   **Analysis**: indicators, watchlist scans, swing points, support and resistance, custom scripts
-   **Backtesting**: a rule tested on years of data, next to buy and hold
-   **The chart**: change your chart, draw on it and look at a picture of it
-   **Alerts**: price, indicator, drawing and move alerts, in the app, by push or by webhook
-   **Watchlists**: create and edit your watchlists

Each is described on the [docs page](https://tradepuffin.com/docs#tools). Not using Claude Code? TradePuffin also works with [Claude](https://tradepuffin.com/connect/claude), [ChatGPT](https://tradepuffin.com/connect/chatgpt), [Cursor](https://tradepuffin.com/connect/cursor), [GitHub Copilot](https://tradepuffin.com/connect/vscode), [Gemini](https://tradepuffin.com/connect/gemini), [Grok](https://tradepuffin.com/connect/grok), [Perplexity](https://tradepuffin.com/connect/perplexity), [Grok Bot](https://tradepuffin.com/connect/grok-bot), [Muse by Meta](https://tradepuffin.com/connect/muse), [OpenClaw](https://tradepuffin.com/connect/openclaw), [Hermes Agent](https://tradepuffin.com/connect/hermes) and [Codex](https://tradepuffin.com/connect/codex), and with any other MCP client.

[Start free trial](https://app.tradepuffin.com/signup?ref=site-connect-claude-code-end)[See pricing](https://tradepuffin.com/pricing)
