title: "MCPs in VSCode – Complete Setup Guide" description: "Comprehensive guide for integrating MCP servers with Visual Studio Code for enhanced AI development." slug: "vscode-integration" category: "ide" updatedAt: "2025-09-21T00:00:00.000Z" faqs:
- q: "Does VSCode support MCP servers natively?" a: "VSCode requires extensions or configuration to work with MCP servers. Several community extensions are available."
- q: "Can I use multiple MCP servers in VSCode simultaneously?" a: "Yes, you can configure multiple MCP servers to work together in VSCode through proper configuration."
MCPs in VSCode – Complete Setup Guide
Overview
Visual Studio Code can be enhanced with Model Context Protocol servers to provide powerful AI-assisted development capabilities. This guide covers installation, configuration, and usage.
Requirements
- Visual Studio Code (latest version)
- Node.js 18+ or Python 3.8+
- MCP Extension for VSCode
- Basic familiarity with VSCode settings
Installation
Step 1: Install MCP Extension
- Open VSCode
- Go to Extensions (Ctrl+Shift+X)
- Search for "Model Context Protocol"
- Install the official MCP extension
Step 2: Install MCP Servers
# Install filesystem MCP server
npm install -g @modelcontextprotocol/server-filesystem
# Install GitHub MCP server
npm install -g @modelcontextprotocol/server-github
Configuration
VSCode Settings
Add MCP configuration to your VSCode settings:
{
"mcp.servers": {
"filesystem": {
"command": "mcp-server-filesystem",
"args": ["--root", "${workspaceFolder}"],
"env": {
"NODE_ENV": "development"
}
},
"github": {
"command": "mcp-server-github",
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "${env:GITHUB_TOKEN}"
}
}
},
"mcp.autoStart": true,
"mcp.logLevel": "info"
}
Workspace Configuration
For project-specific settings, create .vscode/settings.json
:
{
"mcp.servers": {
"project-specific": {
"command": "node",
"args": ["./scripts/mcp-server.js"],
"cwd": "${workspaceFolder}"
}
}
}
Usage
Command Palette
Access MCP features through the Command Palette (Ctrl+Shift+P):
MCP: Start Server
MCP: Stop Server
MCP: Restart Server
MCP: Show Logs
AI Assistant Integration
Once configured, MCP tools are available in:
- GitHub Copilot Chat
- Code completion suggestions
- Inline AI assistance
Common Tasks
File Operations
// Ask AI to perform file operations
"Create a new component file with TypeScript interfaces"
"Refactor this function into separate modules"
"Generate unit tests for this class"
Git Integration
// Git operations through MCP
"Show me recent commits affecting this file"
"Create a pull request for current changes"
"Check code review status"
Troubleshooting
Extension Not Loading
- Check VSCode version compatibility
- Restart VSCode after installation
- Check extension logs in Output panel
Server Connection Issues
- Verify server installation
- Check environment variables
- Review server logs
Related Guides
- How to Install and Use MCPs in Cursor IDE
- MCP Setup in JetBrains IDEs (PyCharm, IntelliJ, WebStorm)
- How to Install and Use MCPs with Codex CLI
- Debugging & Testing MCPs with MCP Inspector
FAQ
Does VSCode support MCP servers natively?
VSCode relies on extensions or custom configuration to load MCP servers. Install an MCP controller extension and point it to your server manifest.
Can I use multiple MCP servers in VSCode simultaneously?
Yes. Configure each server in the MCP extension settings and enable them together for richer AI context.
Was this guide helpful?
Last updated: September 21, 2025
Edit this page: vscode-integration/page.mdx