Skip to content

How to add MCP servers to Cline

Cline reads MCP servers from ~/.cline/data/settings/cline_mcp_settings.json, under the "mcpServers" key. A local server’s entry is a command with args; a remote server’s entry is its URL in "url".
Last checked against Cline’s docs

Quick facts

Local servers
Yes (stdio)
Remote servers
Streamable HTTP: Yes · SSE: YesURL field: url
Sign-in
OAuth: Partly · Headers: YesBrowser sign-in is documented for the Cline CLI (cline mcp, then Authorize OAuth). Tokens can go in headers.
Tool approval
Yes
Platforms
macOS, Windows and Linux

Step by step

Add a remote server

Example: a hosted server whose latest check on AI-Powered answered, Context7.

Add to cline_mcp_settings.json

{
  "mcpServers": {
    "context7": {
      "type": "streamableHttp",
      "url": "https://mcp.context7.com/mcp"
    }
  }
}

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

Add a local server

Example: a popular npm package that needs no keys, Chrome DevTools MCP.

Add to cline_mcp_settings.json

{
  "mcpServers": {
    "chrome-devtools-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "chrome-devtools-mcp"
      ]
    }
  }
}

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

Add a server that needs an API key or header

Local servers read keys from environment variables. Replace each <NAME> placeholder with your own value in the file on your computer; never paste real keys into a website.

Example: Context7.

Add to cline_mcp_settings.json

{
  "mcpServers": {
    "context7": {
      "command": "npx",
      "args": [
        "-y",
        "@upstash/context7-mcp"
      ],
      "env": {
        "CONTEXT7_API_KEY": "<CONTEXT7_API_KEY>"
      }
    }
  }
}

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

Request headers for remote servers: yes. Browser sign-in is documented for the Cline CLI (cline mcp, then Authorize OAuth). Tokens can go in headers.

Add a server that signs in with OAuth

OAuth sign-in: partly. Add the server by its URL as a remote server, then sign in when asked. Browser sign-in is documented for the Cline CLI (cline mcp, then Authorize OAuth). Tokens can go in headers.

Config file locations

ForSystemPath
You (every project)All systems~/.cline/data/settings/cline_mcp_settings.json

Get the config for any server

Search the MCP servers on AI-Powered and copy the Cline snippet for one.

Adding several servers? Build one config with the MCP config generator.

Servers that work in Cline

Popular servers with an install config for Cline and no failing latest check.
  1. REA

    MCP server

    CLI and MCP server that lets coding agents reverse engineer apps and binaries

    Runs locally
    • Open source
    • 476K GitHub stars
    • Developer tools
  2. Browser Use

    MCP server

    Browser agents and cloud browsers for AI, with an MCP server for web tasks

    • 7 tools
    • Remote
    • Freemium
    • 122K GitHub stars
    • Browser automation
  3. MCP server for AI clients to scrape sites with HTTP and stealth browser sessions

    Runs locally
    • 17 tools
    • Open source
    • 105K GitHub stars
    • Web search and scraping
  4. Hosted MCP connector for creating and rendering videos from HTML through AI chat

    • Remote
    • Freemium
    • 89K GitHub stars
    • Design and media
  5. Context7

    MCP server

    Version-specific library docs and code examples piped into coding agents via MCP

    • 2 tools
    • Remote
    • Freemium
    • 65.4K GitHub stars
    • Developer tools
  6. MCP server and CLI that let coding agents drive and inspect a live Chrome browser

    Runs locally
    • Open source
    • 59.1K GitHub stars
    • Browser automation
  7. Codebase Memory

    MCP server

    Local MCP server that builds a code knowledge graph for AI coding agents

    Runs locally
    • Open source
    • 49.1K GitHub stars
    • Knowledge and memory
  8. GitHub

    MCP server

    Official MCP server connecting AI assistants to GitHub repos, issues and workflows

    • Remote
    • Open source
    • 34.7K GitHub stars
    • Developer tools
  9. MCP toolkit giving coding agents symbol-level code retrieval and editing

    Runs locally
    • Open source
    • 31.7K GitHub stars
    • Developer tools
  10. ffmpeg-skill

    MCP server

    Local FFmpeg video and audio editing tools for coding agents over MCP

    Runs locally
    • Open source
    • 10.3K GitHub stars
    • Design and media
  11. Ha MCP

    MCP server

    MCP server for managing and automating Home Assistant from AI assistants

    Runs locally
    • 8 tools
    • Open source
    • 8.1K GitHub stars
    • Productivity
  12. Open-source analytics app where an AI agent builds charts and dashboards from your data

    • Remote
    • Open source
    • 7.8K GitHub stars
    • Analytics and data

Troubleshooting

A remote server won’t connect
Without a type, Cline treats a remote server as SSE. Set "type": "streamableHttp" for current servers.
Where is the settings file in the editor?
Click the MCP Servers icon in the Cline panel, open Configure, then Configure MCP Servers. That opens cline_mcp_settings.json.
Tool calls time out
Raise the server’s request timeout in MCP settings and check that the server answers on its own.
A server stops responding
Use the restart option for that server in MCP settings.
A local server fails with “npx” (or uvx, docker) not found
Apps started from a dock or menu may not see your terminal’s PATH. Use the full path of the command (run which npx in a terminal to find it), then restart Cline.
You can’t tell whether the server or Cline is at fault
Test the server on its own with the MCP Inspector (npx @modelcontextprotocol/inspector). If it lists tools there, check the Cline setup.

Where to find logs

  • MCP Servers icon in the Cline panel → Configure shows each server and lets you restart it.

Safety notes

  • Keep autoApprove to read-only tools you trust; everything else should ask first.
  • Review each tool call before you approve it.
  • Tokens in headers or env are stored in plain text in cline_mcp_settings.json.
  • A local server runs on your computer with your access to files and the network. Add only servers whose source you trust.

Questions about MCP in Cline

Where is cline_mcp_settings.json?

The Cline CLI uses ~/.cline/data/settings/cline_mcp_settings.json (change it with CLINE_MCP_SETTINGS_PATH). In the editor, open it from MCP Servers → Configure → Configure MCP Servers.

Why do I need "type": "streamableHttp"?

Cline falls back to the older SSE connection when type is missing, so most current remote servers fail without it.

Can I add a remote server without editing JSON?

Yes. The Remote Servers tab asks for a name, the server URL and the transport type.

How do I add a server from the Cline CLI?

Run cline mcp for a guided menu, or cline mcp add <name> --yes -- <command> for a local server and cline mcp add <name> <url> --transport http --yes for a remote one.

Can I use local MCP servers in Cline?

Yes. Cline starts a local server as a command on your computer (stdio).

Can Cline sign in to MCP servers with OAuth?

Partly. Browser sign-in is documented for the Cline CLI (cline mcp, then Authorize OAuth). Tokens can go in headers.

Other MCP clients