Pine Script v6 Documentation
io.github.paulieb89/pinescript-mcp
MCP server OK 12 tools
Pine Script v6 documentation lookup, function validation, and linting for AI code generation
Technical sheet
- Author
- paulieb89 (registry namespace)
- Repository
- github.com/paulieb89/pinescript-mcp
- Site
- bouch.dev
- Version
- 0.6.17
- Transport
- Streamable HTTP SSE stdio
- Authentication
- None (observed by our test)
- Server address
- https://pinescript-mcp.fly.dev/mcp Streamable HTTP
https://pinescript-mcp.fly.dev/sse SSE - Packages
- pinescript-mcp 0.6.17 pypi stdio
- Tools
- 12
- Categories
- —
- Last updated
- 4 Apr 2026
- Published
- 4 Apr 2026
Verified author and popularity
Entry not claimed yet. Is it your project? Claim it
Not “Popular” for now Removed automatically as soon as the criteria are no longer met.
- Distinct visitors of this entry over 30 days: 2 (30 needed) not yet
- or install configs copied over 30 days: 0 (5 needed) not yet
- and a successful test less than 14 days old: tested 28 Nov 2026 met
Badge updates by itself. Always “tested on …”, never “certified”. How it works
[](https://latlas.dev/en/mcp/io.github.paulieb89/pinescript-mcp)<a href="https://latlas.dev/en/mcp/io.github.paulieb89/pinescript-mcp"><img src="https://latlas.dev/badge/statut/mcp/io.github.paulieb89/pinescript-mcp.svg?lang=en" alt="Status on L’Atlas" height="20"></a>Badge for your README
Free, for every entry. It links back to this entry and shows “tested OK” as long as our latest test succeeded.
[](https://latlas.dev/en/mcp/io.github.paulieb89/pinescript-mcp)<a href="https://latlas.dev/en/mcp/io.github.paulieb89/pinescript-mcp"><img src="https://latlas.dev/badge/fiche/io.github.paulieb89/pinescript-mcp.svg?lang=en" alt="Listed on L’Atlas" height="20"></a>Our tests
Every week: initialize then tools/list, without credentials, never calling a tool. Method
- Address
- https://pinescript-mcp.fly.dev/mcp
- Last result
- OK 28 Nov 2026, 09:05
- Response time
- 2,029 ms (initialize + tools/list)
- Protocol version
- 2025-11-25
- Announced name
- pinescript-docs 3.3.0
- Tools
- 12
- Address
- https://pinescript-mcp.fly.dev/sse
- Last result
- Failed 28 Nov 2026, 11:00 HTTP 404
History
| Date | Address | Result | Response | Tools |
|---|---|---|---|---|
| 28 Nov 2026, 11:00 | pinescript-mcp.fly.dev/sse | Failed | 784 ms | — |
| 28 Nov 2026, 09:05 | pinescript-mcp.fly.dev/mcp | OK | 2,029 ms | 12 |
Exposed tools (12, from tools/list, 28 Nov 2026)
list_docs
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.md, strategy.md, collections.md, drawing.md, general.md). Data sourced from bundled Pine Script v6 documentation.
No parameters.
list_sections
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 Pine Script v6 documentation.
| Parameter | Type | Required | Description |
|---|---|---|---|
| path | string | yes | Documentation file path (e.g., 'reference/functions/ta.md'). |
get_doc
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= to continue if the header indicates more content is available. For large files (ta.md, strategy.md, collections.md, drawing.md, general.md), prefer list_sections() + get_section() instead. Data sourced from bundled Pine Script v6 documentation.
| Parameter | Type | Required | Description |
|---|---|---|---|
| path | string | yes | Relative path to the documentation file (e.g., 'reference/functions/ta.md'). |
| limit | integer | no | Maximum characters to return. Use 30000 for large files. 0 = no limit. |
| offset | integer | no | Character offset to start reading from. |
get_section
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, or get_section() again with a child header for a narrower subsection. Data sourced from bundled Pine Script v6 documentation.
| Parameter | Type | Required | Description |
|---|---|---|---|
| path | string | yes | Documentation file path (e.g., 'reference/functions/strategy.md'). |
| header | string | yes | Header text to find (e.g., 'strategy.exit()' or '## strategy.exit()'). |
| include_children | boolean | no | Include nested subsections under the matched header. |
search_docs
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 result you want to read in full. Data sourced from bundled Pine Script v6 documentation.
| Parameter | Type | Required | Description |
|---|---|---|---|
| query | string | yes | Search terms (case-insensitive). Multi-word queries match sections containing ALL terms. |
| max_results | integer | no | Maximum sections to return. |
get_functions
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, or get_section() to read its documentation. Data sourced from bundled pine_v6_functions.json.
| Parameter | Type | Required | Description |
|---|---|---|---|
| namespace | string | no | Filter by namespace (e.g., 'ta', 'strategy', 'request'). Empty string returns all functions grouped by namespace. |
validate_function
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) to list all valid functions in the relevant namespace if the function is invalid. Data sourced from bundled pine_v6_functions.json.
| Parameter | Type | Required | Description |
|---|---|---|---|
| fn_name | string | yes | Function name to validate (e.g., 'ta.sma', 'strategy.entry', 'plot'). |
resolve_topic
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 files or list_sections() + get_section() for large files. For natural language questions use search_docs() instead. Data sourced from bundled TOPIC_MAP and doc file content scan.
| Parameter | Type | Required | Description |
|---|---|---|---|
| query | string | yes | Exact Pine Script term or known concept keyword (e.g., 'ta.rsi', 'strategy.entry', 'repainting'). |
semantic_search_pine_docs
USE WHEN answering conceptual, fuzzy, or natural language questions about Pine Script v6. Returns ranked documentation chunks with score, source path, and section header. Each result includes a get_section() call hint for retrieving the full content. AFTER calling this tool, call get_section(path, header) on the top results for complete context. For exact API term lookups use resolve_topic() instead; for keyword grep use search_docs() instead. Data sourced from the ai-ready-data pinescript-v06 semantic index.
| Parameter | Type | Required | Description |
|---|---|---|---|
| query | string | yes | Natural language question or description (e.g., 'how to prevent repainting in higher timeframe strategies'). |
| top_k | integer | no | Number of results to return. |
explain_pine_error
USE WHEN diagnosing a Pine Script compilation or runtime error. Returns semantically relevant documentation chunks alongside the bundled common-errors reference. If the error mentions an unknown function name, also call validate_function() after this tool. AFTER calling this tool, call validate_function(fn_name) if the error mentions an unrecognised function; call get_section() on any suggested doc paths to read full context. Data sourced from ai-ready-data semantic index and bundled concepts/common_errors.md.
| Parameter | Type | Required | Description |
|---|---|---|---|
| error_text | string | yes | The exact error message from the TradingView Pine Script compiler or runtime. |
| code | string | null | no | Optional: the Pine Script code that produced the error. |
list_prompts
List all available prompts. Returns JSON with prompt metadata including name, description, and optional arguments.
No parameters.
get_prompt
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.
| Parameter | Type | Required | Description |
|---|---|---|---|
| name | string | yes | The name of the prompt to get |
| arguments | object | null | no | Optional arguments for the prompt |
Client compatibility
Based on the transports each client documents as supported; this is not a live test inside the client.
| Client | Documented transports | This server | Source |
|---|---|---|---|
| Claude Code | stdio Streamable HTTP SSE | transport accepted | doc |
| Claude (claude.ai, Claude Desktop, Cowork) | stdio Streamable HTTP SSE | transport accepted | doc |
| ChatGPT (serveurs MCP personnalisés / plugins) | Streamable HTTP SSE | transport accepted | doc |
| Cursor | stdio Streamable HTTP SSE | transport accepted | doc |
| VS Code (GitHub Copilot) | stdio Streamable HTTP SSE | transport accepted | doc |
| Windsurf (documentation redirigée vers Devin Local / Devin CLI) | stdio Streamable HTTP SSE | transport accepted | doc |
| Gemini CLI | stdio Streamable HTTP SSE | transport accepted | doc |
| OpenAI Codex (CLI, extension IDE, app) | stdio Streamable HTTP | transport accepted | doc |
Ready-to-copy configs
Remote address used: https://pinescript-mcp.fly.dev/mcp. Formats taken from each client’s documentation.
claude mcp add --transport http pinescript-mcp https://pinescript-mcp.fly.dev/mcpCustomize > Connectors > + Add > Add custom connector ; Name : pinescript-mcp ; URL : https://pinescript-mcp.fly.dev/mcpchatgpt.com/plugins > + > Add custom MCP server ; Name : pinescript-mcp ; Server URL : https://pinescript-mcp.fly.dev/mcp ; Create as a plugin{
"mcpServers": {
"pinescript-mcp": {
"url": "https://pinescript-mcp.fly.dev/mcp"
}
}
}{
"mcpServers": {
"pinescript-mcp": {
"type": "http",
"url": "https://pinescript-mcp.fly.dev/mcp",
"tools": ["*"]
}
}
}{
"mcpServers": {
"pinescript-mcp": {
"url": "https://pinescript-mcp.fly.dev/mcp"
}
}
}{
"mcpServers": {
"pinescript-mcp": {
"httpUrl": "https://pinescript-mcp.fly.dev/mcp"
}
}
}[mcp_servers.pinescript-mcp]
url = "https://pinescript-mcp.fly.dev/mcp"Cite this source
Writing an article or comparison? This entry distinguishes registry information from our measurements. Cite the permanent link and the test date; an OK result is not a security audit or an availability guarantee.
Pine Script v6 Documentation · L’Atlas · Tested on
[Pine Script v6 Documentation — L’Atlas](https://latlas.dev/en/mcp/io.github.paulieb89/pinescript-mcp)Source : Registre officiel MCP · retrieved 2 Dec 2026. L’Atlas adds no data beyond this source and its own tests.