VSC as MCP
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@VSC as MCPfind references to calculateTotal in app.js"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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
Related MCP server: MCP Server for VS Code
🛠️ 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
This server cannot be deployed
Maintenance
Related MCP Connectors
The OpenRouter MCP server plugs OpenRouter into the AI tools you already use. Once connected, your assistant can pull live OpenRouter data (models, prices, your credits, rankings, and docs) and send quick test messages, all without leaving your editor.
Persistent memory and cross-session learning for AI coding assistants (hosted remote MCP).
Use AI models for chat, image, and video generation from Claude Code and other MCP hosts.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Related MCP Servers
- FlicenseNot gradedqualityNot gradedmaintenanceExposes VSCode's Language Server Protocol features through MCP, enabling AI assistants to perform language-aware operations like symbol navigation, reference tracking, safe renaming, type information retrieval, and hover documentation across codebases.-
- AlicenseNot gradedqualityFmaintenanceEnables AI assistants to interact with VS Code for language intelligence, debugging, and code execution.17MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with VS Code's language server protocol features (definitions, references, diagnostics) and debugger (breakpoints, stepping, variable inspection) via an MCP server.6 npm1MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to access live VS Code editor state, symbol navigation, diagnostics, and language-aware editing through MCP, bridging the gap between what the agent can infer from disk and what the editor actually knows.MIT