Files
cline/docs/mcp/adding-and-configuring-servers.mdx
T
Renee HuangandJuan Pablo Flores e884699d24 New Cline Docs (#9280)
* only doc changes

* merge

* fix installtion page redirects

* fix redirect, remove unused parts

* rm irrelevant info

* clean up terminal guides

* docs: add home page and reorganize navigation

* chore: remove 71 unused docs files not referenced in navigation

Remove .mdx files that are no longer referenced in docs.json navigation
and only existed as stale content from previous documentation restructuring.
These files were either completely orphaned or only served as redirect
source pages (Mintlify handles redirects at the routing level without
needing the source file to exist).

Updated docs.json redirects that previously pointed to archive/ pages
to point to current equivalents instead:
  - /archive/understanding-context-management → /model-config/context-windows
  - /archive/prompt-engineering-guide → /customization/cline-rules
  - /archive/telemetry → /enterprise-solutions/monitoring/telemetry

Deleted files by category:

Archive (entire directory removed):
  - archive/prompt-engineering-guide.mdx
  - archive/telemetry.mdx
  - archive/understanding-context-management.mdx

Cline CLI:
  - cline-cli/cli-reference-deprecated.mdx

Enterprise Solutions (16 files):
  - enterprise-solutions/bundled-endpoints.mdx
  - enterprise-solutions/configuration/overview.mdx
  - enterprise-solutions/configuration/choosing-your-deployment.mdx
  - enterprise-solutions/configuration/infrastructure-configuration/overview.mdx
  - enterprise-solutions/configuration/infrastructure-configuration/rules.mdx
  - enterprise-solutions/configuration/infrastructure-configuration/workflows.mdx
  - enterprise-solutions/configuration/infrastructure-configuration/control-other-cline-features/overview.mdx
  - enterprise-solutions/configuration/infrastructure-configuration/mcp/overview.mdx
  - enterprise-solutions/configuration/infrastructure-configuration/mcp/mcp-marketplace.mdx
  - enterprise-solutions/configuration/infrastructure-configuration/mcp/remote-mcp-servers.mdx
  - enterprise-solutions/configuration/infrastructure-configuration/providers/overview.mdx
  - enterprise-solutions/configuration/infrastructure-configuration/providers/custom.mdx
  - enterprise-solutions/configuration/infrastructure-configuration/providers/aws-bedrock/overview.mdx
  - enterprise-solutions/configuration/infrastructure-configuration/providers/google-vertex/overview.mdx
  - enterprise-solutions/configuration/infrastructure-configuration/providers/litellm/overview.mdx
  - enterprise-solutions/monitoring/opentelemetry_override.mdx

Exploring Cline's Tools (entire directory removed):
  - exploring-clines-tools/cline-tools-guide.mdx
  - exploring-clines-tools/new-task-tool.mdx
  - exploring-clines-tools/remote-browser-support.mdx

Features — old pages consolidated into core-workflows/ and customization/ (37 files):
  - features/checkpoints.mdx
  - features/drag-and-drop.mdx
  - features/editing-messages.mdx
  - features/explain-changes.mdx
  - features/skills.mdx
  - features/yolo-mode.mdx
  - features/at-mentions/ (7 files — all consolidated into core-workflows/working-with-files)
  - features/cline-rules/ (2 files — consolidated into customization/cline-rules)
  - features/commands-and-shortcuts/ (5 files — consolidated into core-workflows/using-commands)
  - features/customization/ (2 files)
  - features/hooks/ (3 files — consolidated into customization/hooks)
  - features/slash-commands/ (7 files)
  - features/slash-commands/workflows/ (3 files — consolidated into customization/workflows)
  - features/tasks/ (2 files — consolidated into core-workflows/task-management)

Introduction (entire directory removed):
  - introduction/overview.mdx
  - introduction/welcome.mdx

MCP:
  - mcp/adding-mcp-servers-from-github.mdx
  - mcp/configuring-mcp-servers.mdx

More Info (entire directory removed):
  - more-info/telemetry.mdx

Prompting (entire directory removed):
  - prompting/cline-memory-bank.mdx
  - prompting/prompt-engineering-guide.mdx
  - prompting/understanding-context-management.mdx

Provider Config:
  - provider-config/fireworks-ai.mdx
  - provider-config/ollama.mdx

Getting Started:
  - getting-started/selecting-your-model.mdx

Total: 71 files deleted, 12,344 lines removed.

* docs: update and add documentation pages

* revert unintended formatting changes to src files

* new first project docs

---------

Co-authored-by: Juan Pablo Flores <juan@cline.bot>
2026-02-14 22:02:22 -08:00

138 lines
3.6 KiB
Plaintext

---
title: "Adding & Configuring Servers"
sidebarTitle: "Adding & Configuring"
description: "Find MCP servers, add them to Cline, and configure settings."
---
This guide covers finding MCP servers, adding them to Cline, and configuring their settings.
## Finding MCP Servers
Several places to find MCP servers:
- **[Cline MCP Marketplace](/mcp/mcp-marketplace)**: Browse and install directly from Cline
- **[Official MCP servers](https://github.com/modelcontextprotocol/servers)**: GitHub repository
- **[Awesome-MCP servers](https://github.com/punkpeye/awesome-mcp-servers)**: Community collection
- **Online directories**: [mcpservers.org](https://mcpservers.org/), [mcp.so](https://mcp.so/), [glama.ai/mcp/servers](https://glama.ai/mcp/servers)
## Adding Servers with Cline
The easiest way to add an MCP server is to have Cline build it for you:
1. Provide Cline with the GitHub repository URL
2. Optionally include the README contents for context
3. Cline clones the repo, builds it, and adds the configuration
Example conversation:
```text
User: "Add the MCP server from https://github.com/modelcontextprotocol/servers/tree/main/src/brave-search"
Cline: "Cloning the repository. It needs to be built. Should I run 'npm run build'?"
User: "Yes"
Cline: "Build complete. This server needs an API key. Where should I find it?"
```
## Managing Servers
Access server settings through the MCP Servers icon in Cline's top navigation bar.
### Enable/Disable
Toggle the switch next to any server to enable or disable it.
### Restart
Click "Restart Server" if a server becomes unresponsive.
### Delete
Click the trash icon or "Delete Server" button. No confirmation dialog.
### Network Timeout
Set how long to wait for responses (30 seconds to 1 hour, default 1 minute).
## Editing Configuration Files
Settings are stored in `cline_mcp_settings.json`:
1. Click MCP Servers icon
2. Select "Configure" tab
3. Click "Configure MCP Servers"
### STDIO Transport (Local Servers)
```json
{
"mcpServers": {
"local-server": {
"command": "node",
"args": ["/path/to/server.js"],
"env": {
"API_KEY": "your_api_key"
},
"alwaysAllow": ["tool1", "tool2"],
"disabled": false
}
}
}
```
### SSE Transport (Remote Servers)
```json
{
"mcpServers": {
"remote-server": {
"url": "https://your-server-url.com/mcp",
"headers": {
"Authorization": "Bearer your-token"
},
"alwaysAllow": ["tool3"],
"disabled": false
}
}
}
```
## Global MCP Mode
Control how MCP servers affect token usage:
1. Click MCP Servers icon
2. Select "Configure" tab
3. Click "Advanced MCP Settings"
4. Find `Cline>Mcp:Mode` and select your preference
<Frame>
<img
src="https://storage.googleapis.com/cline_public_images/docs/assets/MCP-settings-edit%20(1).png"
alt="MCP settings"
/>
</Frame>
## Using MCP Tools
After configuring a server, Cline automatically detects available tools:
1. Type your request in chat
2. Cline identifies when an MCP tool can help
3. Approve the tool use (or use [auto-approval](/features/auto-approve))
## Troubleshooting
| Issue | Solution |
|-------|----------|
| Server not responding | Check if process is running, verify network connectivity |
| Permission errors | Ensure API keys and credentials are configured |
| Tool not available | Confirm server implements the tool and it's not disabled |
| Slow performance | Increase network timeout for the server |
## Related
- [What is MCP?](/mcp/mcp-overview)
- [MCP Marketplace](/mcp/mcp-marketplace)
- [Building Your Own MCP Server](/mcp/mcp-server-development-protocol)