An autonomous AI coding agent for VS Code with MCP support. Configure MCP servers through Cline's VS Code settings to give it access to external tools and data sources.
Cline is an autonomous AI coding agent that runs as a VS Code extension. Unlike traditional AI assistants that respond to one-off prompts, Cline can autonomously plan and execute complex multi-step coding tasks: reading files, writing code, running terminal commands, browsing the web, and interacting with external tools. Cline supports the Model Context Protocol (MCP), allowing you to extend its capabilities with file system tools, database access, GitHub integration, web search, and any custom MCP server you build or install.
Cline manages MCP servers through its own settings interface within VS Code. When you configure MCP servers, Cline starts them as child processes and adds their tools to its available toolset. Because Cline is an autonomous agent, it decides when to use MCP tools based on the task at hand - you do not need to explicitly tell it to use a specific tool. If you ask Cline to "find all users who signed up last month," it will automatically use the PostgreSQL server to query your database.
Cline has a built-in MCP management UI that makes it easy to add, remove, and configure servers without manually editing JSON files. You can also install MCP servers from the Cline marketplace or community repositories.
Cline provides a graphical interface for managing MCP servers, which is unique among MCP clients. You can add, edit, remove, and toggle servers through the UI without touching JSON files. The UI also shows real-time connection status and server logs, making it easier to diagnose issues. For advanced users, you can also edit the underlying JSON configuration directly through VS Code settings.
For manual configuration or automation, Cline stores MCP server settings in VS Code's settings.json under the cline.mcp.servers key. You can edit this directly in your workspace or user settings. Workspace settings (in .vscode/settings.json) allow project-specific configurations that can be shared with your team via version control.
Pass API keys, tokens, and other secrets through the env field in each server configuration. Cline's MCP UI also provides input fields for environment variables, making it easy to set them without editing JSON. For team projects, document required environment variables in your project README so team members know what to configure.
Cline supports stdio transport (the standard for local MCP servers) using command and args. SSE transport for remote servers is also supported. The MCP management UI lets you choose the transport type when adding a server.
One of Cline's distinguishing features is its human-in-the-loop approval system. When Cline wants to use an MCP tool, it shows you what it plans to do and waits for your approval. You can approve, reject, or modify the tool call. This gives you full visibility and control over MCP tool usage, which is particularly important for tools that can modify data or make external requests.
env field may not be reaching the server process. Verify the variable names match exactly what the server expects (they are case-sensitive). Try running the server command directly in a terminal with the env vars set to confirm.Cline's autonomous nature makes it particularly powerful when combined with these MCP servers:
Browse our complete MCP server directory for all compatible servers.
For a comparison of MCP setup across VS Code-based tools and other clients, read our MCP Servers for Cursor, VS Code, and Claude guide. Our tutorials section has step-by-step walkthroughs for specific configurations.
npx -y download step. Run npm install -g @modelcontextprotocol/server-filesystem for frequently used servers.Cline is an autonomous agent that can execute code and interact with external services. MCP servers expand its capabilities, so security is critical:
Cline's strength is its autonomous agent capability - it can plan and execute multi-step tasks independently while keeping you in the loop via its approval system. For a similar autonomous experience in the terminal, try Claude Code CLI. For a more traditional AI editor experience, Cursor offers deep AI integration with a familiar IDE interface. If you want MCP with GitHub Copilot in VS Code, see our VS Code setup guide. All these clients support the same MCP server ecosystem - your servers are portable between them.
Config file location: VS Code settings (Cline extension settings)
Install VS Code from code.visualstudio.com if you do not already have it.
Install the Cline extension from the VS Code marketplace (search for "Cline").
Configure your AI provider API key in Cline's settings (Anthropic, OpenAI, or other supported providers).
Open the Cline sidebar panel and navigate to the MCP servers section.
Add MCP server configurations through the UI, or edit VS Code settings.json directly with the cline.mcp.servers key.
Verify server connections - green indicators in the MCP panel mean servers are running and connected.
Start a Cline session and ask it to perform tasks that use your configured MCP servers.
Need help setting up Cline?
Check our step-by-step IDE setup guide with troubleshooting tips.
All 60 servers in our directory work with Cline.
Secure file operations with configurable access controls
Knowledge graph-based persistent memory system
Privacy-focused web search capabilities
File storage and document collaboration
Location services and mapping integration
Embedded SQL database operations
PostgreSQL database integration
Team communication and collaboration
Version control operations
Extract transcripts from YouTube videos
Browser automation and web scraping
Official GitHub integration with comprehensive API coverage
Find the best MCP servers for Cline in each category.
MCP servers for secure file operations, directory management, and document processing. These servers provide sandboxed access to local and remote file systems with configurable permissions.
MCP servers for connecting AI assistants to SQL and NoSQL databases. Query, analyze, and manage your data through natural language with support for PostgreSQL, SQLite, MongoDB, Redis, and more.
MCP servers that connect AI assistants to external APIs and web services. Search the web, fetch data, interact with third-party platforms, and automate API workflows through natural language.
MCP servers for managing cloud infrastructure across AWS, Google Cloud, Azure, and platforms like Vercel, Netlify, and Cloudflare. Deploy, monitor, and manage cloud resources through AI assistants.
MCP servers for software development workflows including version control, CI/CD, code analysis, browser testing, and project management. Supercharge your development process with AI-powered tooling.
MCP servers for monitoring, observability, and data analytics. Connect AI assistants to Grafana, Datadog, and search platforms to analyze metrics, logs, and business data in real time.
MCP servers for messaging, video conferencing, and team collaboration platforms. Connect AI assistants to Slack, Discord, and Zoom for automated communication workflows.
MCP servers for CRM, e-commerce, project management, and business automation platforms. Connect AI to Shopify, Stripe, Salesforce, HubSpot, Notion, and more to streamline business operations.
Explore MCP setup guides for other AI-powered editors and clients.
Anthropic's official desktop app for Claude with built-in MCP server support. Configure servers via a JSON config file to extend Claude with file access, databases, APIs, and more.
Anthropic's command-line coding agent with native MCP support. Configure servers via project settings or the --mcp flag for terminal-based AI development workflows.
The AI-first code editor with built-in MCP support. Configure MCP servers via .cursor/mcp.json to give Cursor's AI access to databases, APIs, file systems, and custom tools.
Visual Studio Code with GitHub Copilot supports MCP servers for extending AI capabilities. Configure servers in VS Code settings to connect Copilot to databases, APIs, and local tools.
Codeium's AI-powered IDE with MCP support. Configure MCP servers via ~/.windsurf/mcp.json to extend Windsurf's AI with custom tools, databases, and API integrations.
Browse our complete directory of 60+ MCP servers, read our setup guides, and start building with the Model Context Protocol today.