PineForge — offline PineScript v6 backtest MCP
MCP server by pineforge-4pass Community
Runs PineScript v6 backtests locally through MCP, using a bundled engine that transpiles Pine to C++. Built for traders and developers who want an offline, reproducible check of a strategy against their own OHLCV data.
Install PineForge — offline PineScript v6 backtest MCP
Built from the published package, never by AI.
claude mcp add pineforge-offline-pinescript-v6-backtest -- docker run -i --rm ghcr.io/pineforge-4pass/pineforge-codegen-mcp:v0.9.18Run in your terminal. Add --scope user to use it in every project.
Step-by-step: install PineForge — offline PineScript v6 backtest MCP in Claude Code
{
"mcpServers": {
"pineforge-offline-pinescript-v6-backtest": {
"args": [
"run",
"-i",
"--rm",
"ghcr.io/pineforge-4pass/pineforge-codegen-mcp:v0.9.18"
],
"command": "docker"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
Step-by-step: install PineForge — offline PineScript v6 backtest MCP in Claude Desktop
{
"mcpServers": {
"pineforge-offline-pinescript-v6-backtest": {
"args": [
"run",
"-i",
"--rm",
"ghcr.io/pineforge-4pass/pineforge-codegen-mcp:v0.9.18"
],
"command": "docker"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
Step-by-step: install PineForge — offline PineScript v6 backtest MCP in Cursor
{
"servers": {
"pineforge-offline-pinescript-v6-backtest": {
"args": [
"run",
"-i",
"--rm",
"ghcr.io/pineforge-4pass/pineforge-codegen-mcp:v0.9.18"
],
"command": "docker"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
Step-by-step: install PineForge — offline PineScript v6 backtest MCP in VS Code
codex mcp add pineforge-offline-pinescript-v6-backtest -- docker run -i --rm ghcr.io/pineforge-4pass/pineforge-codegen-mcp:v0.9.18Step-by-step: install PineForge — offline PineScript v6 backtest MCP in Codex
{
"mcpServers": {
"pineforge-offline-pinescript-v6-backtest": {
"args": [
"run",
"-i",
"--rm",
"ghcr.io/pineforge-4pass/pineforge-codegen-mcp:v0.9.18"
],
"command": "docker"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
Step-by-step: install PineForge — offline PineScript v6 backtest MCP in Antigravity CLI
gemini mcp add pineforge-offline-pinescript-v6-backtest docker run -i --rm ghcr.io/pineforge-4pass/pineforge-codegen-mcp:v0.9.18Gemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
Step-by-step: install PineForge — offline PineScript v6 backtest MCP in Gemini CLI
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the pineforge-offline-pinescript-v6-backtest block.
About
PineForge is an MCP server that lets an AI assistant backtest PineScript v6 strategies on the user's machine. The bundled engine image transpiles Pine source to C++ and runs the backtest against an OHLCV CSV, either the user's own file or one fetched from Binance's public API. The source says strategy source and CSVs stay local and that no API key is needed.
The server also offers a grid sweep over inputs and overrides, and a check that compares a TradingView Strategy Tester export with PineForge's run of the same script, trade by trade. It runs as a Docker container over stdio. It suits users who want a deterministic, offline backtest of a Pine strategy rather than an estimate from a language model.
Written from the project's README and checked against it.
Tools it gives your assistant
transpile_pineTranslates a PineScript v6 source into a C++ translation unit without running a backtest.backtest_pineRuns a single backtest of a Pine source against an OHLCV CSV.backtest_pine_gridSweeps a Cartesian grid of inputs and overrides, with one transpile and a backtest per combination.check_tradingview_parityGrades a TradingView Strategy Tester export against PineForge's run of the same script, trade by trade.fetch_binance_ohlcvWrites a backtest-ready CSV from Binance spot or USDT-perp klines.binance_symbolsLists and filters Binance symbols, with a 5-minute in-process cache.list_engine_paramsLists every overrides and runtime knob accepted by the backtest tools.check_pine_featureLooks up whether a Pine identifier or namespace is supported in PineForge.get_coverage_topicReturns full detail and supported, partial and unsupported lists for one Pine v6 coverage topic.engine_infoReports the engine mode and bundled pineforge-release version in the Docker image.
What you need
- Docker
- Outbound network access for the Binance fetch tools
- Node.js 20 or newer for the npm package
Try asking
- Backtest this PineScript v6 strategy on my BTC CSV and count the trades.
- Run a parameter grid sweep on this Pine strategy over my OHLCV file.
- Compare my TradingView trade list export with PineForge's run of the same script.
Good to know
- Needs Docker to run the engine image.
- Implements a subset of PineScript v6.
- Binance tools and the parity check without bars make outbound requests to public endpoints.
- A backtest measures historical behavior and is not investment advice.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to PineForge — offline PineScript v6 backtest MCP
All alternatives →Connects AI assistants to Stripe through the hosted Stripe MCP server at mcp.stripe.com. It is for developers building AI-powered products and businesses on Stripe.
Gives AI assistants market data, technical analysis, backtests, options activity and news sentiment for stocks, crypto, FX and metals. Built for traders and developers using Claude, ChatGPT, Cursor or other MCP clients. Its outputs are informational, not financial advice.
CCXT is an official MCP server for market data and trading across more than 100 exchanges and prediction markets. It is aimed at developers, traders and AI agents.
Calculates over 1400 transparent financial methods from raw statements and exposes them to AI assistants through an MCP server. Suited to analysts and developers who want to see how each metric is computed.
Lets an AI assistant search x402 APIs and pay for them in USDC from a local, non-custodial wallet. Built for people and agents that need to pay APIs per call under spend caps.
Lets AI assistants explore a free database of over 300,000 symbols, including equities, ETFs, funds, indices, currencies and cryptocurrencies, categorised by sector, industry and country. It suits private investors who want to discover products rather than look up fundamentals or stock data.
Compare with mcp, TradingMCP or CCXT
PineForge — offline PineScript v6 backtest MCP: common questions
Does PineForge need an API key?
No. The source says the Docker image runs with no API key and no host Docker daemon, while the npm package needs a running Docker daemon.
Do my strategy source and CSV files leave my machine?
The source says they never leave the machine. Only the Binance tools, and the parity check when run without bars, make outbound requests to public endpoints.
Is PineForge a tool for trading advice?
No. The source says a backtest measures historical behavior, is not a prediction of future returns, and is not investment advice.
How do I install PineForge — offline PineScript v6 backtest MCP?
In Claude Code run claude mcp add pineforge-offline-pinescript-v6-backtest -- docker run -i --rm ghcr.io/pineforge-4pass/pineforge-codegen-mcp:v0.9.18. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is PineForge — offline PineScript v6 backtest MCP the official server?
PineForge — offline PineScript v6 backtest MCP is a community project by pineforge-4pass, not verified by a company domain.
Is PineForge — offline PineScript v6 backtest MCP free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is PineForge — offline PineScript v6 backtest MCP safe to use?
It scores 61 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to PineForge — offline PineScript v6 backtest MCP?
Similar MCP servers: mcp, TradingMCP, CCXT, Finance Toolkit.
Does PineForge — offline PineScript v6 backtest MCP work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
