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.
Visual Studio Code is the world's most popular code editor, and with the GitHub Copilot extension, it now supports the Model Context Protocol (MCP). This integration allows Copilot Chat to interact with external tools, file systems, databases, GitHub repositories, and custom MCP servers - giving the AI deep context about your project beyond just the files open in your editor.
MCP support in VS Code is configured through the standard settings.json file under the github.copilot.chat.mcp.servers key. This integrates naturally with VS Code's existing settings system, making it familiar for anyone who has customized VS Code before.
When you configure MCP servers in VS Code's settings, the GitHub Copilot extension manages the server lifecycle. It starts configured servers when you open a project, maintains connections, and exposes the servers' tools within Copilot Chat. You can then ask Copilot questions that require external data - like querying a database, searching the web, or reading files from specific directories - and Copilot will use the appropriate MCP tools to get the information it needs.
The integration works within Copilot Chat (the sidebar chat panel). When MCP tools are available, Copilot can autonomously decide when to use them based on your questions, or you can explicitly reference tools in your prompts.
.vscode/settings.json in your project root. For global settings, use VS Code's user settings (Cmd+Shift+P > "Preferences: Open User Settings (JSON)").github.copilot.chat.mcp.servers key. Note that this key is different from other clients - it uses the Copilot-specific namespace.VS Code has two levels of settings: User settings (global, apply to all projects) and Workspace settings (project-specific, stored in .vscode/settings.json). You can define MCP servers at either level. Workspace settings take precedence, allowing you to have project-specific server setups while maintaining a global baseline. This is similar to how Cursor handles project vs. global configuration.
The env field in each server configuration lets you pass environment variables like API keys and database credentials. For team projects, use workspace settings that reference variable names and have each developer set the values in their system environment or in a .env file. This way, the config can be committed to version control without exposing secrets.
VS Code supports stdio transport (using command and args) and SSE transport (using a url field). Stdio is the standard for local servers. SSE is useful for remote servers, shared team services, or servers that need to handle multiple concurrent connections.
MCP servers in VS Code complement other extensions. For example, you can use the PostgreSQL MCP server alongside a database visualization extension, or the GitHub MCP server alongside the GitHub Pull Requests extension. The MCP tools give Copilot additional context that makes its suggestions more accurate and relevant.
github.copilot.chat.mcp.servers (not mcpServers like other clients). This is the Copilot-specific namespace in VS Code settings.terminal.integrated.env.* settings to ensure necessary environment variables and PATH entries are available.These MCP servers integrate particularly well with the VS Code development workflow:
Browse our full MCP server directory for all compatible servers.
For a side-by-side comparison of MCP setup in VS Code, Cursor, and Claude, read our MCP Servers for Cursor, VS Code, and Claude guide. Our tutorials section has step-by-step walkthroughs for common server configurations.
npm install -g to avoid the npx -y download step on each startup.MCP servers run with your user permissions on your local machine. Follow these practices for safe usage:
.vscode/settings.json to version control. Use environment variables or add the file to .gitignore.VS Code with Copilot is the best choice if you are already invested in the VS Code ecosystem and have a Copilot subscription. For a more AI-first editor built from the ground up, consider Cursor. For an autonomous agent experience within VS Code, try Cline. For a standalone chat interface, use Claude Desktop. All these clients support the same MCP servers - the only difference is the configuration format and key names.
Config file location: .vscode/settings.json
Install VS Code from code.visualstudio.com and the GitHub Copilot extension from the marketplace.
Ensure you have an active GitHub Copilot subscription (Individual, Business, or Enterprise).
Open your project and create or edit .vscode/settings.json.
Add MCP server configurations under the github.copilot.chat.mcp.servers key.
Save the settings file. VS Code may prompt you to start the configured servers.
Open Copilot Chat (Cmd+Shift+I / Ctrl+Shift+I) and verify MCP tools appear in the available tools list.
Use Copilot Chat with your MCP servers - Copilot will use them to answer questions and perform actions.
Need help setting up VS Code / GitHub Copilot?
Check our step-by-step IDE setup guide with troubleshooting tips.
All 60 servers in our directory work with VS Code / GitHub Copilot.
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 VS Code / GitHub Copilot 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.
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.
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.
Browse our complete directory of 60+ MCP servers, read our setup guides, and start building with the Model Context Protocol today.