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?

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

Configuration and credentials

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

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

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

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.