PineScript

Provides an environment to create, test, optimize PineScript strategies and integrate with Claude Desktop for AI-assisted PineScript development.
  • typescript

75

GitHub Stars

typescript

Language

6 months ago

First Indexed

2 months ago

Catalog Refreshed

Documentation & install

Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.

Installation

Add the following to your MCP client configuration file.

Configuration

View docs
{
  "mcpServers": {
    "cklose2000-pinescript-mcp-server": {
      "command": "npx",
      "args": [
        "pinescript-mcp-server"
      ]
    }
  }
}

You have a complete PineScript MCP Server that lets you create, test, optimize, and manage PineScript trading strategies, with easy integration into Claude Desktop for AI-assisted development. This server provides a streamlined workflow to build PineScript strategies, run backtests, analyze performance, and generate TradingView-ready code.

How to use

You connect using an MCP client to run, test, and optimize PineScript strategies. Start by launching the MCP server, then use the client to create or edit strategies, run backtests, and inspect performance metrics. When you work with Claude Desktop, you can leverage AI-assisted development to draft, refine, and optimize PineScript code, then export TradingView-compatible scripts.

Typical usage patterns include: creating a new PineScript strategy, running backtests to verify performance, tuning strategy parameters with built-in optimization, and exporting code ready to paste into TradingView. You can also integrate real-time or simulated data sources as configured in your environment to power backtests and analysis.

How to install

Prerequisites: ensure Node.js version 18 or higher is installed, along with npm version 8 or higher.

Option A: Run directly with the MCP server via npx (no local install required). This is convenient for quick starts and testing.

Option B: Integrate with Claude Desktop for a seamless AI-assisted workflow.

Install and run using the following commands.

npx pinescript-mcp-server

If you prefer to configure Claude Desktop, add the MCP server with a Windows wrapper to enable native integration.

claude mcp add pinescript-server cmd --args /c npx pinescript-mcp-server

Additional notes

Claude Desktop integration provides an option to install and configure the PineScript MCP Server for AI-assisted PineScript development. It supports creating and editing strategies, running backtests, optimizing parameters, and generating TradingView-compatible code.

Example configurations for Claude Desktop are available as explicit MCP entries in the integration workflow and can be added to your setup as files or through the Claude Desktop interface.

If you need macOS quick start, use the direct npx command. For Windows, use the Claude Desktop wrapper to run the server via a command line that launches npx under a Windows shell.

Troubleshooting and tips

If you encounter connectivity issues with the MPC server, verify your Node.js environment is correctly installed and that the appropriate command is being used in your integration setup.

For Claude Desktop integration, follow the setup steps in the Claude configuration flow and ensure the MCP server command is accessible in your environment.

Available tools

strategy_editor

Create and edit PineScript strategies with syntax highlighting, auto-complete, and inline documentation.

backtester

Run backtests against historical data to evaluate strategy performance across different market conditions.

optimizer

Tune strategy parameters to optimize performance metrics while preserving risk controls.

tradingview_export

Generate TradingView-compatible PineScript code ready for paste into the TradingView editor.

claude_desktop_integration

Integrate with Claude Desktop to enable AI-assisted PineScript development, testing, and optimization.

Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational