pinescript
MCP server from CyberBOB07/pinescript-mcp-server
claude mcp add --transport stdio cyberbob07-pinescript-mcp-server npm run start-server
How to use
This MCP server provides tooling to work with TradingView PineScript within a standardized MCP interface. It offers three primary capabilities: validating PineScript code to surface syntax errors and warnings, automatically fixing common syntax issues, and generating validated PineScript templates for common strategies and indicators. Clients can send requests to the exposed tools and receive structured results that include success flags, error/warning messages, and generated code templates. Use the validate_pinescript tool to quickly check new PineScript snippets before deployment, use fix_pinescript_errors to auto-correct frequent mistakes, and leverage get_pinescript_template to obtain ready-to-use templates for strategies or indicators that you can customize further.
How to install
Prerequisites:
- Node.js 16.x or higher
- npm 8.x or higher
Installation steps:
-
Clone the repository: git clone https://github.com/yourusername/pinescriptproject1.git cd pinescriptproject1
-
Install dependencies: npm install
-
Build the project (if a build step is required by the project): npm run build
-
Start the MCP server: npm run start-server
Notes:
- Ensure Node.js and npm versions meet the prerequisites.
- If you encounter port or binding issues, check environment-specific config files or startup logs and adjust as needed.
Additional notes
Tips and common issues:
- If npm run start-server fails due to missing environment variables, set them in an .env file or your deployment environment as needed by the server.
- The server exposes three main tools: validate_pinescript, fix_pinescript_errors, and get_pinescript_template. Use the MCP client to call these tools with appropriate parameters as described in the API section.
- When testing templates, review the generated code for your specific PineScript version (v4 vs v5) and adapt any version-specific syntax accordingly.
- If you enable debugging, use npm run dev (if available) to get automatic reloading during development.
- For production deployments, consider containerizing the server or orchestrating it with your preferred platform, ensuring proper environment isolation and security practices.
Related MCP Servers
iterm
A Model Context Protocol server that executes commands in the current iTerm session - useful for REPL and CLI assistance
mcp
Octopus Deploy Official MCP Server
furi
CLI & API for MCP management
editor
MCP Server for Phaser Editor
DoorDash
MCP server from JordanDalton/DoorDash-MCP-Server
mcp
MCP сервер для автоматического создания и развертывания приложений в Timeweb Cloud