Skip to content
paulieb89 avatar

Pine Script v6 Documentation

paulieb89/pinescript-mcp

Documentation lookup and validation for Pine Script v6 functions, grounding AI code generation in the v6 reference.

CCM score
84 of 100
GitHub stars
12
tools
10
transport
STDIO, HTTP, SSE
last updated
Apr 4, 2026
View on GitHub

Own this MCP server? Claim it

What it does

  • Reads docs with list_docs, get_doc, get_section, and search_docs, plus resolve_topic for exact API terms like ta.rsi
  • Checks names with validate_function and get_functions, catching invented or deprecated v5 functions and suggesting replacements
  • Includes prompts debug_error, convert_v5_to_v6, and explain_function; runs free over stdio or a hosted HTTP endpoint with no key
  • Designed for Pine Script authors and AI assistants that need correct v6 syntax, function names, and concepts such as repainting

Install

$ npx -y add-mcp https://pinescript-mcp.fly.dev/mcp --name pinescript-mcp -y

Adds the server to every agent config it finds in this project.

Review the command, arguments and environment values before installing. MCP servers run with your local permissions.

Other ways

Claude Code

$ claude mcp add --transport http pinescript-mcp https://pinescript-mcp.fly.dev/mcp

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

Tools

Verified live · 10 tools

Verified live against the running server on Nov 6, 2026.

