pinescript — Claude Code MCP server: Pine Script function validation
Connects Pine Script v6 reference materials to your coding assistant. It verifies function names and explains trading concepts like repainting.
no license 5,840 installs updated 2026-04-29
claude mcp add --transport http pinescript https://pinescript--bouch.run.toolsWhat pinescript does
This server supplies AI models with Pine Script version 6 reference documentation. Instead of relying on training weights, the agent looks up function signatures, validates identifiers, and retrieves guides for indicators and visual components.
Documentation is split into modular files. Large references such as ta.md, strategy.md, and collections.md contain 50 to 115 sections spanning 1000 to 2800 lines. Tools like list_sections and get_section pull specific headers so the model avoids loading thousands of lines into the conversation.
The service runs remotely over HTTP via https://pinescript--bouch.run.tools, which removes any need for local package builds or Node runtimes.
What it helps with
- look up valid Pine Script v6 function signatures
- check terminology and execution rules for repainting
- inspect parameters for strategy and technical analysis calls
- retrieve targeted documentation fragments without flooding the prompt
Example prompts for the agent
- Check if ta.vwap exists in Pine Script v6 using the pinescript tool
- Find documentation on repainting and request.security via pinescript
- Show the syntax for strategy.exit from strategy.md
How to install pinescript
Platform CLI: remote server
claude mcp add --transport http pinescript https://pinescript--bouch.run.toolsPlatform CLI: remote server
codex mcp add pinescript --url https://pinescript--bouch.run.toolsConfig file
{
"mcpServers": {
"pinescript": {
"url": "https://pinescript--bouch.run.tools"
}
}
}Config file
{
"servers": {
"pinescript": {
"type": "http",
"url": "https://pinescript--bouch.run.tools"
}
}
}Platform CLI: remote server
gemini mcp add -t http pinescript https://pinescript--bouch.run.toolsStep by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about pinescript
What does the pinescript MCP server do?
It connects assistants to Pine Script v6 references. The agent can validate built-in methods, search documentation, and fetch specific topics on indicators or trading strategies.
How to install pinescript in Claude Code?
Run claude mcp add --transport http pinescript https://pinescript--bouch.run.tools in your terminal.
Why does the server fetch docs by section rather than full files?
Files such as strategy.md or ta.md run between 1000 and 2800 lines. Reading individual sections prevents context exhaustion while keeping the necessary syntax at hand.