# Market data and backtests in Codex (MCP) — TradePuffin

> Add the TradePuffin MCP server to Codex: bars, indicators, scans, strategy scripts, backtests and webhook alerts for your research.
Source: https://tradepuffin.com/connect/codex

TradePuffin for Codex

# Market data and backtests in Codex

Two commands give Codex 37 tools for market analysis. It pulls the bars, writes an indicator or strategy as a script, backtests it across your watchlist and wires alerts to your own webhook, while the chart in your browser shows what it did.

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

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

## Set it up

1.  Run `codex mcp add tradepuffin --url https://app.tradepuffin.com/mcp`. Your browser opens to sign in to TradePuffin.
2.  In the Codex app instead: **Settings → MCP servers → Add server → Streamable HTTP**, paste the URL, save, then **Authenticate**.

## What you’ll see

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

## Try asking

## What Codex 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 Codex? TradePuffin also works with [Claude](https://tradepuffin.com/connect/claude), [ChatGPT](https://tradepuffin.com/connect/chatgpt), [Claude Code](https://tradepuffin.com/connect/claude-code), [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) and [Hermes Agent](https://tradepuffin.com/connect/hermes), and with any other MCP client.

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