MCP (Model Context Protocol) lets Cline use external tools and data sources through MCP servers.Documentation Index
Fetch the complete documentation index at: https://docs.cline.bot/llms.txt
Use this file to discover all available pages before exploring further.
What MCP gives you
- Connect Cline to external APIs and services
- Add custom tools beyond built-in Cline tools
- Use either local servers or remote hosted servers
Quick start
- Open MCP Servers in Cline
- Add a server (from Marketplace or manually)
- Configure credentials/environment variables
- Verify tools appear and test one tool call
Add servers
Option 1: Marketplace
Use Cline’s MCP Marketplace for one-click install when available.- In the Cline panel, click the MCP Servers icon (stacked server icon in the top toolbar).
- Open the Marketplace tab.
Option 2: Manual config
Edit your MCP config file and add either:- CLI:
~/.cline/mcp.json - IDE extensions:
- In the Cline panel, click the MCP Servers icon (stacked server icon in the top toolbar).
- Open the Configure tab.
- Click Configure MCP Servers (button near the bottom).
- This opens the MCP settings JSON used by the extension; add/update entries under
mcpServers.
-
If you’re adding a hosted endpoint (instead of editing JSON directly), use the Remote Servers tab:
- Enter Server Name (any unique label).
- Enter Server URL (full endpoint URL).
- Choose Transport Type:
- Streamable HTTP (recommended)
- SSE (Legacy)
- Click Add Server.
-
Server config shape:
- Local (STDIO) server using
command+args - Remote (HTTP/SSE) server using
url
- Local (STDIO) server using
CLI MCP wizard
From CLI, run:| Action | Description |
|---|---|
| List servers | Show configured servers and enabled/disabled status |
| Add server | Create a new MCP server entry |
| Edit server | Modify an existing server |
| Enable/Disable | Toggle a server without deleting it |
| Delete server | Remove a server permanently |
Configuration examples
Local server (STDIO)
Remote server (HTTP/SSE)
Transport types
- STDIO: local process, lower latency, simpler local setup
- Remote HTTP/SSE: hosted endpoint, centralized deployment, supports multi-client usage
Managing servers
In MCP settings you can:- Enable/disable servers
- Restart unresponsive servers
- Set request timeouts
- Remove servers
Security basics
- Only install servers you trust
- Store secrets in environment variables
- Limit
autoApproveto safe tools - Review tool calls before approval
Troubleshooting
| Issue | Fix |
|---|---|
| Server won’t connect | Verify command/URL, server process status, and port |
| Missing tools | Confirm server started successfully and tools are exposed |
| Auth errors | Re-check API keys/tokens and required headers |
| Timeout errors | Increase MCP timeout and test server response directly |

