Code Mcp

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

Visit Code Mcp

How to install and configure Code Mcp

  1. Install the MCP server using npx: 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.

What you can do with Code Mcp

  • Review proposed AI modifications in VS Code side-by-side diff views requiring manual developer approval before changes apply. - Open specific source code files in the editor directly from an AI chat prompt to inspect implementations. - Set working directories and launch local project folders in VS Code automatically when starting new coding sessions. - Verify editor communication by checking the VS Code MCP extension status and retrieving active extension port numbers. - List available projects registered in the local port registry file to switch agent context across workspaces.

Key facts

  • https://github.com/block/code-mcp
  • Developer Tools & Code Intelligence
  • code, development, source-code

Part of MCP Servers

Related MCP servers

  • MCP LaTeX Server — MCP LaTeX Server is an MCP server that provides tools for creating, editing, validating, and compiling LaTeX documents directly through…
  • MCP JSON — MCP JSON is an MCP server collection that bundles tools for file system operations, Google search, browser-based web automation, and…
  • MCP Jupyter Complete — MCP Jupyter Complete is an MCP server that provides tools for manipulating Jupyter notebook files through position-based cell operations and…
  • MCP LSP Go — MCP LSP Go is an MCP server that connects AI assistants to the official Go Language Server Protocol implementation, gopls,…
  • MCP Manager — MCP Manager is an MCP server management tool that connects directly to your Claude Desktop environment, enabling users to discover,…
  • MCP Lab — MCP Lab is an MCP server development environment designed for building, testing, and debugging custom Model Context Protocol servers integrated…

How do I install Code MCP?

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.

What can Code MCP do?

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.

Which MCP clients work with Code MCP?

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.

Is Code MCP open source?

Yes, Code MCP is open-source software licensed under the Apache License 2.0. The code repository is developed and maintained by Block, Inc.

  • AI Tools
  • Categories
  • Industries
  • CLI Coding Agents
  • MCP Servers
  • MCP Categories