Skip to main content
0
P

Pinescript Syntax Checker

A Model Context Protocol (MCP) server for checking PineScript syntax using TradingView's API.

Rating

0.0

Votes

0

score

Downloads

0

total

Price

Free

No login needed

Works With

Claude CodeCursorWindsurfVS CodeDeveloper tool

About

PineScript Syntax Checker MCP Server

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)

bash
# Run directly (will install automatically if needed)
uvx pinescript-syntax-checker

Option 2: Using uv (Development)

bash
# 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

bash
# 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:

  1. 1.Open Cursor Settings:
  • Press Cmd+, (macOS) or Ctrl+, (Windows/Linux)
  • Go to "Extensions" → "MCP"
  1. 1.Add Server Configuration:

Method 1 - Using uvx (Recommended):

```json

{ "mcpServers": { "pinescript-syntax-checker": { "command": "uvx", "args": ["pinescript-syntax-checker"] } } }

```

Method 2 - Using installed package:

```json

{ "mcpServers": { "pinescript-syntax-checker": { "command": "python", "args": ["-m", "pinescript_syntax_checker.server"] } } }

```

  1. 1.Restart Cursor to load the MCP server

Verify Installation

To verify the MCP server is working correctly:

  1. 1.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:

pinescript
//@version=5
strategy("Test")
plot(close)

Output:

json
{
  "success": true,
  "result": {
    "variables": [],
    "functions": [],
    "types": [],
    "enums": [],
    "scopes": []
  }
}

License

MIT License

Don't lose this

Three weeks from now, you'll want Pinescript Syntax Checker again. Will you remember where to find it?

Save it to your library and the next time you need Pinescript Syntax Checker, it’s one tap away — from any AI app you use. Group it into a bench with the rest of the team for that kind of task and you can pull the whole stack at once.

⚡ Pro tip for geeks: add a-gnt 🤵🏻‍♂️ as a custom connector in Claude or a custom GPT in ChatGPT — one click and your library is right there in the chat. Or, if you’re in an editor, install the a-gnt MCP server and say “use my [bench name]” in Claude Code, Cursor, VS Code, or Windsurf.

🤵🏻‍♂️

a-gnt's Take

Our honest review

This plugs directly into your AI and gives it new abilities it didn't have before. A Model Context Protocol (MCP) server for checking PineScript syntax using TradingView's API. Once connected, just ask your AI to use it. It's completely free and works across most major AI apps. This one just landed in the catalog — worth trying while it's fresh.

Tips for getting started

1

Tap "Get" above, pick your AI app, and follow the steps. Most installs take under 30 seconds.

2

Your data stays between you and your AI — nothing is shared with us or anyone else.

What's New

Version 1.0.06 days ago

Imported from GitHub

Ratings & Reviews

0.0

out of 5

0 ratings

No reviews yet. Be the first to share your experience.