For AI assistants · free hosted MCP + local Docker

Backtest Pine strategies from Claude, Cursor, or any MCP client.

Two ways to connect: (1) free hosted endpoint — Streamable HTTP at https://mcp.pineforge.dev/mcp, no install, no key, 100 backtests/week, last 13 months of crypto data; (2) local Docker — bring your own OHLCV, engine bundled, nothing leaves your machine.

Hosted (fastest start)
claude mcp add --transport http pineforge https://mcp.pineforge.dev/mcp

No Docker, no install. Free — 100 backtests/week per IP. Last 13 complete months of crypto OHLCV included. Join the waitlist to unlock the API-key tier (full history + higher limits).

Local Docker (your own data)
docker run --rm -i -v "$PWD:/work" ghcr.io/pineforge-4pass/pineforge-codegen-mcp:latest

Requires Docker. Mount a working dir at /work for your CSVs — no API key, the engine is bundled in the image.

Privacy

Hosted: your Pine source is sent to mcp.pineforge.dev for backtesting; OHLCV is served from our dataset — no local files needed.

Your Pine source and OHLCV never leave your machine — transpile and backtest both run inside the container, offline. No API key, nothing crosses the network.

Client setup

Works with any MCP-aware client.

Claude Desktop

Add to your claude_desktop_config.json (Settings → Developer → Edit Config). No API key — the engine is bundled in the image.

Hosted (fastest start)
{
  "mcpServers": {
    "pineforge": {
      "type": "http",
      "url": "https://mcp.pineforge.dev/mcp"
    }
  }
}
Local Docker (your own data)
{
  "mcpServers": {
    "pineforge-local": {
      "command": "docker",
      "args": [
        "run", "--rm", "-i",
        "-v", "${workspaceFolder}:/work",
        "ghcr.io/pineforge-4pass/pineforge-codegen-mcp:latest"
      ]
    }
  }
}
Claude Code CLI

One-shot register the server with the claude CLI:

Hosted (fastest start)
claude mcp add --transport http pineforge https://mcp.pineforge.dev/mcp
Local Docker (your own data)
claude mcp add pineforge-local \
  -- docker run --rm -i -v "$PWD:/work" ghcr.io/pineforge-4pass/pineforge-codegen-mcp:latest
Cursor

Settings → MCP → New MCP Server → paste the Claude Desktop JSON config above.

Exposed tools

Eight tools, two surfaces.

nameruns oncostwhat it does
backtest_pinehosted · local100/week (hosted) · free (local)Transpile + compile + run against hosted data or your CSV. Returns the full report.
fetch_ohlcvhosted · localfreePull spot or USDT-perp OHLCV into a backtest-ready CSV.
binance_symbolshosted · localfreeDiscover/validate Binance symbols (cached). Filter by quote, status, contract type.
list_engine_paramshosted · localfreeCatalog every strategy override + runtime knob the backtests accept. Zero I/O.
engine_infohosted · localfreeReport the engine: mode, baked-in flag, version.
join_waitlisthostedfreeJoin the waitlist to unlock the API-key tier — full OHLCV history and higher limits.
check_quotahostedfreeSee how many backtests you have left this week (hosted).
latest_newshostedfreePull recent market headlines for context.
Environment variables
variabledefaultpurpose
PINEFORGE_ALLOW_ANYWHERE1Allow OHLCV paths outside the working dir. The container image sets this to 1.
PINEFORGE_DOCKER_TIMEOUT_MS120000Hard kill (ms) for an engine run. Defaults to 2 minutes.
Get started

Connect + start prompting.

Connect the hosted MCP in one command — or docker run for local. Either way, no API key. Hosted: 100 backtests/week free. Local: unlimited, bring your own data.

Try the hosted MCP (free) →
claude mcp add --transport http pineforge https://mcp.pineforge.dev/mcp

Want to build a strategy by hand? Start with the open runtime