
How to add an MCP server to Cline
Add MCP servers to Cline from the MCP Servers panel in your editor, or with the cline mcp command in a terminal.
- Local servers
- Yes
- runs stdio servers
- Hosted servers
- Yes
- connects by URL
- Config
- JSON
- how servers are added
- Picks
- 5
- ranked
In the Cline panel, click the MCP Servers icon, open Configure, and choose Configure MCP Servers to edit the settings JSON. For a hosted server, use the Remote Servers tab and enter a name and URL. In the terminal, run cline mcp for a wizard or cline mcp add to script it. One thing to know: if a remote entry has no type, Cline assumes legacy SSE, so set "type": "streamableHttp" yourself.
Good for
- VS Code, Cursor or JetBrains users who run Cline as an extension
- Terminal users who want cline mcp add in scripts
- People connecting a hosted server by URL in the Remote Servers tab
- Anyone who wants to limit which MCP tools Cline approves on its own
Install Cline
Cline
- 1
In the Cline panel, click the MCP Servers icon in the top toolbar.
- 2
Open the Configure tab.
- 3
Click Configure MCP Servers to open the settings JSON.
- 4
Add or edit entries under mcpServers.
Requires Cline extension.
Install the Cline extension from the Extensions view (search for Cline) in VS Code, Cursor, Windsurf, VSCodium or Antigravity, or from the JetBrains plugin page, first. Cline also ships as a CLI and a desktop app. The IDE settings file has no documented path; open it from the Configure MCP Servers button.
From the vendor's docs. Source.
At a glance
- Open the settings (IDE)
- MCP Servers icon, Configure tab, Configure MCP Servers
- Config file (CLI)
- ~/.cline/data/settings/cline_mcp_settings.json
- Override the path
- CLINE_MCP_SETTINGS_PATH environment variable
- Top-level key
- mcpServers
- Default when type is missing
- Legacy SSE
- Sign in (OAuth)
- Supported; cline mcp has an Authorize OAuth action
- Per-server switches
- disabled, autoApprove
- Manage servers
- Enable, disable, restart, set timeouts, remove
Add an MCP server to Cline
- 1
Open the MCP settings
In the Cline panel, click the stacked server icon in the top toolbar, open the Configure tab, and click Configure MCP Servers. This opens the settings JSON.
- 2
Add a local server
{ "mcpServers": { "local-server": { "command": "node", "args": ["/path/to/server.js"], "env": { "API_KEY": "your_api_key" }, "disabled": false, "autoApprove": [] } } }Keep
autoApproveshort. Only list tools you are happy to run without a prompt. - 3
Or add a hosted server
Use the Remote Servers tab, or add the entry yourself:
{ "mcpServers": { "remote-server": { "type": "streamableHttp", "url": "https://example.com/mcp", "headers": { "Authorization": "Bearer your-token" } } } }Without
type, Cline uses the legacyssetransport. - 4
Or use the terminal
cline mcp add files --yes -- npx -y @modelcontextprotocol/server-filesystem . cline mcp add docs https://example.com/mcp --transport http --header "Authorization: Bearer TOKEN" --yes cline mcp remove docsLeave out
--yesto open the wizard with the fields filled in. Runcline config mcpto list servers. - 5
Check it loaded
Back in the MCP Servers panel, confirm the server is on and its tools are listed. Then ask Cline to call one tool.
- 6
If it does not work
Check the command or URL, that the server process is running, and the port. For auth errors, re-check keys and headers. For timeouts, raise the MCP timeout in the server settings and test the server directly.
Best MCP servers for Cline
Official servers with an approved PlugWiki page that run in Cline over stdio or HTTP; ordered by GitHub stars, then name. Derived from data we hold.
- 1
Context7OfficialHosted or LocalAPI keyGives Cline current library docs while it writes code.
64,001 GitHub stars - 2
Playwright MCPOfficialLocalLets Cline drive and test your app in a real browser.
38,887 GitHub stars - 3
GitHub MCP ServerOfficialHosted or LocalOAuthPull requests, issues and code search beyond what git can do.
34,115 GitHub stars - 4
sentry-mcpOfficialHosted or LocalOAuthPulls Sentry errors into Cline so it can find the cause.
952 GitHub stars - 5
Notion MCPOfficialHostedOAuthRead and edit specs and notes in Notion through its hosted server.
MCP servers that work in Cline
40 · official first, then servers with a page, then by stars
Scrapling MCP ServerOfficialLocalNo sign-inWeb scraping with stealth HTTP, real browsers, and Cloudflare bypass. CSS selectors supported.
90.6K GitHub stars
Context7OfficialHosted or LocalAPI keyUp-to-date docs for AI agents
64K GitHub stars
Chrome DevTools MCPOfficialLocalMCP server for Chrome DevTools
54.5K GitHub stars
Playwright MCPOfficialLocalPlaywright MCP server
38.9K GitHub stars
GitHub MCP ServerOfficialHosted or LocalOAuthGitHub's official MCP server. Lets an AI assistant read code, manage issues and pull requests, check Actions runs and security alerts. Hosted at api.githubcopilot.com/mcp or run locally with Docker or a Go binary.
34.1K GitHub stars
OpenWork MCP GatewayOfficialHostedOAuthYour OpenWork org's skills, plugins, workflows, and connections through one OAuth MCP URL.
24.3K GitHub stars
MCP Toolbox for DatabasesOfficialLocaltoken in envMCP Toolbox for Databases enables your agent to connect to your database.
16.8K GitHub stars
apify-mcp-serverOfficialHosted or LocalOAuthExtract data from any website with thousands of scrapers, crawlers, and automations on Apify Store ⚡
14K GitHub stars
SeleniumBase MCPOfficialLocalNo sign-inStealthy browser automation, testing, and web-scraping via CDP Mode.
13.2K GitHub stars
AutoClipOfficialLocalNo sign-inClip long videos into short clips with covers and captions. Local CLI and MCP.
9.9K GitHub stars
Firecrawl MCP ServerOfficialHosted or LocalAPI keyFirecrawl, the context API for AI agents: search, scrape, interact with the web, plus paper search.
7.7K GitHub stars
firecrawl-mcp-serverOfficialLocalAPI keyOfficial Firecrawl MCP server, the context API for AI agents: search, scrape, and interact with the web, plus parse, crawl, map, Agent and Monitor, from any MCP client.
7.7K GitHub stars
MobileBuildMCPOfficialLocalBuild, run and test iOS and macOS apps, drive the simulator and debug with LLDB from your AI assistant. Formerly XcodeBuildMCP.
6.5K GitHub stars
magic-mcpOfficialLocalAPI keyIt's like v0, but in your Cursor / Claude Code / Windsurf: search 10,000+ React/Tailwind components, generate new UI with AI, and publish your own — right from your editor. Magic MCP is now the 21st MCP; this package keeps old configs working. Setup: 21st.dev/mcp
6.3K GitHub stars- Excalidraw MCPOfficialHosted or LocalNo sign-in
Official Excalidraw MCP App server: streams hand-drawn diagrams into the chat with interactive fullscreen editing. Hosted or local.
5.6K GitHub stars
Exa MCP ServerOfficialHosted or LocalOAuthConnect AI agents to Exa for web search, content fetching, and multi-step research.
5.2K GitHub stars
notion-mcp-serverOfficialLocaltoken in envOfficial Notion MCP Server
4.7K GitHub stars
mcp-grafanaOfficialHosted or LocalAn MCP server giving access to Grafana dashboards, data and more.
3.6K GitHub stars- Google Analytics MCP ServerOfficialLocaltoken in env
Google's official Google Analytics MCP server: runs locally and queries GA4 reports and property settings with your Google credentials. Read-only unless you add the --allow-write flag.
3.6K GitHub stars
SupabaseOfficialHosted or LocalOAuthMCP server for interacting with the Supabase platform
3K GitHub stars
Show all 40Show fewer
brightdata-mcpOfficialLocaltoken in envA powerful Model Context Protocol (MCP) server that provides an all-in-one solution for public web access.
2.7K GitHub stars
Perplexity MCP ServerOfficialHosted or LocalOAuthConnector for Perplexity API, to enable real-time, web-wide research.
2.6K GitHub stars
tavily-mcpOfficialLocalProduction ready MCP server with real-time search, extract, map & crawl.
2.5K GitHub stars
Solana MCP by VybeOfficialHostedOAuthSolana MCP developer toolkit: wallets, trades, markets, PnL, transfers, onchain, swaps & API tools.
2.2K GitHub stars
Azure DevOps (ADO)OfficialHostedOAuthThe MCP server for Azure DevOps, bringing the power of Azure DevOps directly to your agents.
2.1K GitHub stars
Azure DevOps Local MCP ServerOfficialLocalOAuthThe MCP server for Azure DevOps, bringing the power of Azure DevOps directly to your agents.
2.1K GitHub stars
anysearch-mcp-serverOfficialHostedAPI keyUnified real-time search MCP server supporting general web search, vertical domain search, parallel batch search, and full-page URL content extraction.
2.1K GitHub stars
Microsoft Learn MCPOfficialHostedNo sign-inOfficial Microsoft Learn MCP Server – real-time, trusted docs & code samples for AI and LLMs.
2K GitHub stars- WordPress MCP AdapterOfficialLocal
The official WordPress plugin that turns a self-hosted site into an MCP server, exposing Abilities API actions from core, plugins and themes over STDIO (WP-CLI) or HTTP.
1.9K GitHub stars
MeiGen-AI-Design-MCPOfficialHosted or LocalOAuthDiscover inspiration and create images and videos with the latest AI models. Works with ChatGPT, Claude, Cursor, and other MCP clients.
1.8K GitHub stars
MATLAB MCP ServerOfficialLocalNo sign-inConnect AI coding agents to MATLAB. Run code, tests, and analysis via MCP.
1.7K GitHub stars
datagouv-mcpOfficialHostedNo sign-inOfficial data.gouv.fr Model Context Protocol (MCP) server that allows AI chatbots to search, explore, and analyze datasets from the French national Open Data platform, directly through conversation.
1.6K GitHub stars
MiniMax-MCPOfficialLocalAPI keyOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
1.6K GitHub stars
mcp-server-qdrantOfficialLocalAPI keyAn official Qdrant Model Context Protocol (MCP) server implementation
1.6K GitHub stars
TerraformOfficialHosted or LocalAPI keyGenerate more accurate Terraform and automate workflows for HCP Terraform and Terraform Enterprise
1.6K GitHub stars
@brave/brave-search-mcp-serverOfficialLocalBrave Search MCP Server: web results, images, videos, rich results, AI summaries, and more.
1.5K GitHub stars
IDA MCPOfficialLocalNo sign-inOfficial Hex-Rays MCP server that lets AI agents open, decompile and annotate binaries in IDA, alongside you in the IDA GUI or headless.
1.5K GitHub stars- X MCP (X API)OfficialHosted or LocalOAuth
X's hosted MCP server for the X API at api.x.com/mcp: AI clients search posts, read users, trends and news, manage bookmarks and publish Articles through your X developer app, directly or via the xurl mcp bridge.
1.4K GitHub stars
Power BI Authoring MCP Server (Local)OfficialLocalOAuthThe Power BI Authoring MCP server lets an AI agent create and change Power BI semantic models.
1.3K GitHub stars
ref-tools-mcpOfficialLocalAPI keyToken efficient search for coding agents over public and private documentation.
1.2K GitHub stars
Common errors and fixes
Server will not connect
Cause: The command or URL is wrong, the server process is not running, or the port is blocked.
Fix: Verify the command or URL, the server process and the port.
cline Source
Tools are missing
Cause: The server did not start, or does not expose the tools you expect.
Fix: Confirm the server started and that it exposes tools.
cline Source
Auth errors from a remote server
Cause: The API key, token or required header is wrong.
Fix: Re-check keys, tokens and headers in the entry.
cline Source
Timeout errors
Cause: The server answers more slowly than the MCP request timeout.
Fix: Increase the MCP timeout in the server settings and test the server's response directly.
cline Source
A hosted server connects over the wrong transport
Cause: The entry has no type, so Cline uses legacy SSE.
Fix: Add "type": "streamableHttp" for a streamable HTTP server.
cline Source
Verdict
Cline lets you add servers three ways (panel, JSON, CLI) and handles stdio, streamable HTTP and SSE in one settings file. The main limit is the SSE default for entries without a type, so always set it for remote servers.
Cline lets you add servers three ways (panel, JSON, CLI) and handles stdio, streamable HTTP and SSE in one settings file. The main limit is the SSE default for entries without a type, so always set it for remote servers.
Best for
- Developers who run Cline inside VS Code, Cursor or JetBrains
- Teams that script server setup with cline mcp add
Skip it if
- You need a documented file path for the IDE settings (the docs point to the Configure MCP Servers button)
Questions
Where is the Cline MCP config file?
In the IDE, click Configure MCP Servers in the MCP Servers panel to open it. In the CLI it is ~/.cline/data/settings/cline_mcp_settings.json, and CLINE_MCP_SETTINGS_PATH overrides that.
Does Cline support remote (HTTP) MCP servers?
Yes. Use the Remote Servers tab or a url entry. Pick Streamable HTTP (recommended) or SSE (legacy).
Why does my remote server use SSE in Cline?
Because type is missing. Cline defaults to the legacy sse transport for backward compatibility, so set "type": "streamableHttp".
Does Cline support OAuth for MCP servers?
The docs list an Authorize OAuth action in the cline mcp CLI wizard, which runs or reruns browser authorization for a remote server.
How do I add an MCP server from the command line?
Run cline mcp add <name> -- <command> for a local server, or cline mcp add <name> <url> --transport http for a remote one. Add --yes to skip the wizard.
How do I turn an MCP server off in Cline?
Use the enable or disable toggle in the MCP settings, or choose that action in cline mcp. You can also set "disabled": true on the entry.
What does autoApprove do?
It lists tools Cline can run without asking you. Keep it to safe tools and review the rest as they come.
Does Cline work in editors other than VS Code?
Yes. The extension installs in VS Code, Cursor, Windsurf, VSCodium, Antigravity and JetBrains, and Cline also has a CLI and a desktop app.
Information
updated Nov 2, 2026
- Transports
- stdio, SSE, Streamable HTTP
- Config file (all)
cline_mcp_settings.json (via the MCP Servers panel)- MCP docs
- docs.cline.bot
Sources
Docs, issue trackers and discussions this page is built from.
Show all 2Hide
- MCP · docs.cline.bot
- Installing Cline · docs.cline.bot