# vscode-mcp-server

> vscode-mcp-server is an open-source MCP server for developer tools. MCP server that lets Claude and other AI clients read, edit and search code inside VS Code. It is available on VS Code, macOS, Windows, Linux and API.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** VS Code, macOS, Windows, Linux, API
- **Repository:** https://github.com/juehang/vscode-mcp-server
- **GitHub stars:** 396
- **License:** MIT
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-01

## About

Turns a running VS Code window into an MCP endpoint, so an AI client can list and read workspace files, make edits, check diagnostics and look up symbols using the editor's own language services. It is built to complement coding agents that already have basic file tools, so you can switch on only the symbol or diagnostics groups and avoid duplicating capabilities.

The server runs locally over streamable HTTP, on a port and host set in the extension settings, and it is toggled from a status bar item. Tools are grouped into file, edit, diagnostics, symbol and shell categories, and each group can be enabled or disabled independently.

It suits developers who already work in VS Code and want an assistant to navigate and modify a project with the same language intelligence the editor uses. Because the shell tool can run arbitrary commands, the author advises keeping the port unexposed and only connecting trusted clients.

## Features

- **Workspace file operations:** List, read, move, rename and copy files and folders within the open workspace.
- **Symbol search and outlines:** Find symbols across the project and get hierarchical outlines of individual files.
- **Symbol definitions and hovers:** Retrieve type information and documentation for a symbol at a given line.
- **Diagnostics checks:** Report errors and warnings for a single file or the whole workspace.
- **Targeted code edits:** Create files and replace line ranges, with validation against the original text.
- **Integrated terminal commands:** Run shell commands in the VS Code terminal and return their output.
- **Selective tool groups:** Enable only the tool categories you need so they do not overlap with an agent's built-ins.

## Good for

- Give Claude Code VS Code symbol search without duplicating its file tools
- Ask an AI client to review workspace errors and warnings after making changes
- Generate a quick structural overview of a large source file before reading it
- Run build or git commands from an AI chat session inside the editor
- Refactor file and folder names with import references updated by VS Code

## Tools

From the tool list in its README, going by the names, 4 of 12 tools change data; 2 names don't say. From the server's own tool labels and tool names; not verified by us.

- `list_files_code` (name suggests: reads): Lists files and directories in the workspace
- `read_file_code` (name suggests: reads): Reads file contents with encoding and size limits
- `move_file_code` (name suggests: changes): Moves a file or directory using the WorkspaceEdit API
- `rename_file_code` (name suggests: changes): Renames a file or directory with automatic reference updates
- `copy_file_code`: Copies a file to a new location
- `create_file_code` (name suggests: changes): Creates a new file using the WorkspaceEdit API
- `replace_lines_code`: Replaces specific lines in a file
- `get_diagnostics_code` (name suggests: reads): Checks workspace or file for errors and warnings
- `search_symbols_code` (name suggests: reads): Searches for symbols across the workspace
- `get_symbol_definition_code` (name suggests: reads): Gets definition and type information for a symbol
- `get_document_symbols_code` (name suggests: reads): Gets a hierarchical outline of symbols in a file
- `execute_shell_command_code` (name suggests: changes): Runs a shell command in the integrated terminal

## FAQ

### Which transport does the server use?

It uses the streamable HTTP API, not SSE, and listens on localhost by default at port 3000 with the endpoint /mcp.

### Does vscode-mcp-server support multiple workspaces?

No. Only one workspace is supported at a time, and the server only works locally.

### Is there authentication?

No. Authentication has not been implemented, so the port should not be exposed to untrusted networks.

### How do I install vscode-mcp-server?

Install the extension from the Visual Studio Marketplace, or clone the repository and build it with npm install and npm run compile.

### Is vscode-mcp-server free?

Yes. vscode-mcp-server is open source, so you can use and self-host it for free.

### What are the best alternatives to vscode-mcp-server?

The closest alternatives to vscode-mcp-server are MCP VS Code, mcp-server-toolkit, Claude Code Explorer MCP, Vscode Terminal MCP and codemcp.

## Where this comes from

- Description: written from the project's README.

## Alternatives

- [MCP VS Code](https://ai-powered.com/mcp/mcp-vs-code): MCP VS Code is an open-source MCP server for developer tools.
- [mcp-server-toolkit](https://ai-powered.com/mcp/mcp-server-toolkit): mcp-server-toolkit is an open-source MCP server for developer tools.
- [Claude Code Explorer MCP](https://ai-powered.com/mcp/claude-code-explorer-mcp): Claude Code Explorer MCP is an open-source MCP server for ai models and llm tooling.
- [Vscode Terminal MCP](https://ai-powered.com/mcp/vscode-terminal-mcp): Vscode Terminal MCP is an open-source MCP server for developer tools.
- [codemcp](https://ai-powered.com/mcp/codemcp-2): codemcp is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [MCPProxy](https://ai-powered.com/mcp/mcpproxy): MCPProxy is an open-source MCP server for developer tools.
- [Sense](https://ai-powered.com/mcp/sense-2): Sense is an open-source MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/vscode-mcp-server
