
vscode-mcp-server
MCP server that lets Claude and other AI clients read, edit and search code inside VS Code
vscode-mcp-server is an open-source MCP server for developer tools. It is available on VS Code, macOS, Windows, Linux and API.
- Pricing
- Open source
- Platforms
- VS Code, macOS, Windows
- What it can do
- Can change data (4 tools)
- GitHub stars
- 396
- Last commit
Similar MCP servers
About vscode-mcp-server
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.
Tools this server provides (12)
Taken from the project documentation; the running server may differ.
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_codeName suggests: reads
- Lists files and directories in the workspace
- read_file_codeName suggests: reads
- Reads file contents with encoding and size limits
- move_file_codeName suggests: changes
- Moves a file or directory using the WorkspaceEdit API
- rename_file_codeName suggests: changes
- Renames a file or directory with automatic reference updates
- copy_file_code
- Copies a file to a new location
- create_file_codeName suggests: changes
- Creates a new file using the WorkspaceEdit API
- replace_lines_code
- Replaces specific lines in a file
- get_diagnostics_codeName suggests: reads
- Checks workspace or file for errors and warnings
- search_symbols_codeName suggests: reads
- Searches for symbols across the workspace
- get_symbol_definition_codeName suggests: reads
- Gets definition and type information for a symbol
- get_document_symbols_codeName suggests: reads
- Gets a hierarchical outline of symbols in a file
- execute_shell_command_codeName suggests: changes
- Runs a shell command in the integrated terminal
What it does
- 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
Pricing
Open source
Free and MIT licensed
vscode-mcp-server 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.
