AI Tools

Pine Script MCP Servers Compared

Compare Pine Script MCP servers: TradingView's official server and its new Pine tools, docs-only servers, Claude Code skills, and the desktop-driving option.

Tom Hartman

Marketing

11 Min Read Reviewed by Mike Christensen Fact-checked by Mike Christensen
BluSky — The Future of Trading. Prop firm futures trading. Sign up at BluSky.pro.

A Pine Script MCP server gives an AI assistant what the base model lacks: current Pine Script v6 documentation, a compiler to check its code against, or a way to save scripts to TradingView. Since November 2026, TradingView's own MCP server does most of that itself, so the question is no longer whether an assistant can work with Pine, but which server fits the job.

This comparison covers four options: TradingView's official server, the docs-only servers pine-mcp and pinescript-mcp, the pinescript-agents skills for Claude Code, and tradingview-mcp, a community tool that drives TradingView Desktop. It is part of our Best AI for Pine Script series.

The difference that matters most is access. A docs server reads files bundled with the package and never touches your account. TradingView's server signs in to your account with limited, documented tools. tradingview-mcp works inside the Desktop app you are logged in to, and its own README warns that its automation may conflict with TradingView's Terms of Use.1

What a Pine Script MCP Server Adds

MCP in One Paragraph

The Model Context Protocol (MCP) is a standard way for an AI application to talk to outside tools and data. The current specification, version 2026-07-28, describes hosts (the AI app), clients and servers exchanging JSON-RPC 2.0 messages, and a server can offer resources, prompts and tools. The specification says tools "represent arbitrary code execution and must be treated with appropriate caution," and hosts must get user consent before invoking one.2

Three Jobs a Server Does

  • Reference lookup: the assistant checks a v6 function signature instead of guessing names, arguments or return types.
  • A compile loop: the assistant sends code to a real compiler and fixes errors before calling the script finished.
  • Account actions: the server saves scripts, runs them on a chart or backtests them inside your TradingView account.

Docs servers do the first job. TradingView's server now does all three. tradingview-mcp does all three by remote-controlling the Desktop app.

TradingView's Official MCP Server

What It Covers

TradingView's server lists 38 tools in nine groups: watchlists, market data, symbol search, screener, news, documents, calendars, alerts and Pine scripts. Every client uses one URL, https://mcp.tradingview.com/mcp, and you sign in with your TradingView account over OAuth 2.1 instead of handling API keys. It requires a paid plan, and the docs still describe the toolset as a beta that expands over time.3 TradingView opened the public beta on September 16, 2026.4

The Pine Tools Added in November

On November 16, 2026, TradingView added eight Pine Script tools.5

  • Write and check: validate_pine_script compiles code and returns the errors.
  • Run: run_pine_indicator returns plot values on a symbol, and run_pine_backtest returns the strategy report, including Deep Backtesting over a date range.
  • Find and read: search_pine_scripts, get_pine_script_info and get_pine_script_source. Protected and invite-only scripts stay closed.
  • Save: create_pine_script and update_pine_script.

The guardrails are the useful part. The documented flow is to validate until the code compiles, run or backtest it, and save only when you ask. Code that does not compile is never saved, create_pine_script refuses a name that is already taken, and update_pine_script saves a new version and keeps the old ones. Repeated compile timeouts can block Pine compilation for an hour.3

Daily Call Limits

From November 17, 2026, every MCP call counts against a daily limit set by your plan. TradingView's documentation lists these limits:3

  • Essential or any legacy plan: 10 calls a day.
  • Plus: 20 calls a day.
  • Premium: 50 calls a day.
  • Ultimate: 500 calls a day.

TradingView's separate AI subscription raises any paid plan to 500 calls a day and 50 a minute.3 A validate, fix and revalidate loop uses several calls per script, so on Essential a docs server is still worth keeping for lookups.

What It Will Not Do

Alerts created through MCP take a single price condition (cross, cross up, cross down, greater or less), and multi-condition or indicator alerts are rejected. Webhook alerts cannot be created or updated through MCP, because TradingView requires two-factor verification before enabling webhooks and that check is not available to MCP connections.3

The terms go further. TradingView says its MCP data "is for viewing, not for machines to act on": don't use the server for automated trading or trading decisions, don't let an AI client place, change or cancel broker orders, and don't connect MCP alerts to webhooks or bots that trade.3 Treat it as an authoring and research tool. Its job ends when the script is saved.

Connecting Claude, ChatGPT or Codex

