Skip to content
verify mcp Beta VerifyMCP is currently in beta. If you notice any issues, get in touch and we’ll put it right.

PineForge — offline PineScript v6 backtest MCP

OCI · GHCR.IO/PINEFORGE-4PASS/PINEFORGE-BACKTEST-MCP:V0.9.27 · SCANNED AUG 22

Offline PineScript v6 → C++ backtests at deterministic TradingView parity, run locally via MCP.

+4 this week 41 Trust /100
Trust breakdown (6 categories)

How this component scores in each security and reliability category. Every signal is checked automatically from public evidence about the published package, including repeated runs of it in an isolated sandbox, and we only credit what we can confirm. How we score →

Supply Chain Security0
  • Malware scan not yet available for this package.Unverified
  • Known CVEs could not be checked: this artifact ships no SBOM, so there is no dependency list to read. Publishing one would let us assess it.Unverified
  • Install-script risk not yet assessed.Unverified
  • Dependency health could not be checked: this artifact ships no SBOM, so there is no dependency list to read. Publishing one would let us assess it.Unverified
Provenance & Transparency45
Schema Quality & AI Usability63
  • AI-judged instruction clarity (excellent).Pass
  • Context-footprint check failed: tool/resource definitions use about 2863 tokens (~286/item across 10 items; 10 tools + 0 resources), over budget; trim descriptions and params. See how to fix → Fail
  • Usage-examples check failed: none of the tools include examples. See how to fix → Fail
Stability & Change Management30
  • Stability observed for 9 of 30 days with no destabilising changes; credit accrues until the full window elapses.Partial
Tool Coverage100
  • 100% of tools have a non-trivial description (not blank, and not just the tool's name).Pass
  • 100% of tool parameters carry a description.Pass
Capabilities100
  • Implements a supported MCP spec version (2025-11-25); the latest is 2026-07-28.Pass

Unverified: 1 category

A category scored 0 because we could not verify it: a data source with nothing on this package, evidence we could not reach, or a check we could not run. We only credit what we can confirm.

Install

Add this component to your MCP client. Where a client-specific snippet is available, pick your client below and copy it straight into your config; otherwise use the connection detail shown.

oci · ghcr.io/pineforge-4pass/pineforge-backtest-mcp:v0.9.27

# add to Claude Code
claude mcp add pineforge-4pass-pineforge-backtest-mcp -- docker run --rm -i ghcr.io/pineforge-4pass/pineforge-backtest-mcp:v0.9.27
# add to Codex CLI
codex mcp add pineforge-4pass-pineforge-backtest-mcp -- docker run --rm -i ghcr.io/pineforge-4pass/pineforge-backtest-mcp:v0.9.27
// opencode.json
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "pineforge-4pass-pineforge-backtest-mcp": {
      "type": "local",
      "command": [
        "docker",
        "run",
        "--rm",
        "-i",
        "ghcr.io/pineforge-4pass/pineforge-backtest-mcp:v0.9.27"
      ],
      "enabled": true
    }
  }
}
# ~/.hermes/config.yaml
mcp_servers:
  pineforge-4pass-pineforge-backtest-mcp:
    command: "docker"
    args: ["run", "--rm", "-i", "ghcr.io/pineforge-4pass/pineforge-backtest-mcp:v0.9.27"]
// mcp.json
{
  "mcpServers": {
    "pineforge-4pass-pineforge-backtest-mcp": {
      "command": "docker",
      "args": [
        "run",
        "--rm",
        "-i",
        "ghcr.io/pineforge-4pass/pineforge-backtest-mcp:v0.9.27"
      ]
    }
  }
}
Changelog

Every change we have recorded for this component, newest first. Security-relevant changes are always shown. ▲ marks a change for the better, ▼ a change for the worse; unmarked changes are neutral.

  • 21 Aug 26 +4
    • Stability: unverified → 0.27 functional
  • 17 Aug 26 0
    • Security disclosure: unverified → fail functional
  • 16 Aug 26 0
    • Security disclosure: fail → unverified functional
  • 13 Aug 26 37

    First indexed and scored.

Diagnostics

Diagnostic detail from the automated scan of this channel: what the scanner observed at each step, so you can see exactly where a check passed or failed. It is informational only and never changes the trust score.

Captured 22 Aug 2026 · Analysed oci/ghcr.io/pineforge-4pass/pineforge-backtest-mcp:v0.9.27

Provenance No attestation

The registry publishes no build provenance for this version, so there is nothing to verify.

Result No attestation
Ecosystem oci
Reason No attestation published
MCP tools · 10 exposed · ~2,610 tokens

The tools this component advertises to a client, with an estimated token cost for each. Expand a tool to see its parameters and schema. The per-tool counts are indicative and are not scored directly; the schema's total context footprint is one signal in Schema Quality & AI Usability.

Tool Tokens
backtest_pine ~652

