← All posts

Cline MCP setup: remote servers, JSON config and CLI

Set up an MCP server in Cline: the Remote Servers tab, cline_mcp_settings.json with type set to streamableHttp, the cline mcp add CLI, OAuth sign-in, and .clinerules.

QueryScope team · · 6 min read · cline mcp setup developers

You can add an MCP server to Cline in three ways: from the Remote Servers tab inside the extension, with cline mcp add in the terminal, or by editing cline_mcp_settings.json directly. A local server runs as a child process with command and args. A remote hosted server takes a url and, in JSON, needs "type": "streamableHttp" set explicitly so Cline does not fall back to legacy SSE.

Every field name, CLI flag and menu path below comes from Cline's MCP documentation, using this site's remote Search Console server as the worked example.

TL;DR:

  • Fastest in the IDE: open MCP Servers in the Cline toolbar, pick the Remote Servers tab, enter a name and URL, keep Streamable HTTP (recommended), and click Add Server.
  • In JSON: set "type": "streamableHttp" next to "url". Leaving type out defaults to legacy sse and fails on Streamable HTTP endpoints.
  • From the terminal: cline mcp add <name> <url> --transport http --yes, or run cline mcp for the interactive menu (including OAuth sign-in).
  • Local servers: pass command, args and env under mcpServers.
  • Make Cline call it: add a short rule in .clinerules at the repo root so the agent reaches for the server instead of asking for manual exports.

How do you add a remote MCP server in the Cline extension?

Use the Remote Servers tab if you want to skip editing JSON by hand. Cline's docs give four steps from the Cline panel:

  1. Click the MCP Servers icon (the stacked server icon in the top toolbar).
  2. Open the Remote Servers tab.
  3. Enter a Server Name (for example queryscope), paste the Server URL (https://mcp.queryscope.dev/mcp), and choose Streamable HTTP (recommended) as the transport type.
  4. Click Add Server.

Only pick SSE (Legacy) when an older server explicitly documents an SSE endpoint.

What goes in cline_mcp_settings.json?

To edit the JSON file yourself in the IDE extension, open MCP Servers, switch to the Configure tab, and click Configure MCP Servers near the bottom. In the Cline CLI, the same file lives at the path below (or whatever path CLINE_MCP_SETTINGS_PATH sets):

~/.cline/data/settings/cline_mcp_settings.json

Here is a remote Streamable HTTP server entry:

{
  "mcpServers": {
    "queryscope": {
      "type": "streamableHttp",
      "url": "https://mcp.queryscope.dev/mcp",
      "disabled": false,
      "autoApprove": []
    }
  }
}

One line here prevents the most common connection error in Cline. Cline's docs state: "The type field selects the transport. Omitting it defaults to the legacy sse transport for backward compatibility, so set "type": "streamableHttp" explicitly for the recommended transport." If you copy a Cursor snippet that only has {"url": "https://..."} without "type": "streamableHttp", Cline tries legacy SSE first.

If a remote server authenticates with a bearer token instead of browser OAuth, pass headers beside url:

{
  "mcpServers": {
    "my-api": {
      "type": "streamableHttp",
      "url": "https://api.example.com/mcp",
      "headers": {
        "Authorization": "Bearer your-token"
      },
      "disabled": false,
      "autoApprove": []
    }
  }
}

How do you add a local (stdio) MCP server?

Local servers run on your machine over standard input and output. Give Cline the executable in command, its flags in args, and any keys in env:

{
  "mcpServers": {
    "filesystem": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-filesystem",
        "."
      ],
      "disabled": false,
      "autoApprove": []
    }
  }
}

Use stdio when the tool needs local files or a local socket. When the server only talks to an external API, a hosted remote endpoint avoids local Node or Python version mismatches across machines.

Try it

Point an SEO agent at your own site, not just an essay about one.

QueryScope holds the plan for your site, reads your real Search Console, and hands the coding agent you already have one change at a time to rank for the searches you decided to win. From $49/month, everything included.

How do you add and manage servers from the Cline CLI?

Cline's CLI shares the same MCP definitions and adds both an interactive menu and scriptable commands. Run cline mcp in a terminal to open the wizard, which lists servers, adds or edits entries, toggles servers on and off, and runs Authorize OAuth for remote servers that sign in through a browser.

To add or remove servers without opening the menu, pass --yes:

# Remote Streamable HTTP server
cline mcp add queryscope https://mcp.queryscope.dev/mcp \
  --transport http --yes

# Local stdio server (everything after -- runs the server)
cline mcp add files --yes -- \
  npx -y @modelcontextprotocol/server-filesystem .

# Inspect configured servers
cline config mcp

# Remove a server
cline mcp remove queryscope

How do OAuth sign-in and tool approvals work?

Remote servers that use OAuth open your browser so you can approve access without pasting keys into cline_mcp_settings.json. If a token expires or needs to be re-authorized, run cline mcp and pick Authorize OAuth, or reconnect the server from the MCP Servers panel. For the Search Console server, that browser step is Google's own read-only consent screen (webmasters.readonly), which you can revoke from your Google account at any time.

By default, Cline pauses and shows each MCP tool call before running it. Keep autoApprove empty ([]) when you first connect a server so you can read the arguments it sends. Once you trust specific read-only tools, you can add their names to autoApprove while leaving anything that records changes on manual approval.

Why is the server connected and Cline still not calling it?

Two different things go wrong, and they look different in the panel:

  • The server fails to connect or lists zero tools. Check three things from Cline's troubleshooting table: "type": "streamableHttp" is present on remote HTTP endpoints, the URL ends on the exact MCP path (/mcp), and the server is not toggled to "disabled": true. If a heavy call times out, raise the server's timeout in MCP settings and restart it there.
  • The tools appear, and Cline ignores them. An MCP server only puts tools on the shelf; repo instructions tell the model when to pick them up. Add a .clinerules file in your repo root naming the server as the source for that job. When you run Cline SEO tasks without a rule, the agent guesses keywords from thin air or asks you to export Search Console CSVs by hand.

Using Cline for SEO with Google Search Console

Once the remote server above is connected and .clinerules points search questions to it, Cline can run SEO work straight from the site's repo: it reads your routes and copy to propose buyer searches, checks monthly demand and where your own Search Console already ranks you, holds the plan in queryscope.md, and works one change at a time with each edit measured from Google's recrawl.

See Google Search Console over MCP for how the hosted server compares to running a local Google Cloud OAuth project yourself. If your team also works in other editors, see Cursor MCP setup and how to add an MCP server to Claude Code.

Sources

  • Cline docs, Add, configure, and use MCP servers in Cline, read 2026-12-01 (cline_mcp_settings.json under ~/.cline/data/settings/ and CLINE_MCP_SETTINGS_PATH; the MCP Servers toolbar icon, Configure tab and Remote Servers tab; "type": "streamableHttp" vs omitting type defaulting to legacy sse; command, args, env, headers, disabled and autoApprove; cline mcp, cline mcp add ... --transport http --yes, cline mcp remove and cline config mcp; Authorize OAuth and troubleshooting steps).

Try it

Put an SEO agent in your editor.

Ask your coding agent what to work on. QueryScope reads your real Search Console, holds the searches you decided to win, and hands back one move at a time with the proof it worked. From $49/month, everything included. 1, 3 or 10 sites.