Pine Script v6 documentation lookup, function validation, and linting for AI code generation
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
MCP server providing Pine Script v6 documentation for AI assistants (Claude, etc.).
Enables AI to:
Works with Claude Code, Claude Desktop, Gemini CLI, and any MCP client that supports stdio:
No Python or uvx needed β connect directly to the hosted server.
Streamable HTTP β Claude Code, mcpServers with type field):
Windsurf β uses its own shape (see Windsurf docs). Edit ~/.codeium/windsurf/mcp_config.json:
ChatGPT β no config file. In ChatGPT, go to Settings β Connectors β Create and paste https://pinescript-mcp.fly.dev/mcp into the Server URL field. Developer Mode must be enabled (see OpenAI Developer Mode guide).
Claude.ai β add via the web UI's MCP connector settings, not a JSON file.
Documentation is bundled in the package β each version contains a frozen snapshot. For reproducible agent behaviour, pin to a specific version:
Without pinning, uvx pinescript-mcp gets the latest version.
| Tool | Description |
|---|---|
resolve_topic(query) | Fast lookup for exact API terms (ta.rsi, repainting) |
search_docs(query) | Grep for exact strings across all docs |
list_docs() | List all documentation files with descriptions |
list_sections(path) | List ## headers in a doc file (for navigating large files) |
get_doc(path) | Read a specific documentation file |
get_section(path, header) | Read a specific section by header |
get_functions(namespace) | List valid functions (ta, strategy, etc.) |
validate_function(name) | Check if a function exists in Pine v6 |
list_resources() | Browse available documentation resources |
read_resource(uri) | Read a doc resource by URI (e.g. docs://manifest) |
list_prompts() | List available prompt templates |
get_prompt(name, arguments) | Render a prompt template with arguments |
| Prompt | Description |
|---|---|
debug_error(error, code) | Analyze a Pine Script compilation error |
convert_v5_to_v6(code) | Convert Pine Script v5 code to v6 syntax |
explain_function(name) | Explain a Pine Script function in detail |
| URI | Description |
|---|---|
docs://manifest | Start here β routing guide for Pine Script questions |
docs://functions | Complete Pine Script v6 function list (JSON) |
docs://{path} | Any doc file by path (e.g. concepts/timeframes.md) |
The server bundles comprehensive Pine Script v6 documentation:
AI models often hallucinate Pine Script functions or use deprecated v5 syntax. This MCP server grounds the AI in actual v6 documentation, preventing:
ta.hull doesn't exist, use ta.hma)Combine with skills for even more control available at bouch.dev/products/pine-strategy-builder.
MIT
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/pine-script-v6-documentation)<a href="https://allmcps.com/mcp/pine-script-v6-documentation"><img src="https://allmcps.com/api/badge/pine-script-v6-documentation?style=directory" alt="Pine Script v6 Documentation on AllMCPs" /></a>