Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 61
  • 11 stars
  • MIT
  • Updated

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.18

Run 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

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

A

No 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 →
mcp stripe
96

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.

AAA Remote 2.1k
TradingMCPatilaahmettaner
94

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.

AAA Remote 5.4k
CCXTccxt
94

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.

AAA Local 45k
Finance ToolkitJerBouma
94

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.

AAA Local and remote 5.6k
Vapi Network MCP vAPI-Network
94

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.

AAA Local 6.2k
Finance DatabaseJerBouma
94

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.

AAA Local and remote 9.7k

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.

PineForge — offline PineScript v6 backtest MCP Install

Add to stack

Loading.