- Home
- MCP servers
- PineScript Syntax Checker
PineScript Syntax Checker
- python
9
GitHub Stars
python
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": {
"erevus-cn-pinescript_syntax_checker": {
"command": "python",
"args": [
"-m",
"pinescript_syntax_checker.server"
]
}
}
}You can run and connect to a PineScript syntax checker MCP server to validate PineScript code against TradingView’s API. This server is designed to be invoked from MCP clients and returns detailed syntax errors with line and column information to help you quickly locate issues in your scripts.
How to use
Connect your MCP client to one of the available server configurations and start sending PineScript code to check. You can run the server locally using the provided commands, then configure your MCP client to talk to it. When you send code like a simple PineScript snippet, you receive a structured response indicating whether the syntax is valid and, if not, where the errors are.
How to install
Prerequisites you need before installing: Python (for the Python-based start), and a way to run MCP servers from your environment (such as uvx or uv). You may also use Python’s package manager to install the server directly from its package.
Option 1: Using uvx (Recommended)
Run directly (will install automatically if needed)
uvx pinescript-syntax-checker
Option 2: Using uv (Development)
Clone the project and run the server locally with uv
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 and run the server directly or as a module
pip install pinescript-syntax-checker
# Run directly
pinescript-syntax-checker
# Or as module
python -m pinescript_syntax_checker.server
Available tools
check_syntax
Checks PineScript syntax using TradingView's API and returns syntax validation results with error details.