π Supercharge your AI coding assistants with VS Code's powerful language intelligence!
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!
- π§ 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
| Tool | Description |
|---|---|
π vscode_open_folder |
Open a workspace folder |
π vscode_get_open_folders |
Get currently open workspace folder(s) |
π·οΈ vscode_document_symbols |
Get all symbols in a document |
π vscode_workspace_symbols |
Search symbols across the workspace |
π― vscode_go_to_definition |
Find symbol definitions |
π vscode_find_references |
Find all references to a symbol |
π‘ vscode_hover_info |
Get type info and documentation |
vscode_diagnostics |
Get errors and warnings |
π vscode_call_hierarchy |
Get incoming/outgoing calls |
βοΈ vscode_completions |
Get code completions at a position |
π vscode_signature_help |
Get function signature help |
ποΈ vscode_type_hierarchy |
Get type hierarchy information |
π§ vscode_code_actions |
Get available code actions/quick fixes |
π¨ vscode_format_document |
Format an entire document |
βοΈ vscode_format_range |
Format a specific range |
π¦ vscode_organize_imports |
Organize imports in a document |
βοΈ vscode_rename_symbol |
Rename a symbol across the workspace |
π vscode_workspace_file_search |
Search for files by pattern |
π vscode_workspace_text_search |
Search for text across files |
- Open VS Code
- Go to Extensions (Ctrl+Shift+X)
- Search for "VSC as MCP"
- Click Install
Download the latest .vsix from the Releases page:
code --install-extension CodingWithCalvin.VSC-MCPServer.vsixThe MCP server starts automatically when VS Code launches! Just configure your AI tool to connect:
Add to your MCP client configuration:
{
"mcpServers": {
"vscode": {
"url": "http://localhost:4000/mcp",
"description": "VS Code semantic code navigation"
}
}
}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
| Setting | Default | Description |
|---|---|---|
codingwithcalvin.mcp.autoStart |
true |
π Auto-start server on VS Code launch |
codingwithcalvin.mcp.port |
4000 |
π MCP server port |
codingwithcalvin.mcp.bindAddress |
127.0.0.1 |
π Bind address (localhost only) |
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
- π Localhost Only - Binds only to
127.0.0.1 - π‘οΈ DNS Rebinding Protection - Validates Host header
- β Same-machine Trusted - No authentication required for local access
- π» Visual Studio Code 1.85.0 or later
- π’ Node.js (bundled with VS Code)
Contributions are welcome! Whether it's bug reports, feature requests, or pull requests - all feedback helps make this extension better. πͺ
- π΄ Clone the repository
- π¦ Run
npm install - π¨ Run
npm run build βΆοΈ Press F5 to launch the Extension Development Host
This project is licensed under the MIT License - see the LICENSE file for details.
β If you find VSC as MCP useful, please consider giving it a star! β
Made with β€οΈ for the VS Code community by Coding With Calvin