docs/mcp/mcp-overview.mdx
MCP (Model Context Protocol) lets Cline use external tools and data sources through MCP servers.
Use Cline's MCP Marketplace for one-click install when available.
Edit your MCP config file and add either:
~/.cline/mcp.jsonmcpServers.If you're adding a hosted endpoint (instead of editing JSON directly), use the Remote Servers tab:
Server config shape:
command + argsurlFrom CLI, run:
cline mcp
The wizard supports:
| 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 |
When adding a server, the CLI prompts for server name, transport type, command/args (for stdio), or URL/headers (for remote transports).
{
"mcpServers": {
"local-server": {
"command": "node",
"args": ["/path/to/server.js"],
"env": {
"API_KEY": "your_api_key"
},
"disabled": false,
"autoApprove": []
}
}
}
{
"mcpServers": {
"remote-server": {
"url": "https://example.com/mcp",
"headers": {
"Authorization": "Bearer your-token"
},
"disabled": false,
"autoApprove": []
}
}
}
Use STDIO for local tools and remote transport for shared hosted services.
In MCP settings you can:
autoApprove to safe tools| 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 |
MCP also works in Cline CLI. Configure servers in CLI MCP settings and use the same server definitions.
You can also list servers non-interactively:
cline config mcp
cline config mcp --json