list_docsUSE WHEN discovering what Pine Script v6 documentation is available. Returns a categorised list of doc file paths with one-line descriptions. AFTER calling this tool, call get_doc(path) for small files or list_sections(path) then get_section(path, header) for large files (ta.m...

USE WHEN discovering what Pine Script v6 documentation is available. Returns a categorised list of doc file paths with one-line descriptions. AFTER calling this tool, call get_doc(path) for small files or list_sections(path) then get_section(path, header) for large files (ta.m...

No parameters. Call it with no arguments.

list_sectionsUSE WHEN navigating a large documentation file before reading a specific section. Returns a newline-separated list of # and ## headers (### excluded) in the file. AFTER calling this tool, call get_section(path, header) with a header from this list. Data sourced from bundled Pi...1 params

USE WHEN navigating a large documentation file before reading a specific section. Returns a newline-separated list of # and ## headers (### excluded) in the file. AFTER calling this tool, call get_section(path, header) with a header from this list. Data sourced from bundled Pi...

Parameters* required
path*string
Documentation file path (e.g., 'reference/functions/ta.md').
get_docUSE WHEN reading the full content of a Pine Script v6 documentation file. Returns the file content; when limit is set, a header shows the char range and offset to continue reading. AFTER calling this tool, use offset=<end> to continue if the header indicates more content is av...3 params

USE WHEN reading the full content of a Pine Script v6 documentation file. Returns the file content; when limit is set, a header shows the char range and offset to continue reading. AFTER calling this tool, use offset=<end> to continue if the header indicates more content is av...

Parameters* required
limitinteger
Maximum characters to return. Use 30000 for large files. 0 = no limit.default: 0
offsetinteger
Character offset to start reading from.default: 0
path*string
Relative path to the documentation file (e.g., 'reference/functions/ta.md').
get_sectionUSE WHEN reading a specific named section from a Pine Script v6 documentation file. Returns the section content from the matched header to the next same-level header, with file path and line range. AFTER calling this tool, call list_sections(path) if the header was not found,...3 params

USE WHEN reading a specific named section from a Pine Script v6 documentation file. Returns the section content from the matched header to the next same-level header, with file path and line range. AFTER calling this tool, call list_sections(path) if the header was not found,...

Parameters* required
header*string
Header text to find (e.g., 'strategy.exit()' or '## strategy.exit()').
include_childrenboolean
Include nested subsections under the matched header.default: true
path*string
Documentation file path (e.g., 'reference/functions/strategy.md').
search_docsUSE WHEN finding documentation sections that match specific terms across all Pine Script v6 docs. Returns up to max_results sections ranked by match count, each with a preview and a get_section() call hint. AFTER calling this tool, call get_section(file, header) for each resul...2 params

USE WHEN finding documentation sections that match specific terms across all Pine Script v6 docs. Returns up to max_results sections ranked by match count, each with a preview and a get_section() call hint. AFTER calling this tool, call get_section(file, header) for each resul...

Parameters* required
max_resultsinteger
Maximum sections to return.default: 5
query*string
Search terms (case-insensitive). Multi-word queries match sections containing ALL terms.
get_functionsUSE WHEN browsing valid Pine Script v6 functions, optionally filtered to a namespace. Returns function names grouped by namespace (e.g. ta.*, strategy.*) or filtered to the requested namespace. AFTER calling this tool, call validate_function(fn_name) to check a specific name,...1 params

USE WHEN browsing valid Pine Script v6 functions, optionally filtered to a namespace. Returns function names grouped by namespace (e.g. ta.*, strategy.*) or filtered to the requested namespace. AFTER calling this tool, call validate_function(fn_name) to check a specific name,...

Parameters* required
namespacestring
Filter by namespace (e.g., 'ta', 'strategy', 'request'). Empty string returns all functions grouped by namespace.default:
validate_functionUSE WHEN confirming a Pine Script v6 function name is valid before using it in code. Returns a valid/invalid verdict with namespace suggestions or known replacement hints (e.g. ta.adx → ta.dmi, security → request.security). AFTER calling this tool, call get_functions(namespace...1 params

USE WHEN confirming a Pine Script v6 function name is valid before using it in code. Returns a valid/invalid verdict with namespace suggestions or known replacement hints (e.g. ta.adx → ta.dmi, security → request.security). AFTER calling this tool, call get_functions(namespace...

Parameters* required
fn_name*string
Function name to validate (e.g., 'ta.sma', 'strategy.entry', 'plot').
resolve_topicUSE WHEN looking up an exact Pine Script API term or known concept keyword. Returns the best-matching doc paths with matched keywords and a retrieval suggestion (get_doc or list_sections + get_section). AFTER calling this tool, follow the suggestion: call get_doc() for small f...1 params

USE WHEN looking up an exact Pine Script API term or known concept keyword. Returns the best-matching doc paths with matched keywords and a retrieval suggestion (get_doc or list_sections + get_section). AFTER calling this tool, follow the suggestion: call get_doc() for small f...

Parameters* required
query*string
Exact Pine Script term or known concept keyword (e.g., 'ta.rsi', 'strategy.entry', 'repainting').
list_promptsList all available prompts. Returns JSON with prompt metadata including name, description, and optional arguments.

List all available prompts. Returns JSON with prompt metadata including name, description, and optional arguments.

No parameters. Call it with no arguments.

get_promptGet a prompt by name with optional arguments. Returns the rendered prompt as JSON with a messages array. Arguments should be provided as a dict mapping argument names to values.2 params

Get a prompt by name with optional arguments. Returns the rendered prompt as JSON with a messages array. Arguments should be provided as a dict mapping argument names to values.

Parameters* required
argumentsvalue
Optional arguments for the prompt
name*string
The name of the prompt to get

Readme

pinescript-mcp

Maintained by BOUCH — private hosting, custom tools and setup: paul@bouch.dev · bouch.dev/products/pinescript-mcp


View the full README on GitHub

Details

Repository
github.com/paulieb89/pinescript-mcp
Website
bouch.dev
Categories
Developer Tools, AI Agents & LLM Apps, Finance & Trading
Package
pinescript-mcp
Transport
STDIO, HTTP, SSE
Registry
MCP registry, active
Resources
2
Prompts
3
Tools verified
Nov 6, 2026

Questions

What does the Pine Script v6 Documentation MCP server let an agent do?

It gives an agent Pine Script v6 documentation lookup, function validation and linting for AI code generation. The README says it helps AI look up Pine Script functions, validate syntax, read official docs on indicators, strategies and visuals, and generate v6 code.

How do I install the pinescript-mcp server in Claude Code?

Run this command in a terminal: claude mcp add --transport http pinescript-mcp https://pinescript-mcp.fly.dev/mcp. After that, the agent can call its documentation and function validation tools for Pine Script v6.

Which tools does the pinescript-mcp server provide?

Claude Marketplaces lists 10 tools, including list_docs, get_doc, search_docs, get_functions and validate_function. The validate_function tool checks whether a Pine Script function name is valid before it is used in code.

Does pinescript-mcp need an API key or account?

The listing gives no account or API key requirement, and the public hosted server connects with the install command alone. A local stdio install runs through uvx with the pinescript-mcp package from PyPI.

Where does pinescript-mcp sit in the Developer Tools category?

It is listed in the Developer Tools category on Claude Marketplaces, alongside Front-End Checklist, Context7, Chrome DevTools MCP and Codebase Memory. Its focus is narrow: Pine Script v6 documentation and function checks for code generation.

More from paulieb89

All 2

Similar to Pine Script v6 Documentation

More Developer Tools