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

PineForge backtests PineScript v6 strategies locally through MCP. It transpiles Pine to C++ and runs the backtest against an OHLCV CSV, for users who want a reproducible result.

  • 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-backtest-mcp:v0.9.44

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 assistant writes or receives Pine code, and the bundled Docker image transpiles it to C++ and runs the backtest against an OHLCV CSV. The CSV can be the user's own file or data fetched from Binance's public API. The server needs no API key.

The source says strategy source and CSV files stay on the machine. Only the Binance tools, and the parity check when run without bars, make outbound requests. The parity tool grades a TradingView Strategy Tester export against PineForge's run, trade by trade. The server also supports parameter sweeps. It is aimed at traders and developers who want a deterministic backtest instead of a model's estimate.

Written from the project's README and checked against it.

Tools it gives your assistant

  • transpile_pineTranslates a Pine v6 script 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 combinations of inputs and overrides, with one transpile and a backtest per combination.
  • check_tradingview_parityGrades a TradingView Strategy Tester export against PineForge's run, 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_coverage_topicsLists every Pine v6 coverage topic with a one-line status and summary.
  • check_pine_featureChecks whether a Pine identifier or namespace is supported in PineForge.
  • get_coverage_topicReturns full detail and supported, partial and unsupported lists for one topic.
  • list_engine_paramsCatalogs every overrides and runtime knob accepted by the backtests.

What you need

  • Docker
  • Outbound network access for the Binance fetch tools
  • Node.js 20 or later, only for the npm package

Try asking

  • Backtest this PineScript v6 strategy on my BTC CSV file
  • Run a parameter grid sweep on my Pine strategy
  • Check my TradingView trade list against PineForge's run

Good to know

  • Offline use, except the Binance tools and parity checks without bars
  • Implements a subset of PineScript v6
  • Requires Docker to run the engine
  • A backtest is not a prediction of future returns and 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 server needs no API key.

Are my strategy source and CSV files sent anywhere?

The source says they never leave the machine. Only the Binance tools, and check_tradingview_parity when run without bars, make outbound requests to public endpoints.

How closely do PineForge results match TradingView?

The source reports graded parity outcomes, such as 7,983 excellent and 6 strong results out of 7,989 probes for release 1.4.0. It states these are recorded results for that population, not a guarantee for every script.

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-backtest-mcp:v0.9.44. 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.