# Pine Script v6 Documentation

This MCP server gives AI assistants Pine Script v6 reference material, function checks, and debugging prompts for code generation.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 9
- Author: paulieb89
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/paulieb89/pinescript-mcp
- Updated: 2026-08-27
- HTML: https://affpapa.org/en/nevibecode/mcp/pine-script-v6-documentation

## What it does

Pine Script v6 Documentation lets an agent search the language reference, verify whether a function exists, and inspect material on indicators, strategies, visuals, and execution behavior. It can help explain a function, diagnose a compilation error, or move code from v5 to v6.

The server includes document search, file and section navigation, function lookup, resource access, and prompt templates. Those templates cover error analysis, function explanations, and version conversion. The local stdio setup requires `uvx`; the hosted HTTP endpoint is another way to connect without that local command.

Each package version carries its own frozen documentation snapshot. Pinning a package version keeps the reference used by the agent unchanged across updates.

## Requirements
- Needs: Python and uv (commands run via uvx)
- Remote server: `https://pinescript-mcp.fly.dev/mcp`

## Install

### Claude Code (native platform)

1. **Platform CLI: remote server**
```bash
claude mcp add --transport http pinescript-mcp https://pinescript-mcp.fly.dev/mcp
```

2. **Platform CLI**
```bash
claude mcp add pine-script-v6-documentation -- uvx pinescript-mcp
```
uvx runs the command named after the package; if the README names another one, use uvx --from pinescript-mcp <command>

### Codex

1. **Platform CLI: remote server**
```bash
codex mcp add pine-script-v6-documentation --url https://pinescript-mcp.fly.dev/mcp
```

2. **Platform CLI**
```bash
codex mcp add pine-script-v6-documentation -- uvx pinescript-mcp
```
uvx runs the command named after the package; if the README names another one, use uvx --from pinescript-mcp <command>

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "pine-script-v6-documentation": {
            "url": "https://pinescript-mcp.fly.dev/mcp"
        }
    }
}
```
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "pine-script-v6-documentation": {
            "command": "uvx",
            "args": [
                "pinescript-mcp"
            ]
        }
    }
}
```
uvx runs the command named after the package; if the README names another one, use uvx --from pinescript-mcp <command>

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "pine-script-v6-documentation": {
            "type": "http",
            "url": "https://pinescript-mcp.fly.dev/mcp"
        }
    }
}
```
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "pine-script-v6-documentation": {
            "type": "stdio",
            "command": "uvx",
            "args": [
                "pinescript-mcp"
            ]
        }
    }
}
```
uvx runs the command named after the package; if the README names another one, use uvx --from pinescript-mcp <command>

### Gemini CLI

1. **Platform CLI: remote server**
```bash
gemini mcp add -t http pine-script-v6-documentation https://pinescript-mcp.fly.dev/mcp
```

2. **Platform CLI**
```bash
gemini mcp add pine-script-v6-documentation uvx pinescript-mcp
```
uvx runs the command named after the package; if the README names another one, use uvx --from pinescript-mcp <command>

## When to use it
- verify a Pine Script v6 function
- look up `ta.*` and `strategy.*` parameters
- diagnose a Pine Script compilation error
- convert a script from v5 to v6
- check code against the v6 reference

## Example prompts
- Check whether `ta.supertrend` exists in Pine Script v6 and explain its parameters.
- Analyze this Pine Script compilation error and suggest a fix.
- Convert this Pine Script v5 code to v6 syntax.

## Similar
- [pine-debugger](https://affpapa.org/en/nevibecode/skills/pine-debugger.md) — skill · 460 installs
- [pine-optimizer](https://affpapa.org/en/nevibecode/skills/pine-optimizer.md) — skill · 460 installs
- [code-documentation](https://affpapa.org/en/nevibecode/skills/aj-geddes-code-documentation.md) — skill · 492 installs
- [golang-documentation](https://affpapa.org/en/nevibecode/skills/golang-documentation.md) — skill · 40400 installs
- [go-documentation](https://affpapa.org/en/nevibecode/skills/go-documentation.md) — skill · 1300 installs
- [170-java-documentation](https://affpapa.org/en/nevibecode/skills/170-java-documentation.md) — skill · 359 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