Run a real, deterministic backtest of a PineScript v6 strategy — prefer this over estimating its trades or P&L by reasoning, which is unreliable for Pine (series semantics, intrabar fills, and strategy.* order logic do not reproduce from approximation). Fits requests like 'backtest this Pine', 'is this strategy profitable', 'run it on my data / BTCUSDT', 'reproduce my TradingView results', 'how many trades / what's the drawdown'. Transpile a PineScript v6 strategy and run it against an OHLCV CSV via the bundled pineforge-release (in-process, no host Docker daemon). Fully local — transpile + backtest run in this image; nothing leaves the box, no API key. Optional `inputs` overrides input.*() named values from the Pine source (keys = the second arg of input.*(...) calls, e.g. 'Fast Length'). Optional `overrides` overrides strategy(...) header fields (initial_capital, commission_value, default_qty_value, pyramiding, slippage, default_qty_type, commission_type, process_orders_on_close). Returns the parsed JSON report (summary, trades, applied_inputs, applied_overrides, elapsed_seconds). If the report is too large to return inline it is written to report_path and a compact summary (with that path) is returned instead. Use backtest_pine_grid for sweeps.

NameTypeReqDescription
imagestringDocker image override. Defaults to ghcr.io/pineforge-4pass/pineforge-release:latest.
inputsobjectMap of Pine input.*() names → value (string/number/bool). Sent as PINEFORGE_INPUTS env var to the runtime.
ohlcv_csv_pathstringyesAbsolute or cwd-relative path to OHLCV CSV with header 'timestamp,open,high,low,close,volume' (timestamp = UNIX ms UTC).
overridesobjectstrategy(...) header overrides. Each key maps to a single argument of the Pine `strategy()` call; only the keys you set are applied. Sent as PINEFORGE_OVERRIDES env var. Call list_engine_params for t…
report_pathstringWhere to write the full JSON report IF it is too large to return inline. Large backtests (long trade lists + equity curves) are offloaded to this file and the tool returns a compact summary + report_…
runtimeobjectEngine runtime args (NOT strategy() header) controlling timeframe semantics and intra-bar fill simulation. input_tf / script_tf set the chart and strategy timeframes — script_tf must be coarser than…
sourcestringyesPineScript v6 source.

No output schema declared.

No examples provided.

backtest_pine_grid ~615

Use when the user wants to optimize, sweep, tune, or compare PineScript parameter values (e.g. 'try fast length 8/12/19', 'find the best commission/qty settings') rather than test a single configuration — for one fixed configuration use backtest_pine. Run a parameter sweep: transpile the Pine source ONCE (in-process, no host Docker), then re-run the same compiled strategy against the OHLCV CSV across the cartesian product of `inputs` × `overrides` grids. Returns a ranked list of {inputs, overrides, summary, elapsed_seconds} entries sorted by `sort_by` descending, plus the top entry under `best`. Cap: max_combinations (default 64). Set concurrency > 1 to run backtests in parallel — 2-4 is usually plenty.

NameTypeReqDescription
concurrencyintegerParallel backtests. Default 1.
fixed_inputsobjectInputs applied to every combo (overridden by per-combo `inputs` keys).
fixed_overridesobjectOverrides applied to every combo (overridden by per-combo `overrides` keys).
imagestringDocker image override. Defaults to ghcr.io/pineforge-4pass/pineforge-release:latest.
include_tradesbooleanInclude the per-trade list in each result. Default false (saves tokens).
inputsobjectGrid of input.*() names → list of values to sweep. Example: {"Fast Length": [8, 12, 19], "Slow Length": [21, 26, 39]}
max_combinationsintegerHard cap on combinations. Default 64.
ohlcv_csv_pathstringyesPath to OHLCV CSV (same format as backtest_pine).
overridesobjectGrid of strategy(...) header overrides → list of values, one axis per key. Example: {"default_qty_value": [1, 5], "commission_value": [0.04]}. Call list_engine_params for the full catalog with types…
report_pathstringWhere to write the full sweep JSON IF it is too large to return inline. Oversized sweeps are offloaded here and the tool returns the best + top-ranked combinations + report_path; read the file for al…
runtimeobjectEngine runtime args applied to every combo in the sweep. Same shape as backtest_pine.runtime — input_tf / script_tf / bar_magnifier / magnifier_samples / magnifier_dist. Currently fixed across the gr…
sort_bystringsummary.* field to rank by, descending. Default net_pnl.
sourcestringyesPineScript v6 source.

No output schema declared.

No examples provided.

binance_symbols ~220

List/validate symbols available on the Binance public API for OHLCV fetching. Filters: `query` (substring of the symbol), `quote_asset` (e.g. 'USDT'), `base_asset` (e.g. 'BTC'), `status` (e.g. 'TRADING'), `contract_type` (futures only, e.g. 'PERPETUAL'). Results are cached 5 min in process. Free.

NameTypeReqDescription
base_assetstringFilter by base asset (e.g. 'BTC').
contract_typestringFutures only. 'PERPETUAL' for usdt_perp swaps.
limitintegerMax symbols to return. Default 200.
marketstringyes'spot' or 'usdt_perp'.
querystringCase-insensitive substring of the symbol.
quote_assetstringFilter by quote asset (e.g. 'USDT').
statusstringFilter by status. 'TRADING' returns active only.

