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.
Install Pinescript MCP Server
Built from the published package, never by AI.
claude mcp add pinescript-mcp-server -- npx -y pinescript-mcp-serverRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"pinescript-mcp-server": {
"args": [
"-y",
"pinescript-mcp-server"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
Step-by-step: install Pinescript MCP Server in Claude Desktop
{
"mcpServers": {
"pinescript-mcp-server": {
"args": [
"-y",
"pinescript-mcp-server"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"pinescript-mcp-server": {
"args": [
"-y",
"pinescript-mcp-server"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add pinescript-mcp-server -- npx -y pinescript-mcp-server{
"mcpServers": {
"pinescript-mcp-server": {
"args": [
"-y",
"pinescript-mcp-server"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
Step-by-step: install Pinescript MCP Server in Antigravity CLI
gemini mcp add pinescript-mcp-server npx -y pinescript-mcp-serverGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
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
ANo 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 →Turns GitHub repositories into architecture diagrams, written explanations, Mermaid source and narrated explainer videos. Built for developers who want to understand a codebase, and for AI agents that need to read one.
Mocks, records, and chaos-tests HTTP(S) dependencies for development and testing. One port serves many protocols, including gRPC, WebSockets, and LLM chat APIs. Built for developers and testers who need stand-in services during tests.
Provides MCP server and CLI tools that let AI coding agents build, test and manage iOS and macOS projects with Xcode and simulators. It is aimed at developers working on Apple platform apps.
Creates editable draw.io diagrams in AI chat from Mermaid, PlantUML, CSV or draw.io XML. Built for people who want diagrams from text prompts that stay editable in draw.io.
Indexes your code, git history, tests and decisions on your machine so AI coding agents can query the index instead of re-reading files. Built for developers who want fewer files opened and clearer answers about change risk and code health.
Gives your AI assistant hosted codebase intelligence for repos indexed on repowise.dev. Use it to ask how code works, what a change may break, and which tests to run.
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.
