VSC as MCP
A Visual Studio Code extension that exposes an MCP (Model Context Protocol) server, giving AI tools like Claude, Cursor, and others direct access to VS Code's semantic code understanding capabilities - go-to-definition, find references, completions, diagnostics, and so much more!
⨠Features
đ§ Full Language Intelligence - Access VS Code's language server features via MCP tools
đ Workspace Aware - Works on individual files or full project contexts
đ URI Protocol Handler - Launch VS Code via
vscode://codingwithcalvin.mcp/...⥠Auto-start - MCP server starts automatically when VS Code launches
đ Secure by Default - Binds only to localhost, no external access
đ ī¸ Available Tools
Tool | Description |
| Open a workspace folder |
| Get currently open workspace folder(s) |
| Get all symbols in a document |
| Search symbols across the workspace |
| Find symbol definitions |
| Find all references to a symbol |
| Get type info and documentation |
| Get errors and warnings |
| Get incoming/outgoing calls |
| Get code completions at a position |
| Get function signature help |
| Get type hierarchy information |
| Get available code actions/quick fixes |
| Format an entire document |
| Format a specific range |
| Organize imports in a document |
| Rename a symbol across the workspace |
| Search for files by pattern |
| Search for text across files |
đĻ Installation
VS Code Marketplace
Open VS Code
Go to Extensions (Ctrl+Shift+X)
Search for "VSC as MCP"
Click Install đ
Manual Installation
Download the latest .vsix from the Releases page:
code --install-extension CodingWithCalvin.VSC-MCPServer.vsixđ Usage
The MCP server starts automatically when VS Code launches! Just configure your AI tool to connect:
đ¤ MCP Configuration
Add to your MCP client configuration:
{
"mcpServers": {
"vscode": {
"url": "http://localhost:4000/mcp",
"description": "VS Code semantic code navigation"
}
}
}đ URI Protocol
Launch VS Code and control the MCP server via URI:
vscode://codingwithcalvin.mcp/start # Start MCP server
vscode://codingwithcalvin.mcp/start?port=4000 # Start on specific port
vscode://codingwithcalvin.mcp/open?folder=/path/to/dir # Open folder and startâī¸ Configuration
Setting | Default | Description |
|
| Auto-start server on VS Code launch |
|
| MCP server port |
|
| Bind address (localhost only) |
đģ Commands
Access these from the Command Palette (Ctrl+Shift+P):
âļī¸ MCP Server: Start - Start the MCP server
âšī¸ MCP Server: Stop - Stop the MCP server
đ MCP Server: Restart - Restart the MCP server
đ MCP Server: Show Available Tools - View all available MCP tools
đ Security
đ Localhost Only - Binds only to
127.0.0.1đĄī¸ DNS Rebinding Protection - Validates Host header
â Same-machine Trusted - No authentication required for local access
đ Requirements
đģ Visual Studio Code 1.85.0 or later
đĸ Node.js (bundled with VS Code)
đ¤ Contributing
Contributions are welcome! Whether it's bug reports, feature requests, or pull requests - all feedback helps make this extension better.
đ§ Development Setup
Clone the repository
Run
npm installRun
npm run buildPress F5 to launch the Extension Development Host đ
đ License
This project is licensed under the MIT License - see the LICENSE file for details.
đĨ Contributors
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/CodingWithCalvin/VSC-MCPServer'
If you have feedback or need assistance with the MCP directory API, please join our Discord server