Skip to content
Agentmart
Submit a tool

PineForge — offline PineScript v6 backtest MCP

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

Connector by pineforge-4pass · GitHub account verified by the MCP Registry

IndexedMITLocal (stdio)★ 7
Write a review

Install

Works with Claude Code, Codex, VS Code, Cursor, Windsurf, Claude Desktop. Read the repository before you give any tool access to your data.

npx agentmarket install connector/pineforge-4pass-pineforge-codegen-mcp

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

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

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this server can do and what it asks for, from its tool list, install config and code. Checked Oct 25, 2026.

Tools
8 read · 1 write · 0 delete · 4 not yet classified
Secrets
None asked for
Install scripts
None found
Runs as
Docker image

Tools by what they do 13

Read from the source code; the running server may list different tools.

Read 8 · Look things up without changing anything.

  • binance_symbols
  • check_engine_image
  • check_pine_feature
  • check_tradingview_parity
  • engine_info
  • fetch_binance_ohlcv
  • get_coverage_topic
  • list_engine_params

Write 1 · Create, change, send or run things.

  • pull_engine_image

Not yet classified 4 · We could not tell from the name and description.

  • backtest_pine
  • backtest_pine_grid
  • list_coverage_topics
  • transpile_pine

Network hosts it talks to 8

  • api.binance.com · found in code
  • api.github.com · found in code
  • fapi.binance.com · found in code
  • ghcr.io · found in code
  • github.com · found in code
  • glama.ai · found in code
  • pineforge.dev · found in code
  • raw.githubusercontent.com · found in code

Files it touches

  • /home/someone/file.csv
  • /opt/pf-parity/pf_parity.py
  • /opt/pineforge
  • /opt/pineforge-overlay
  • /opt/pineforge/bin/run_json.py
  • /tmp/pineforge-parity-
  • /tmp/sweep-test-
  • Any path the agent passes to its tools

Tools (13)

Read from the source code; the running server may differ. Descriptions are the server’s own words; hidden characters are shown as [U+…].

  • backtest_pine

    Description is built at runtime.

  • backtest_pine_grid

    Description is built at runtime.

  • binance_symbols

    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.

  • check_engine_image

    Check whether the local pineforge-release Docker image is up to date with the registry. Compares per-platform manifest digests via `docker manifest inspect --verbose` (no image layers downloaded). Returns up_to_date + recommend_pull. With auto_pull=true, runs `docker pull` in the same call when the local image is stale or missing. Note: this is independent of the MCP server's own version (`@pineforge/backtest-mcp`); the MCP version and the engine image version evolve separately.

  • check_pine_feature

    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 — plots, tables and alerts (plot, bgcolor, table, alert) are accepted and produce NO effect, while line, box and label objects are data the strategy can read back. Resolves by exact feature match, then longest namespace prefix, then alias, returning {query, status, topic, note} where statu…

  • check_tradingview_parity

    Description is built at runtime.

  • engine_info

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

  • fetch_binance_ohlcv

    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. Also records the symbol's instrument in <output_path>.instrument.json (lot size: TradingView's own reading from a measured table shipped with this server, Binance's LOT_SIZE.stepSize for a symbol TradingView does not list, TradingView's usual 0.001 for a listing newer than the table; tick size and currencies fr…

  • get_coverage_topic

    Returns the full detail plus the exact supported[], partial[], via_transpiler[] 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.

  • list_coverage_topics

    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 refused, not compiling, stopping the run where its value is read, or accepted with no effect) and the coverage version. Statuses describe what a backtest on THIS server can do. Ch…

  • list_engine_params

    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 discov…

  • pull_engine_image

    Run `docker pull` for the pineforge-release runtime image on the user's machine. Useful before the first backtest_pine call.

  • transpile_pine

    Description is built at runtime.

Compare and alternatives

    Featured in

    Signals

    Stars
    7
    Forks
    1
    Open issues
    1
    Last commit
    Oct 23, 2026 (5 days ago)
    Last release
    Oct 12, 2026 (16 days ago)

    From GitHub (fetched Oct 24, 2026).

    Details

    Registry name
    io.github.pineforge-4pass/pineforge-codegen-mcp
    Version
    0.9.18
    Auth
    No auth
    Packages
    oci ghcr.io/pineforge-4pass/pineforge-codegen-mcp:v0.9.18
    License
    MIT
    First seen
    Oct 24, 2026
    Last checked
    Oct 24, 2026

    More from pineforge-4pass

    Cite this page

    PineForge — offline PineScript v6 backtest MCP. Agent Mart. https://agentmart.dev/connectors/pineforge-4pass-pineforge-codegen-mcp (last updated 2026-10-24)