No output schema declared.

No examples provided.

check_pine_feature ~219

Answer "does PineForge support X?" for a specific Pine v6 identifier or namespace (e.g. 'ta.supertrend', 'alert', 'array.new', 'request.financial'). Use it (a) BEFORE relying on any function you are unsure about while writing a strategy, and (b) to DIAGNOSE a backtest that compiled but behaved wrong or empty — visual & alert APIs (plot, label, line, box, table, alert) are parsed-and-skipped and produce NO effect. Resolves by exact feature match, then longest namespace prefix, then alias, returning {query, status, topic, note} where status is supported / partial / unsupported / via_transpiler / not_found (via_transpiler = works end-to-end; unsupported = skipped or rejected). Local, free, no engine run.

NameTypeReqDescription
featurestringyesPine identifier or namespace to look up, e.g. 'ta.supertrend', 'alert', 'array.new', 'strategy.entry', 'request.dividends'.

No output schema declared.

No examples provided.

engine_info ~38

Report the bundled backtest engine: mode, baked-in flag, and version. This image runs the engine in-process (no host Docker daemon needed).

Input schema present but exposes no named parameters.

No output schema declared.

No examples provided.

fetch_binance_ohlcv ~268

Fetch OHLCV candles from Binance public API and write a backtest-ready CSV (header: timestamp,open,high,low,close,volume; timestamp = open time in UNIX ms UTC). Supports `spot` and `usdt_perp` (USDT-margined perpetual futures). Requests larger than 1000 bars are paginated automatically. The output path must live inside the MCP cwd unless PINEFORGE_ALLOW_ANYWHERE=1.

NameTypeReqDescription
end_timeintegerUNIX ms UTC. Defaults to now.
intervalstringyesKline interval. Spot supports 1s + 1m..1M; usdt_perp supports 1m..1M (no 1s).
limitintegerTotal bars to fetch. Default 1000. Paginated above 1000.
marketstring'spot' (default) or 'usdt_perp'.
output_pathstringyesPath to write the CSV (will create parent dirs as needed).
start_timeintegerUNIX ms UTC. If unset, derived from end_time/now and limit.
symbolstringyesBinance symbol, e.g. 'BTCUSDT'. Use binance_symbols to validate.

No output schema declared.

No examples provided.

get_coverage_topic ~155

Returns the full detail plus the exact supported[] and unsupported[] feature lists for ONE coverage topic id (ids from list_coverage_topics, e.g. 'ta', 'strategy_orders', 'request_security', 'drawing_plotting_alerts'). Use when you are about to work in a feature area and need to know precisely which functions there are implemented vs skipped — e.g. before using request.security, the ta.* library, or strategy risk knobs. Unknown ids return an error marker listing the valid ids. Local, free, no engine run.

NameTypeReqDescription
topicstringyesCoverage topic id from list_coverage_topics (e.g. 'ta', 'strategy_orders', 'request_security', 'drawing_plotting_alerts').

No output schema declared.

No examples provided.

list_coverage_topics ~157

START HERE before writing, porting, or backtesting a Pine v6 strategy on PineForge. PineForge implements a SUBSET of Pine v6, so checking coverage first avoids a strategy that compiles but silently misbehaves vs TradingView. Lists every coverage topic with a one-line status (supported / partial / unsupported / via_transpiler) and summary, plus the legend (note: via_transpiler still works end-to-end; unsupported means parsed-and-skipped or rejected) and the coverage version. Cheap, free, local — no engine run, no I/O. Then drill in with get_coverage_topic for one area's full supported/unsupported lists, or check_pine_feature to look up a single identifier.

Input schema present but exposes no named parameters.

No output schema declared.

No examples provided.

list_engine_params ~159

Returns the full catalog of engine knobs accepted by backtest_pine / backtest_pine_grid in two groups: strategy_overrides (the 9 strategy(...) header fields the runtime reads via PINEFORGE_OVERRIDES — initial_capital, pyramiding, slippage, commission_value, commission_type, default_qty_value, default_qty_type, process_orders_on_close, close_entries_rule) and runtime_args (input_tf, script_tf, bar_magnifier, magnifier_samples, magnifier_dist — args to run_backtest_full, NOT part of the strategy() header). Each entry is {key, type, enum?, description}. Does not run the engine. Use this to discover what knobs the engine exposes before issuing a backtest.

Input schema present but exposes no named parameters.

No output schema declared.

No examples provided.

transpile_pine ~127

Transpile PineScript v6 source to a C++ translation unit locally, using the pineforge-codegen transpiler bundled in this image (in-process, no host Docker). No API key, no network — source never leaves the machine. Returns the generated C++ as text. Use backtest_pine if you also want to run the strategy.

NameTypeReqDescription
imagestringDocker image override. Defaults to ghcr.io/pineforge-4pass/pineforge-release:latest.
sourcestringyesPineScript v6 source (must include //@version=6).

No output schema declared.

No examples provided.