PineScript Syntax Checker
FreeNot checkedValidates TradingView PineScript code syntax by interfacing with TradingView's official pine-facade API, providing real-time compilation error detection for aut
About
Validates TradingView PineScript code syntax by interfacing with TradingView's official pine-facade API, providing real-time compilation error detection for automated trading script development workflows.
README
A Model Context Protocol (MCP) server for checking PineScript syntax using TradingView's API.
Features
- Check PineScript syntax using TradingView's official API
- MCP-compatible server with httpx for async HTTP requests
- Detailed error reporting with line and column information
Quick Start
Option 1: Using uvx (Recommended)
# Run directly (will install automatically if needed)
uvx pinescript-syntax-checker
Option 2: Using uv (Development)
# Clone and run
git clone https://github.com/erevus-cn/pinescript-syntax-checker.git
cd pinescript-syntax-checker
uv sync
uv run python -m pinescript_syntax_checker.server
Option 3: Using pip
# Install from PyPI
pip install pinescript-syntax-checker
# Run directly
pinescript-syntax-checker
# Or as module
python -m pinescript_syntax_checker.server
MCP Integration
Configure in Cursor
To use this MCP server in Cursor:
Open Cursor Settings:
- Press
Cmd+,(macOS) orCtrl+,(Windows/Linux) - Go to "Extensions" → "MCP"
- Press
Add Server Configuration:
Method 1 - Using uvx (Recommended):
{ "mcpServers": { "pinescript-syntax-checker": { "command": "uvx", "args": ["pinescript-syntax-checker"] } } }Method 2 - Using installed package:
{ "mcpServers": { "pinescript-syntax-checker": { "command": "python", "args": ["-m", "pinescript_syntax_checker.server"] } } }Restart Cursor to load the MCP server
Verify Installation
To verify the MCP server is working correctly:
- In Cursor: After configuration, try asking:
Can you check this PineScript code for syntax errors? //@version=5 indicator("Test", overlay=true) plot(close)
API
check_syntax
Checks PineScript syntax using TradingView's API.
Parameters:
pine_code(str): The PineScript code to check
Example
Input:
//@version=5
strategy("Test")
plot(close)
Output:
{
"success": true,
"result": {
"variables": [],
"functions": [],
"types": [],
"enums": [],
"scopes": []
}
}
License
MIT License
Installing PineScript Syntax Checker
This server has no published package — it is built from source. Open the repository and follow its README.
▸ github.com/erevus-cn/pinescript_syntax_checkerFAQ
Is PineScript Syntax Checker MCP free?
Yes, PineScript Syntax Checker MCP is free — one-click install via Unyly at no cost.
Does PineScript Syntax Checker need an API key?
No, PineScript Syntax Checker runs without API keys or environment variables.
Is PineScript Syntax Checker hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install PineScript Syntax Checker in Claude Desktop, Claude Code or Cursor?
Open PineScript Syntax Checker on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
GitHub
PRs, issues, code search, CI status
by GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
by mcpdotdirectCompare PineScript Syntax Checker with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All development MCPs
