PineScript MCP Project MCP Server

A Model Context Protocol (MCP) server for working with TradingView PineScript

Local serverstdio

What is the PineScript MCP Project MCP server?

PineScript MCP Project MCP server exists for a simple reason — assistants are far more useful when they can act on PineScript MCP Project directly instead of describing what you should do. A Model Context Protocol (MCP) server for working with TradingView PineScript.

What you get

A comprehensive tool for creation, optimization, and management of PineScript trading strategies.

  • Strategy creation and editing
  • Backtesting capabilities
  • Performance analysis
  • Strategy optimization
  • TradingView integration

Setting it up

The server ships on npm as pinescript-mcp-server, so your MCP client can launch it on demand — there is no separate build step. Add the server block to your client's configuration, restart it, and the tools register themselves.

What the assistant can call

Once PineScript MCP Project is connected, these are the calls the assistant has available:

  • run-ui-clean.bat — Main script to start the UI server (cleans up existing processes)
  • run-ui-admin.bat — Starts the UI server with administrator privileges
  • serve-test-page.bat — Serves a simple HTML test page on port 8000 to test connectivity
  • run-express-server.bat — Starts an Express server as an alternative to Next.js
  • run-electron-app.bat — Starts the Electron desktop application (no web server required)
  • check-connectivity.bat — Comprehensive network connectivity diagnostics
  • check-windows-firewall.bat — Check firewall status and rules
  • allow-node-firewall.bat — Add Node.js to Windows Firewall exceptions
  • test-network-connection.bat — Test specific network connections
  • test-port-3000.bat — Test if port 3000 is available
  • kill-port-3000.bat — Kill any process using port 3000
  • ui-connect-guide.md — Comprehensive guide to UI connectivity troubleshooting

Configuration and credentials

  • Node.js (v18 or higher) - npm (v8 or higher)

Before you rely on it

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • With 14 tools registered it takes up a noticeable share of the context window; turn it off in projects that never touch PineScript MCP Project.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the pinescript mcp project mcp server does with a few real requests.

Choosing this one

This sits in the developer tooling group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. PineScript MCP Project's toolset — run-ui-clean.bat, run-ui-admin.bat, serve-test-page.bat and 11 more — is a fair guide to whether it matches your workflow. It is maintained by cklose2000; worth a glance at recent repository activity before you build anything load-bearing on it.

This entry was verified against PineScript MCP Project's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.

Available tools

ToolWhat it does
run-ui-clean.batMain script to start the UI server (cleans up existing processes)
run-ui-admin.batStarts the UI server with administrator privileges
serve-test-page.batServes a simple HTML test page on port 8000 to test connectivity
run-express-server.batStarts an Express server as an alternative to Next.js
run-electron-app.batStarts the Electron desktop application (no web server required)
check-connectivity.batComprehensive network connectivity diagnostics
check-windows-firewall.batCheck firewall status and rules
allow-node-firewall.batAdd Node.js to Windows Firewall exceptions
test-network-connection.batTest specific network connections
test-port-3000.batTest if port 3000 is available
kill-port-3000.batKill any process using port 3000
ui-connect-guide.mdComprehensive guide to UI connectivity troubleshooting
README-UI.mdUI-specific documentation
PrerequisitesThe Prerequisites tool exposed by this server.

How to install the PineScript MCP Project MCP server

{
  "mcpServers": {
    "pinescript": {
      "command": "npx",
      "args": ["-y", "pinescript-mcp-server"]
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

  • Node.js (v18 or higher) - npm (v8 or higher)

Example prompts to try

  • Use PineScript MCP Project to run-ui-clean.bat.
  • Use PineScript MCP Project to run-ui-admin.bat.
  • Use PineScript MCP Project to serve-test-page.bat.

Frequently asked questions

Node.js v18 or higher and npm v8 or higher are required.