Pine Script v6 Documentation is an MCP server published by io.github.paulieb89, hosted at pinescript-mcp.fly.dev. When last checked on 2026-11-22 it was working: it answers and lists its tools. It declares 12 tools, including list_docs, list_sections, get_doc, get_section, search_docs.
Pine Script v6 documentation lookup, function validation, and linting for AI code generation
6 connections through 5 shared values. Tap any node.
Squares are this server's values; dots are other servers sharing them. A shared address or publisher is a lead, not proof of a common operator.
Inferred from the host name and headers: what a server runs on, not who runs it.
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.
{
"name": "list_docs",
"description": "USE WHEN discovering what Pine Script v6 documentation is available.\nReturns a categorised list of doc file paths with one-line descriptions.\nAFTER 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).\nData sourced from bundled Pine Script v6 documentation.",
"inputSchema": {
"type": "object",
"properties": {},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true
}
}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 | Description |
|---|---|---|
| path * | string | Documentation file path (e.g., 'reference/functions/ta.md'). |
{
"name": "list_sections",
"description": "USE WHEN navigating a large documentation file before reading a specific section.\nReturns a newline-separated list of # and ## headers (### excluded) in the file.\nAFTER calling this tool, call get_section(path, header) with a header from this list.\nData sourced from bundled Pine Script v6 documentation.",
"inputSchema": {
"type": "object",
"required": [
"path"
],
"properties": {
"path": {
"type": "string",
"description": "Documentation file path (e.g., 'reference/functions/ta.md')."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true
}
}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 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 | Description |
|---|---|---|
| path * | string | Relative path to the documentation file (e.g., 'reference/functions/ta.md'). |
| limit | integer | Maximum characters to return. Use 30000 for large files. 0 = no limit. |
| offset | integer | Character offset to start reading from. |
{
"name": "get_doc",
"description": "USE WHEN reading the full content of a Pine Script v6 documentation file.\nReturns the file content; when limit is set, a header shows the char range and offset to continue reading.\nAFTER calling this tool, use offset=<end> 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.\nData sourced from bundled Pine Script v6 documentation.",
"inputSchema": {
"type": "object",
"required": [
"path"
],
"properties": {
"path": {
"type": "string",
"description": "Relative path to the documentation file (e.g., 'reference/functions/ta.md')."
},
"limit": {
"type": "integer",
"default": 0,
"minimum": 0,
"description": "Maximum characters to return. Use 30000 for large files. 0 = no limit."
},
"offset": {
"type": "integer",
"default": 0,
"minimum": 0,
"description": "Character offset to start reading from."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true
}
}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 | Description |
|---|---|---|
| path * | string | Documentation file path (e.g., 'reference/functions/strategy.md'). |
| header * | string | Header text to find (e.g., 'strategy.exit()' or '## strategy.exit()'). |
| include_children | boolean | Include nested subsections under the matched header. |
{
"name": "get_section",
"description": "USE WHEN reading a specific named section from a Pine Script v6 documentation file.\nReturns the section content from the matched header to the next same-level header, with file path and line range.\nAFTER 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.\nData sourced from bundled Pine Script v6 documentation.",
"inputSchema": {
"type": "object",
"required": [
"path",
"header"
],
"properties": {
"path": {
"type": "string",
"description": "Documentation file path (e.g., 'reference/functions/strategy.md')."
},
"header": {
"type": "string",
"description": "Header text to find (e.g., 'strategy.exit()' or '## strategy.exit()')."
},
"include_children": {
"type": "boolean",
"default": true,
"description": "Include nested subsections under the matched header."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true
}
}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 | Description |
|---|---|---|
| query * | string | Search terms (case-insensitive). Multi-word queries match sections containing ALL terms. |
| max_results | integer | Maximum sections to return. |
{
"name": "search_docs",
"description": "USE WHEN finding documentation sections that match specific terms across all Pine Script v6 docs.\nReturns up to max_results sections ranked by match count, each with a preview and a get_section() call hint.\nAFTER calling this tool, call get_section(file, header) for each result you want to read in full.\nData sourced from bundled Pine Script v6 documentation.",
"inputSchema": {
"type": "object",
"required": [
"query"
],
"properties": {
"query": {
"type": "string",
"minLength": 1,
"description": "Search terms (case-insensitive). Multi-word queries match sections containing ALL terms."
},
"max_results": {
"type": "integer",
"default": 5,
"maximum": 20,
"minimum": 1,
"description": "Maximum sections to return."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true
}
}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 | Description |
|---|---|---|
| namespace | string | Filter by namespace (e.g., 'ta', 'strategy', 'request'). Empty string returns all functions grouped by namespace. |
{
"name": "get_functions",
"description": "USE WHEN browsing valid Pine Script v6 functions, optionally filtered to a namespace.\nReturns function names grouped by namespace (e.g. ta.*, strategy.*) or filtered to the requested namespace.\nAFTER calling this tool, call validate_function(fn_name) to check a specific name, or get_section() to read its documentation.\nData sourced from bundled pine_v6_functions.json.",
"inputSchema": {
"type": "object",
"properties": {
"namespace": {
"type": "string",
"default": "",
"description": "Filter by namespace (e.g., 'ta', 'strategy', 'request'). Empty string returns all functions grouped by namespace."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true
}
}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 | Description |
|---|---|---|
| fn_name * | string | Function name to validate (e.g., 'ta.sma', 'strategy.entry', 'plot'). |
{
"name": "validate_function",
"description": "USE WHEN confirming a Pine Script v6 function name is valid before using it in code.\nReturns a valid/invalid verdict with namespace suggestions or known replacement hints (e.g. ta.adx → ta.dmi, security → request.security).\nAFTER calling this tool, call get_functions(namespace) to list all valid functions in the relevant namespace if the function is invalid.\nData sourced from bundled pine_v6_functions.json.",
"inputSchema": {
"type": "object",
"required": [
"fn_name"
],
"properties": {
"fn_name": {
"type": "string",
"minLength": 1,
"description": "Function name to validate (e.g., 'ta.sma', 'strategy.entry', 'plot')."
}
},
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"required": [
"result"
],
"properties": {
"result": {
"type": "string"
}
},
"x-fastmcp-wrap-result": true
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true
}
}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 | Description |
|---|---|---|
| query * | string | Exact Pine Script term or known concept keyword (e.g., 'ta.rsi', 'strategy.entry', 'repainting'). |
{
"name": "resolve_topic",
"description": "USE WHEN looking up an exact Pine Script API term or known concept keyword.\nReturns the best-matching doc paths with matched keywords and a retrieval suggestion (get_doc or list_sections + get_section).\nAFTER 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.\nData sourced from bundled TOPIC_MAP and doc file content scan.",
"inputSchema": {
"type": "object",
"required": [
"query"
],
"properties": {
"query": {
"type": "string",
"minLength": 1,
"description": "Exact Pine Script term or known concept keyword (e.g., 'ta.rsi', 'strategy.entry', 'repainting')."
}
},
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"required": [
"result"
],
"properties": {
"result": {
"type": "string"
}
},
"x-fastmcp-wrap-result": true
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true
}
}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 | Description |
|---|---|---|
| query * | string | Natural language question or description (e.g., 'how to prevent repainting in higher timeframe strategies'). |
| top_k | integer | Number of results to return. |
{
"name": "semantic_search_pine_docs",
"description": "USE WHEN answering conceptual, fuzzy, or natural language questions about Pine Script v6.\nReturns ranked documentation chunks with score, source path, and section header. Each result includes a get_section() call hint for retrieving the full content.\nAFTER 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.\nData sourced from the ai-ready-data pinescript-v06 semantic index.",
"inputSchema": {
"type": "object",
"required": [
"query"
],
"properties": {
"query": {
"type": "string",
"minLength": 1,
"description": "Natural language question or description (e.g., 'how to prevent repainting in higher timeframe strategies')."
},
"top_k": {
"type": "integer",
"default": 5,
"maximum": 20,
"minimum": 1,
"description": "Number of results to return."
}
},
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"required": [
"result"
],
"properties": {
"result": {
"type": "string"
}
},
"x-fastmcp-wrap-result": true
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": false
}
}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 | Description |
|---|---|---|
| code | any | Optional: the Pine Script code that produced the error. |
| error_text * | string | The exact error message from the TradingView Pine Script compiler or runtime. |
{
"name": "explain_pine_error",
"description": "USE WHEN diagnosing a Pine Script compilation or runtime error.\nReturns 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.\nAFTER 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.\nData sourced from ai-ready-data semantic index and bundled concepts/common_errors.md.",
"inputSchema": {
"type": "object",
"required": [
"error_text"
],
"properties": {
"code": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Optional: the Pine Script code that produced the error."
},
"error_text": {
"type": "string",
"minLength": 1,
"description": "The exact error message from the TradingView Pine Script compiler or runtime."
}
},
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"required": [
"result"
],
"properties": {
"result": {
"type": "string"
}
},
"x-fastmcp-wrap-result": true
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": false
}
}List all available prompts. Returns JSON with prompt metadata including name, description, and optional arguments.
No parameters.
{
"name": "list_prompts",
"description": "List all available prompts.\n\nReturns JSON with prompt metadata including name, description,\nand optional arguments.",
"inputSchema": {
"type": "object",
"properties": {},
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"required": [
"result"
],
"properties": {
"result": {
"type": "string"
}
},
"x-fastmcp-wrap-result": true
}
}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 | Description |
|---|---|---|
| name * | string | The name of the prompt to get |
| arguments | any | Optional arguments for the prompt |
{
"name": "get_prompt",
"description": "Get a prompt by name with optional arguments.\n\nReturns the rendered prompt as JSON with a messages array.\nArguments should be provided as a dict mapping argument names\nto values.",
"inputSchema": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"description": "The name of the prompt to get"
},
"arguments": {
"anyOf": [
{
"type": "object",
"additionalProperties": true
},
{
"type": "null"
}
],
"default": null,
"description": "Optional arguments for the prompt"
}
},
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"required": [
"result"
],
"properties": {
"result": {
"type": "string"
}
},
"x-fastmcp-wrap-result": true
}
}For skills that work with these tools see https://bouch.dev/products/pine-strategy-builder
Names, descriptions and schemas were written by the server and are shown as data.
Pattern matches on what the server declares. They show what it says it can do, not what it does.
None yet. Changes appear after a server's second daily check.