VS Code MCP ServerA Visual Studio Code extension (available on the Marketplace) that allows Claude and other MCP clients to code directly in VS Code! Inspired by Serena, but using VS Code's built-in capabilities. This is currently far simpler than Serena, but it works! Note that this extension uses the streamable HTTP API, not the SSE API. This extension can allow for execution of shell commands. This means that there is a potential security risk, so use with caution, and ensure that you trust the MCP client that you are using and that the port is not exposed to anything. Authentication would help, but as the MCP authentication spec is still in flux, this has not been implemented for now. PRs are welcome! Demo Videohttps://github.com/user-attachments/assets/20b87dfb-fc39-4710-a910-b9481dde1e90 Installation
Claude Desktop ConfigurationClaude Desktop can be configured to use this extension as an MCP server. To do this, your
I also like to use this extension in a Claude project, as it allows me to specify additional instructions for Claude. I find the following prompt to work well:
This extension serves as a Model Context Protocol (MCP) server, exposing VS Code's filesystem and editing capabilities to MCP clients. FeaturesThe VS Code MCP Server extension implements an MCP-compliant server that allows AI models and other MCP clients to:
This extension enables AI assistants and other tools to interact with your VS Code workspace through the standardized MCP protocol. How It WorksThe extension creates an MCP server that:
Supported MCP ToolsFile Tools
Edit Tools
Diagnostics Tools
Shell Tools
Caveats/TODOCurrently, only one workspace is supported. The extension also only works locally, to avoid exposing your VS Code instance to any network you may be connected to. Extension SettingsThis extension contributes the following settings:
Using with MCP ClientsTo connect MCP clients to this server, configure them to use:
Remember that you need to enable the server first by clicking on the status bar item! ContributingContributions are welcome! Feel free to submit issues or pull requests. License |