In Claude, open Settings, then Customize, then Connectors, search for TradingView, choose TradingView MCP and click Connect to Claude, then approve access on TradingView's page. In Claude Code, run the command below, then /mcp to finish signing in.3

claude mcp add --transport http mcp-tradingview https://mcp.tradingview.com/mcp

In ChatGPT, open Settings, then Plugins, add an MCP server of type Streamable HTTP with the same URL, and authenticate. From the Codex terminal, run codex mcp add tradingview --url https://mcp.tradingview.com/mcp.3

Docs-Only Pine Script Servers

pine-mcp: One-Line Install

pine-mcp is TradersPost's open-source Pine Script v6 documentation server. In Claude Code it installs with one command and nothing to host:

claude mcp add pinescript -- npx -y pinescript-mcp-server

It bundles the v6 reference (457 functions and 427 variables) and the full user guide, and exposes five tools: pine_search, pine_reference, pine_guide, pine_examples and pine_categories. It is MIT licensed, needs Node.js 18 or later, and runs over stdio, so Claude Desktop, Cursor and Windsurf can use it too.6

pinescript-mcp: Hosted or Local

paulieb89/pinescript-mcp runs locally with uvx pinescript-mcp, or you can point a client at the hosted endpoint https://pinescript-mcp.fly.dev/mcp and skip installing Python. Its tools include resolve_topic, search_docs, get_functions and validate_function, which checks whether a function exists in v6, plus prompts for debugging a compile error and converting v5 code to v6. It is MIT licensed.7

Each release bundles a frozen snapshot of the docs. Pin a version, for example uvx pinescript-mcp==0.7.7, to keep the reference set the same from one session to the next.7 Whichever server you use, check when its bundled docs were last updated before trusting it on syntax TradingView added recently.

Why Docs Servers Still Matter

A docs server answers "does this function exist and what does it take?" without a TradingView account, without using your daily MCP calls, and without any access to your saved scripts. Pair one with TradingView's server and the assistant can look things up freely, then spend real compile calls only on finished drafts.

Claude Code Skills for Pine

The pinescript-agents Skill Set

Our pinescript-agents repository is a Pine Script workspace for Claude Code built on seven skills: pine-visualizer, pine-developer, pine-debugger, pine-backtester, pine-optimizer, pine-manager and pine-publisher. Each one activates from the wording of your request rather than a slash command. Clone the repository, open it in the Claude Code CLI or the VS Code extension, and type start for a guided setup, or ask directly, for example "Create an RSI divergence indicator with alerts."8

Skills and Servers Together

The two do different jobs. A skill such as pine-developer decides what to build and writes the code. A docs server supplies the signatures it writes from, and TradingView's server can compile and backtest the result. The MCP specification lists Skills over MCP as an optional extension, separate from core tools.2

Driving TradingView Desktop

What tradingview-mcp Does

tradingview-mcp connects an assistant to TradingView Desktop through the Chrome DevTools Protocol, after you launch the app with --remote-debugging-port=9222. Its tools set and compile Pine source, save to your TradingView cloud account, change symbols, draw on charts and manage alerts.1 TradingView's own Pine tools now cover compiling and saving through a documented, versioned path.

Terms of Use and Account Risk

The README says the project is not affiliated with TradingView, reaches it through undocumented internal APIs that "can change or break without notice in any TradingView update," and may conflict with TradingView's Terms of Use, which restrict automated data collection.1 It also acts as you, so a bug changes your real account. Three reports were still open as of November 2026:

  • The compile tool clicked Save and replaced a 312-line saved strategy with a 13-line probe while reporting success.9
  • A save landed on a different saved script than the one opened, again with a success message.10
  • Passing delete_all: "false" to the alert tool deleted every active alert.11

For Pine work, TradingView's own tools now do the same job without these risks. If you still run tradingview-mcp, back up your scripts, keep a throwaway script open in the Pine Editor while testing, and approve each write yourself.

Security Before You Install

MCP's security guidance treats local servers as their own attack category: a server is a program that runs on your machine, and a malicious startup command or package can run any command with the client's privileges.12 The specification also says tool descriptions should be treated as untrusted unless they come from a trusted server.2

  • Read the exact startup command, package name and repository before you approve an install.
  • Pin package versions so a server cannot change under you.
  • Keep read-only lookup separate from tools that save scripts or change alerts.
  • Approve each write instead of granting blanket permission.

From Saved Script to Alert

