MCP.so
Sign In

TradingView PineScript MCP Server

@CyberBOB07

About TradingView PineScript MCP Server

No overview available yet

Config

No standard config provided

This server doesn't expose a parseable MCP config block in its README. See the repository for install instructions.

Repository

Tools

No tools detected

We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.

Overview

What is TradingView PineScript MCP Server?

A Model Context Protocol (MCP) server for working with TradingView PineScript. It provides tools for validating, fixing, and generating PineScript code through a standardized API, intended for developers and traders who need to automate PineScript workflows.

How to use TradingView PineScript MCP Server?

Install Node.js 16.x or higher and npm 8.x or higher. Clone the repository, run npm install, then npm run build, and start the server with npm run start-server (uses stdio transport). The server exposes three tools: validate_pinescript, fix_pinescript_errors, and get_pinescript_template.

Key features of TradingView PineScript MCP Server

  • Validates PineScript code for syntax errors and warnings.
  • Automatically fixes common PineScript syntax errors.
  • Provides validated templates for strategies and indicators.
  • Supports PineScript versions v5 and v4 as parameters.
  • Checks for empty scripts, parentheses balance, string quotes, and more.

Use cases of TradingView PineScript MCP Server

FAQ from TradingView PineScript MCP Server

What are the prerequisites for running the TradingView PineScript MCP Server?

Node.js 16.x or higher and npm 8.x or higher are required.

How do I start the TradingView PineScript MCP Server?

After building the project, run npm run start-server to start the server with stdio transport.

What tools does the TradingView PineScript MCP Server provide?

Three tools: validate_pinescript (validation), fix_pinescript_errors (automatic error fixing), and get_pinescript_template (template generation).

What PineScript versions does the TradingView PineScript MCP Server support?

The version parameter accepts values like 'v5' and 'v4'. The fixer can handle deprecated study() function and other v5-specific issues.

What types of errors can the TradingView PineScript MCP Server automatically fix?

Missing version annotations, unbalanced parentheses, unclosed string literals, missing commas in function calls, deprecated study() function, and incorrect variable export syntax.

Frequently asked questions

What are the prerequisites for running the TradingView PineScript MCP Server?

Node.js 16.x or higher and npm 8.x or higher are required.

How do I start the TradingView PineScript MCP Server?

After building the project, run `npm run start-server` to start the server with stdio transport.

What tools does the TradingView PineScript MCP Server provide?

Three tools: `validate_pinescript` (validation), `fix_pinescript_errors` (automatic error fixing), and `get_pinescript_template` (template generation).

What PineScript versions does the TradingView PineScript MCP Server support?

The version parameter accepts values like 'v5' and 'v4'. The fixer can handle deprecated study() function and other v5-specific issues.

What types of errors can the TradingView PineScript MCP Server automatically fix?

Missing version annotations, unbalanced parentheses, unclosed string literals, missing commas in function calls, deprecated study() function, and incorrect variable export syntax.

Comments

More Other MCP servers