Code MCP is an MCP server that connects AI assistants directly to Visual Studio Code through the Model Context Protocol. Built and maintained by Block, Inc., this tool paired with its companion VS Code extension allows developers using agents like Claude Desktop or Goose to manipulate workspace editors programmatically. Users can grant AI agents the ability to open specific project folders, display code files, and inspect connection statuses within the IDE. Rather than applying modifications blindly, it facilitates safe editing workflows by generating diff views inside the editor that require explicit user approval before applying changes to existing files. It also reads registry files to list available projects and communicates over local extension ports. Developers use Code MCP to bridge local agent execution with an interactive development environment, keeping coding tasks supervised, organized, and reviewable in a visual interface.
Category: Developer Tools & Code Intelligence
Tags: code, development, source-code
bash npx vscode-mcp-server install 2. Install the companion MCP Extension in Visual Studio Code. 3. Configure your MCP client. For Claude Desktop, add the following configuration to ~/Library/Application Support/Claude/claude_desktop_config.json: json { "mcpServers": { "vscode-mcp-server": { "command": "npx", "args": ["vscode-mcp-server"], "env": {} } } } For Goose Desktop, add a new server with the ID code-mcp, name VS Code, and command npx vscode-mcp-server. 4. Restart your MCP client to start interacting with VS Code.Part of MCP Servers
You can install the server by running npx vscode-mcp-server install in your terminal. You must also install the companion MCP Extension directly within Visual Studio Code, then register the server in your MCP client configuration.
Code MCP allows AI agents to interact with Visual Studio Code. Key capabilities include creating preview diffs for existing files with required user approval, opening files, loading project folders, checking extension status, and inspecting available workspace projects.
Code MCP explicitly supports Claude Desktop and Goose Desktop. Any other Model Context Protocol client capable of launching command-line stdio processes via npx can also integrate with the server.
Yes, Code MCP is open-source software licensed under the Apache License 2.0. The code repository is developed and maintained by Block, Inc.