Match the Server to the Job

  • Syntax and reference: pine-mcp or pinescript-mcp. No account access, no daily limit.
  • Compile, backtest and save: TradingView's official server, within your plan's daily calls.
  • A structured Claude Code workflow: the pinescript-agents skills, paired with a docs server.
  • Desktop automation: tradingview-mcp, only if you accept its Terms of Use warning and the open bugs above.

Where the Assistant Stops

TradingView's MCP terms rule out connecting MCP alerts to trading webhooks, and MCP cannot create webhook alerts anyway.3 So the assistant's work ends with a saved, compiling script. Open it in the Pine Editor, add it to a chart, review the logic and alert messages yourself, and create any alert in TradingView's own alert dialog with the webhook URL you enter by hand. This is our reading of TradingView's MCP terms as of November 2026, not legal advice; check TradingView's current terms, or ask TradingView, before you rely on it.

If that alert feeds TradersPost, send your first signals with "test": true, which processes them without sending an order to your broker, then route the strategy to the paper broker or your broker's paper account before anything goes live. You decide when it runs live, on your own account.

Bottom Line

  • TradingView's official server now validates, runs, backtests and saves Pine Script, with versioned saves and no overwrites, inside a daily call limit.
  • A docs-only server is still the low-risk start: current v6 reference with no account access and no call limit.
  • Claude Code skills shape the workflow; servers supply the reference and the compiler.
  • tradingview-mcp has open bugs that overwrote scripts and deleted alerts, and its README warns about TradingView's Terms of Use.
  • TradingView's MCP terms keep MCP out of automated trading, so you review the script and create the alert yourself.

For the model comparison behind the MCP layer, read Best AI for Pine Script, or see Claude Code and Pine Script for the full Claude Code setup.

Frequently Asked Questions

Does TradingView Have an MCP Server?

Yes. It entered public beta on September 16, 2026, requires a paid plan, and since November 16, 2026 includes eight Pine Script tools that validate, run, backtest and save scripts. Daily call limits start at 10 on Essential.

Which Server Should I Start With?

Start with pine-mcp for a one-command setup with no account access, or pinescript-mcp if you want a hosted endpoint and version pinning. Add TradingView's server when you want the assistant to compile and backtest against real data.

Can an Assistant Overwrite My Scripts?

Not through TradingView's server: it never saves non-compiling code, refuses a taken name, and keeps old versions on update. tradingview-mcp has open reports of overwritten scripts, so back up before using it.

Can MCP Set Up My Webhook Alert?

No. TradingView's server cannot create or update webhook alerts, and its terms say not to connect MCP alerts to webhooks or bots that trade. Create the alert yourself in TradingView's alert dialog.

References

1 tradesdontlie/tradingview-mcp README
2 Model Context Protocol Specification 2026-07-28
3 TradingView MCP Server Documentation
4 TradingView MCP Server Public Beta
5 The TradingView MCP Now Speaks Pine Script and Introduces Daily Limits
6 TradersPost/pine-mcp
7 paulieb89/pinescript-mcp
8 TradersPost/pinescript-agents
9 tradingview-mcp issue 395: pine_compile can overwrite the open saved script
10 tradingview-mcp issue 513: saves overwrite the wrong script
11 tradingview-mcp issue 527: delete_all "false" deletes every alert
12 MCP Security Best Practices

All In AI Tools
  • AI Tools Nov 20, 2026

    Use Massive Market Data in ChatGPT

    Connect Massive (formerly Polygon.io) to ChatGPT, see what each Massive plan returns, avoid the common pitfalls, and take research to a tested signal on your own account.

  • AI Tools Oct 10, 2026

    Free AI Pine Script Generator Options

    Compare free AI tools for Pine Script: DeepSeek, Qwen, Mistral Vibe, Meta Muse, Perplexity, PineGen, and LuxAlgo Quant, by features and trader reports.

  • AI Tools Oct 10, 2026

    Cursor and GitHub Copilot for Pine Script

    Cursor and GitHub Copilot for Pine Script compared: plans, model pools, rules files, MCP support, and what traders actually report in forum posts.

  • AI Tools Oct 10, 2026

    Claude Pine Script: From Prompt to Webhook

    How to prompt Claude for Pine Script v6, backtest the strategy, add alert_message JSON, and connect a TradingView webhook, with the current model lineup.

Ready to put what you read into practice?

Free 7-day trial

Set-up in 3 minutes

Paper account for testing

By continuing, you agree to the TradersPost Terms of Service and Privacy Policy. This site is protected by reCAPTCHA.