- Home
- Learn
- MCP and Protocols
- Cline MCP Setup Guide: How to Add MCP Servers in VS Code
Cline MCP Setup Guide: How to Add MCP Servers in VS Code
Cline supports MCP for connecting to external tools within VS Code. How to configure servers, which ones work best, and how SKILL.md skills enhance Cline.
First published 30-04-2026, updated 23-11-2026. Last verified 23-11-2026: Cline's MCP settings change between releases, and we re-check this page monthly.
Quick answer
To set up MCP in Cline, open the MCP Servers panel in the Cline sidebar and either add a hosted server on the Remote Servers tab (name, URL, transport Streamable HTTP) or click Configure MCP Servers and add an entry under mcpServers in the JSON file. In Cline CLI, run cline mcp for a wizard that does the same. Check that the server's tools appear, then run one test call before you rely on it.
This guide is for a developer or a small product team that writes code in VS Code with Cline and wants it to reach more than the files in the repository: a database, an issue tracker, live search data, or an image model for the product page you are building. It walks through the three ways to add a server as Cline's documentation describes them on 23-11-2026, shows both config shapes, ranks the servers we would add first and ends with a worked example of Cline generating an image and a short video through one connection. If you use more than one agent in VS Code, our GitHub Copilot agent mode MCP setup guide covers the same job in Copilot.
How we checked this
Our method in three lines: we read Cline's MCP documentation, Agensi's own MCP setup and tools docs and the live Agensi tools pages on 23-11-2026; we opened the top three US results for "cline mcp setup guide"; and we kept only steps a primary source states today.
Our gate: a setup step stays on this page only if Cline's own docs show it on 23-11-2026. Two parts of our April version failed it and are gone. The config example used "type": "url" with a GitHub SSE address; Cline's docs use "type": "streamableHttp" for remote servers and say that leaving the type out falls back to the legacy SSE transport, so that example would have pushed you onto the older transport. The line that Cline "discovers available tools at startup and uses them automatically" was also cut, because the docs describe a verify step and a per-call approval, not automatic use.
What we did not do: we have not connected a server in Cline and timed it for this update, so the example below follows the docs and the prices listed on our tools pages: not tested by us.
How does Cline use MCP servers?
Cline uses MCP servers to call tools it does not have built in. Cline's docs put it in three lines: connect Cline to external APIs and services, add custom tools beyond the built-in ones, and use either local or remote hosted servers.
That matters because Cline already reads and edits your files and runs terminal commands. A server earns its place when it adds something outside the editor: an API you would otherwise call by hand, a data source, or a model Cline cannot run itself. Our explainer on what MCP is covers the protocol; here we only need two terms.
A local server runs as a process on your machine and talks to Cline over STDIO. It is the right choice for file system access, a local database or a script you wrote. A remote server is a hosted endpoint Cline reaches over HTTP. Cline's docs recommend Streamable HTTP for remote servers and keep SSE as a legacy option. Our rule of thumb: local for anything that touches your machine, remote for anything that lives in the cloud anyway.
Once a server is connected, Cline lists its tools and asks you before it calls one, unless you have put that tool on the auto-approve list. If you want Cline to plan multi-step work across several servers, skills for that sit in our Cline agents and orchestration collection.
How to add an MCP server in Cline (3 ways)
There are three routes, and which one you take depends on whether the server is hosted, local or scripted. We list them in the order we would use them.
1. The Remote Servers tab, for hosted servers
First because it needs no JSON and suits most hosted servers. In the Cline panel:
- Click the MCP Servers icon, the stacked server icon in the top toolbar.
- Open the Remote Servers tab.
- Enter a Server Name (any unique label) and the full Server URL.
- Choose Transport Type: Streamable HTTP, which the docs mark as recommended, or SSE (Legacy) only if the server's own docs ask for it.
- Click Add Server.
If the server signs you in through the browser, complete that step when it opens. Cline then lists the server with its tools.
2. The JSON settings file, for local servers and full control
Second because it is the only route for local STDIO servers and the one that exposes every option. In the MCP Servers panel, open the Configure tab and click Configure MCP Servers near the bottom. That opens the MCP settings JSON the extension uses; add or edit entries under mcpServers and save. The next section shows the exact shape.
3. The CLI wizard, for Cline CLI and scripts
Third because it applies to Cline CLI rather than the VS Code extension, but it is the fastest route if you set up machines from scripts. Run cline mcp in your terminal. The wizard can list servers, add, edit, enable or disable and delete them, and it has an Authorize OAuth action that runs or reruns the browser sign-in for a remote server. To skip the menu, the docs show commands such as cline mcp add docs https://example.com/mcp --transport http, and cline config mcp lists what is configured.
Whichever route you take, finish with the verify step from Cline's quick start: confirm the tools appear and test one tool call. MCP Server Setup Check, a free skill, turns that into a routine: it records the package version, the tool list, one real call and the token the server needs, so you can prove a server works instead of assuming it does.
What does the Cline MCP config file look like?
Cline keeps its servers in one JSON object called mcpServers, with one entry per server. In Cline CLI the file is ~/.cline/data/settings/cline_mcp_settings.json, and you can point to another file with the CLINE_MCP_SETTINGS_PATH environment variable. In VS Code you open the same structure through Configure MCP Servers.
A local STDIO server uses command and args, with secrets in env:
{
"mcpServers": {
"local-server": {
"command": "node",
"args": ["/path/to/server.js"],
"env": { "API_KEY": "your_api_key" },
"disabled": false,
"autoApprove": []
}
}
}
A remote server uses url and a type:
{
"mcpServers": {
"remote-server": {
"type": "streamableHttp",
"url": "https://example.com/mcp",
"disabled": false,
"autoApprove": []
}
}
}
Three fields decide whether this works. The type field selects the transport, and if you leave it out Cline falls back to legacy SSE, so set "streamableHttp" explicitly. The disabled field lets you switch a server off without deleting it, which is the first thing we do when a session gets slow. The autoApprove list names tools Cline may call without asking; keep it empty until you trust a server. If the server needs a token, Cline's docs add a headers object with an Authorization value; servers that sign you in through the browser do not need one.
Every connected server adds tool descriptions to Cline's context. MCP Tool Diet, $3.99, audits a config for that per-turn token cost and for tools whose names collide, and hands back a leaner config. More skills for tuning how your agent uses models and context are in our Cline LLM ops collection.
Is there a Cline MCP marketplace?
Not as a separate page in Cline's documentation today. When we opened Cline's MCP marketplace docs address on 23-11-2026, it served the same MCP page as the setup docs, which covers adding servers by hand, through the Remote Servers tab and through the CLI wizard. We could not confirm from the docs whether a marketplace view still ships inside the extension, so check your own Cline panel before you plan around it.
In practice you find servers in three places. The vendor's own documentation, when you already know which service you want; this is where an official server is announced, and we would always prefer it. A server's own repository, which usually includes a Cline snippet like the one in the second result we found for this search. And curated lists such as our ranking of the best MCP servers for Claude Code, which apply to Cline as well because both speak the same protocol.
Which MCP servers are worth adding to Cline?
Cline already handles files and the terminal, so the servers worth adding connect it to things outside the editor. This is the order we would add them in for a small product team.
- Your code host (GitHub or GitLab). First because issues, pull requests and review comments are where the work comes from, and reading them without leaving VS Code saves the most switching. Prefer the vendor's official server where one exists.
- Your database (PostgreSQL, MySQL or SQLite). Second because querying the real schema stops Cline from guessing table and column names. Run it locally and give it a read-only user; it moves to first place if most of your bugs are data bugs.
- Your project tool (Linear or Notion). Third because the ticket text gives Cline the acceptance criteria, but the editor work does not depend on it.
- A tools connection for media and live data. Fourth because most coding sessions do not need it, but when you build a landing page, a demo or a feature that needs real search results, it replaces several provider accounts with one sign-in. We cover this route in the example below.
We left Sequential Thinking off this list. The April version recommended it for "better reasoning", and that is a claim we cannot back with a source today.
Skills for building and wiring API integrations, including your own MCP servers, sit in our Cline APIs and backend collection.
Example: make an image and a video from Cline with Agensi
Cline is a coding agent, so it cannot render an image or a video on its own. The quickest way to give it that is one remote MCP server that sits in front of the image and video models. Disclosure: we sell skills and pay-per-call tools that your agent uses through one MCP connection, and we name ours below. No vendor paid to be listed.
Step 1. Add the server. On the Remote Servers tab, enter the name agensi, the URL https://mcp.agensi.io/mcp/auth and the transport Streamable HTTP, then click Add Server. Our MCP setup docs list Cline among the agents that connect this way: leave any Client ID and Client secret fields empty, because the agent registers itself, and sign in to Agensi when the browser opens. There is no API key or token to paste.
Step 2. Check it. Ask Cline: "Find me an Agensi skill for product images." If it lists skills, the connection works.
Step 3. Ask for the image. A prompt we would use for a landing page in progress: "Use Agensi to make a 16:9 hero image of our matte black travel mug on a wooden desk, morning light, space on the left for a headline. Quote the price first, then save the file to /public/hero.png." Cline calls find_tools to pick a model, quote_tool for the exact price and run_tool once the price is fine. The image tools page listed 29 image tools on 23-11-2026; on the Nano Banana page the starting prices were $0.052 per image for Nano Banana 2 Lite, $0.065 for Nano Banana 2 and $0.195 for Nano Banana Pro. Those are listed starting prices, not costs we measured.
Step 4. Turn it into a clip. "Now make a 5-second image-to-video clip of the same mug with steam rising." The video tools page listed Kling Video v3.0 Pro from $0.728 per 5-second clip on 23-11-2026. Slow jobs run through check_job, and files come back as links that last 7 days and also appear on the Tools tab of your Agensi dashboard for 30 days, according to our tools docs.
Why route it this way instead of one server per provider: you never open an account with Google or Kling, one balance pays for every tool, the agent sees the exact price before each run and failed uses are free. You can also set spending limits per use, per day and per month. Two limits are worth knowing. Only one app per Agensi account stays connected, so signing in from Cline disconnects Claude Code or Cursor on the same account. And if you need every model setting or files stored permanently, a direct API with your own key fits better, which our tools page says too.
A skill makes the result better than a bare prompt. AI Image Generator: On-Brand Images, No API Keys, free, drafts cheap and finishes on a better model; its page shows it uses Nano Banana 2 Lite and FLUX Schnell through Agensi Tools. AI Video Generator: Shot-by-Shot to Finished Edit, free, plans a shot list before it spends money on clips and uses Hailuo, Kling and Fish Audio the same way. More in our Cline image and video collection.
How to keep Cline's MCP setup safe
Treat every server as code that runs with your permissions. Cline's own security basics are short: only install servers you trust, keep secrets in environment variables, limit autoApprove to safe tools and review tool calls before you approve them. We would add three rules from running agents for a team.
Never auto-approve a tool that spends money or writes data. For the Agensi server that means run_tool stays off the autoApprove list; find_tools and quote_tool are read-only and fine to approve. Give local database servers a read-only user unless the task is a migration. And pin server versions in the config, because an update can change which tools a server exposes.
Before you add a server you found in someone's repository, Install Guard: Vet Skills and MCP Servers Before Installing, $14, checks the config for broad file access and tokens written in plain text. MCP Server Configuration Audit, $10 looks for tool poisoning and over-privileged access, and its page shows it reads web pages through one Agensi tool at $0.0052 per call. More skills for this are in our Cline security collection.
Troubleshooting Cline MCP servers
Most failures fall into four patterns, and Cline's docs give a fix for each.
| Problem | Likely cause | What to do |
|---|---|---|
| Server won't connect | Wrong command, path or URL, or the server process is not running | Check the command or URL, then restart the server from the MCP Servers panel |
| No tools appear | The server started but exposes no tools, or failed silently | Confirm it started, then test it outside Cline |
| Auth errors | Missing or expired token, or a header in the wrong place | Re-check keys and headers; for browser sign-in, rerun Authorize OAuth in the CLI wizard |
| Timeouts | Slow server or long jobs | Raise the request timeout in MCP settings |
Two checks we run before blaming Cline. First, test the server on its own with the MCP Inspector; if it fails there, the problem is the server. Second, check the transport: a remote server added without "type": "streamableHttp" falls back to SSE and may not connect. mcp server doctor, $11, reads your config and the error and points to the cause, such as a relative path the client cannot resolve. When the server is fine but your project will not start, env-doctor, free, checks runtimes, ports and missing environment variables. More debugging skills are in our Cline testing and debugging collection.
MCP plus skills in Cline
MCP decides what Cline can reach; a skill decides how Cline approaches the task. Cline reads SKILL.md skills, so a code review skill can tell it to check commit history through your GitHub server before it comments, and an image skill can tell it to draft cheaply before it pays for the final render. Our list of the best Cline skills is a good place to pick the first ones.
Your next step
Add one server today, the one closest to your daily work, and run the verify step before you add a second. If you want Cline to make images, video or voice-overs or pull live data without a stack of provider accounts, connect it to Agensi once; it tells you what each use cost.
Written by Samuel Rose, Founder of Agensi. Sources checked on 23-11-2026: Cline MCP documentation, Agensi MCP setup and tools docs, Agensi tools pages. Next scheduled review: 23-12-2026.