VS Code Extension · Open Source

Add Custom MCP Tools to Cline's VS Code Agent

Cline is the most popular open-source AI coding agent for VS Code. Its autonomous mode can plan, code, and run commands — and with MCP, it can call your custom browser-built tools mid-task.

Share:

What is Cline?

Cline (formerly Claude Dev) is a free, open-source VS Code extension that gives you an autonomous AI coding agent directly in your editor. It can read files, run terminal commands, call APIs, and now — with MCP — call any custom tool you build in Agent MCP Studio. It works with any LLM backend (Claude, OpenAI, local models).

Prerequisites

Step-by-Step Setup

  1. Get your relay URL

    Open the studio → SettingsMCP Relay Bridge. Copy the wss:// URL and click Connect.

  2. Download bridge.js

    curl -O https://agentmcp.studio/bridge.js
    npm install ws
  3. Add the MCP server in Cline settings

    In VS Code, click the Cline icon in the sidebar → click the MCP Servers tab (plug icon) → Edit MCP Settings. This opens a JSON file. Add your server:

    {
      "mcpServers": {
        "agent-mcp-studio": {
          "command": "node",
          "args": [
            "/absolute/path/to/bridge.js",
            "wss://agentmcp.studio/api/relay/YOUR-SESSION-UUID"
          ],
          "disabled": false,
          "autoApprove": []
        }
      }
    }
    Auto-approve tip

    Add tool names to autoApprove to let Cline call them without asking each time: "autoApprove": ["fetch_webpage", "query_database"]

  4. Verify connection

    Cline automatically starts bridge.js when it loads the config. The MCP Servers tab will show a green dot next to agent-mcp-studio. The bridge chip in Agent MCP Studio will show 🟢 Live.

  5. Use tools in Cline's agent

    Open a new Cline task and reference your tool by name: "Use the fetch_webpage tool to get the content of our API docs page and summarise the endpoints."

Cline-Specific Features

Cline's MCP integration includes some extras beyond basic tool calling:

Troubleshooting

Frequently Asked Questions

Click the MCP Servers icon in the Cline panel (or open Cline settings → MCP Servers). Click "Add Server", choose "Command" type, and enter node as the command with your bridge.js path and relay URL as arguments. No JSON editing needed.

Yes — Cline was originally called Claude Dev before being renamed. It's the most popular open-source AI coding agent extension for VS Code, with millions of downloads and support for all major LLM providers.

Yes. Cline supports OpenAI, Anthropic, Gemini, local models via Ollama, and many others. MCP tools you expose through Agent MCP Studio are available regardless of which LLM backend Cline is using.

Common fixes: reload VS Code after adding the server, ensure Node.js is in your PATH (test with node --version in terminal), verify the relay UUID matches Studio Settings, and confirm you clicked Connect in Agent MCP Studio first.

Yes — Cline supports multiple MCP servers simultaneously. Each appears as a separate entry in the MCP Servers panel. All configured servers' tools are available to the agent at once.

Related Integrations