Pinescript Mcp Server — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Pinescript Mcp Server (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
A Model Context Protocol (MCP) server for working with TradingView PineScript. This server provides tools for validating, fixing, and generating PineScript code through a standardized API.
git clone https://github.com/yourusername/pinescriptproject1.git
cd pinescriptproject1npm installnpm run buildStart the MCP server:
npm run start-serverThis will start the server with stdio transport, which allows it to communicate with MCP clients.
The MCP server exposes the following tools:
#### 1. validate_pinescript
Validates PineScript code for syntax errors and warnings.
Parameters:
script (string): The PineScript code to validateversion (string, optional): Expected PineScript version (e.g., 'v5', 'v4')Returns:
valid (boolean): Whether the script is validerrors (string[]): List of syntax errorswarnings (string[]): List of warnings#### 2. fix_pinescript_errors
Automatically fixes common syntax errors in PineScript code.
Parameters:
script (string): The PineScript code to fixReturns:
fixed (boolean): Whether any fixes were appliedfixedCode (string): The fixed scriptchanges (string[]): List of changes made#### 3. get_pinescript_template
Provides validated templates for common PineScript strategies and indicators.
Parameters:
template_type (string): Type of template ('strategy' or 'indicator')name (string): Template nameReturns:
template (string): The template codemessage (string): Confirmation messageThe validator currently checks for:
The fixer can automatically fix:
npm testTo run the server in development mode with automatic reloading:
npm run devISC
Contributions are welcome!
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.