Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

Pinescript MCP Server

MCP server by TradersPost Verified · npm:pinescript-mcp-server

Gives AI assistants like Claude offline access to the Pine Script v6 reference, search, guides and examples. It is for developers writing TradingView indicators and strategies.

  • Score 58
  • 43 stars
  • 152 a week
  • MIT
  • Updated

Install Pinescript MCP Server

Built from the published package, never by AI.

claude mcp add pinescript-mcp-server -- npx -y pinescript-mcp-server

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install Pinescript MCP Server in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the pinescript-mcp-server block.

About

Pine Script MCP Server is a Model Context Protocol server from TradersPost. It bundles the Pine Script v6 documentation, including 457 functions, 427 variables and the full user guide, so an AI assistant can look up exact syntax instead of guessing. The package is installed with npx and runs over stdio.

Once connected, the assistant calls five tools: pine_reference, pine_search, pine_categories, pine_guide and pine_examples. Search uses BM25 ranking with fuzzy matching for typos, and short names such as "sma" resolve to ta.sma. The server also provides three prompt templates and two resources. It is aimed at traders and developers who write or migrate Pine Script code with an AI assistant.

Written from the project's README and checked against it.

Tools it gives your assistant

  • pine_referenceLooks up a Pine Script function or variable with its signature, parameters, description and example.
  • pine_searchSearches the reference manual and user guide by keyword, ranked by relevance with fuzzy matching.
  • pine_categoriesLists the 48 reference categories and their entry counts, or shows the functions in one category.
  • pine_guideRetrieves conceptual user guide topics such as the execution model, strategies and timeframes.
  • pine_examplesSearches the documentation for code blocks and returns Pine Script examples.

What you need

  • Node.js version 18 or higher
  • An MCP-compatible AI tool such as Claude Code or Claude Desktop

Try asking

  • What does ta.sma do?
  • Help me write an RSI indicator
  • Migrate this v5 script to v6

Good to know

  • Covers Pine Script v6 documentation; older versions are covered only through the migration guide.
  • Some searches return no results; the source suggests shorter keywords.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to Pinescript MCP Server

All alternatives →

Compare with GitDiagram, mockserver or XcodeBuildMCP

Pinescript MCP Server: common questions

Does Pine Script MCP Server need internet access?

No. The source says the package bundles the complete Pine Script v6 documentation, so Claude does not need to fetch anything from the internet.

Which Pine Script versions does it cover?

The bundled reference is Pine Script v6. A migrate_script prompt helps convert scripts from v1 to v5 into v6 syntax.

How can I check that the server works?

Run npx pinescript-mcp-server --check. The source says a passing check prints the chunk, function and guide topic counts.

How do I install Pinescript MCP Server?

In Claude Code run claude mcp add pinescript-mcp-server -- npx -y pinescript-mcp-server. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is Pinescript MCP Server the official server?

Pinescript MCP Server is published by npm:pinescript-mcp-server from its verified domain in the official MCP Registry.

Is Pinescript MCP Server free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is Pinescript MCP Server safe to use?

It scores 58 of 100. Grades: maintenance D, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to Pinescript MCP Server?

Similar MCP servers: GitDiagram, mockserver, XcodeBuildMCP, draw.io.

Does Pinescript MCP Server work with ChatGPT?

Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.

Pinescript MCP Server Install

Add to stack

Loading.