Server facts
vscode-mcp-server
GitHub stars
396
Last commit
Jan 7, 2026
Runtime
node
License
MIT
Project
- Author
- juehang
- Repository
- github.com/juehang/vscode-mcp-server
- License
- MIT
- Category
- Developer Tools
Tech
- Runtime
- node
- Transports
- streamable-http
- Remote access
- No
- Authentication
- None (local loopback 127.0.0.1:3000 only; no built-in auth)
Activity
- GitHub stars
- 396
- Last commit
- Data as of
Overview
Unlike generic filesystem servers that bypass IDE intelligence, `juehang/vscode-mcp-server` installs directly inside Visual Studio Code from the Marketplace (`JuehangQin.vscode-mcp-server`, MIT license) to answer `vscode mcp` workflows using VS Code's own `WorkspaceEdit` and language-server APIs. Once toggled active from the VS Code status bar (or via `vscode-mcp-server.defaultEnabled`), the extension serves Streamable HTTP—not legacy SSE—locally on `127.0.0.1` port `3000` (`http://localhost:3000/mcp`). Native Streamable HTTP clients connect to that URL directly, while Claude Desktop connects through `npx mcp-remote@next http://localhost:3000/mcp` in `claude_desktop_config.json`.
Across 12 tools spanning file operations, line-validated edits, diagnostics, symbol exploration, and integrated-terminal execution, the extension brings IDE refactoring and compiler awareness to external LLMs. Renaming or moving files uses `WorkspaceEdit` so import paths update automatically, `get_diagnostics_code` surfaces workspace errors and warnings (severities 0-3), and symbol tools (`get_document_symbols_code`, `search_symbols_code`, `get_symbol_definition_code`) let agents inspect outlines and type signatures without reading entire source files. Through `vscode-mcp-server.enabledTools`, Claude Code users can disable redundant file or edit groups and keep only VS Code symbol and diagnostics capabilities active. Because there is no authentication layer and shell execution is possible, keep the server bound strictly to local loopback.
Install & configure
Requirements
- Visual Studio Code with the `JuehangQin.vscode-mcp-server` extension installed from the VS Code Marketplace (or compiled locally via `npm install` and `npm run compile`)
- Server enabled via the VS Code status bar toggle (or `vscode-mcp-server.defaultEnabled` setting)
- Node.js (`npx mcp-remote@next`) when connecting `stdio`-only clients such as Claude Desktop to `http://localhost:3000/mcp`
Install `JuehangQin.vscode-mcp-server` in VS Code and click the status bar item to start Streamable HTTP on `http://localhost:3000/mcp` (host `127.0.0.1`, port `3000` by default). Configure `vscode-mcp-server.enabledTools` to pick specific categories (`file`, `edit`, `shell`, `diagnostics`, `symbol`), and use `npx mcp-remote@next http://localhost:3000/mcp` in `claude_desktop_config.json`.
Examples are translated from the published configuration. Supply your own credentials and verify requirements in the upstream README. Remote connectors are shown only where a supported configuration format is known.
Config file · macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
Use Settings → Developer → Edit Config when available. Do not assume a Linux configuration path; check the client documentation for your platform. Remote servers use the app’s connector flow when supported, not the local stdio file shown here. Merge this example with existing settings; do not overwrite unrelated servers.
{
"mcpServers": {
"vscode-mcp-server": {
"command": "npx",
"args": [
"mcp-remote@next",
"http://localhost:3000/mcp"
]
}
}
}Config file · Project: .cursor/mcp.json
User: ~/.cursor/mcp.json
The project path is relative to the workspace root. The tilde denotes your user home directory. Use Cursor’s MCP settings to confirm which configuration and scope your installed version is reading. Merge this example with existing settings; do not overwrite unrelated servers.
{
"mcpServers": {
"vscode-mcp-server": {
"command": "npx",
"args": [
"mcp-remote@next",
"http://localhost:3000/mcp"
]
}
}
}Config file · Workspace: .vscode/mcp.json
For user scope, use the “MCP: Open User Configuration” command if available. Do not guess a user configuration path across operating systems, profiles, containers, or remote workspaces; check the client documentation. Merge this example with existing settings; do not overwrite unrelated servers.
{
"servers": {
"vscode-mcp-server": {
"type": "stdio",
"command": "npx",
"args": [
"mcp-remote@next",
"http://localhost:3000/mcp"
]
}
}
}Config file · macOS/Linux: ~/.codeium/windsurf/mcp_config.json
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Open the MCP configuration through Windsurf’s settings when possible to confirm the active file. Paths can differ in managed or future releases; check the client documentation if this location is not present. Merge this example with existing settings; do not overwrite unrelated servers.
{
"mcpServers": {
"vscode-mcp-server": {
"command": "npx",
"args": [
"mcp-remote@next",
"http://localhost:3000/mcp"
]
}
}
}Config file · Project scope: .mcp.json at the repository root
The project file uses mcpServers. For user scope, use claude mcp add --scope user rather than assuming .mcp.json in your home directory is the user configuration. Check the client documentation for managed settings and storage details. Merge this example with existing settings; do not overwrite unrelated servers.
{
"mcpServers": {
"vscode-mcp-server": {
"type": "stdio",
"command": "npx",
"args": [
"mcp-remote@next",
"http://localhost:3000/mcp"
]
}
}
}Examples are translated from the published configuration. Supply your own credentials and verify requirements in the upstream README. Remote connectors are shown only where a supported configuration format is known.
Tools
Source: repository README. Tool descriptions are a documented snapshot, not a live capability check.
| Tool | What it does |
|---|---|
| list_files_code | List files and directories inside the active VS Code workspace with optional recursive traversal. |
| read_file_code | Read workspace file contents with configurable encoding (default utf-8) and maxCharacters limit (default 100,000). |
| move_file_code | Move a file or directory using VS Code's WorkspaceEdit API so language servers update imports automatically. |
| rename_file_code | Rename a workspace file or folder through WorkspaceEdit with automatic reference refactoring. |
| copy_file_code | Copy an individual file to a new workspace path using VS Code's filesystem API. |
| create_file_code | Create a new file via VS Code's WorkspaceEdit API with optional overwrite or ignoreIfExists flags. |
| replace_lines_code | Replace a 1-based inclusive line range after validating against the expected originalCode snippet. |
| get_diagnostics_code | Inspect VS Code workspace or per-file errors, warnings, info, and hints (severities 0-3) in text or JSON. |
| search_symbols_code | Search workspace symbols (functions, classes, variables) by query with configurable maxResults (default 10). |
| get_symbol_definition_code | Retrieve type information, documentation, and source range for a symbol at a specific file and line number. |
| get_document_symbols_code | Return a hierarchical outline tree and symbol-kind summary for a file with optional maxDepth. |
| execute_shell_command_code | Run a shell command inside VS Code's integrated terminal with shell integration and optional working directory. |
Use cases
- Augment Claude Code with VS Code's language-server symbol outlines, workspace symbol search, and definition lookups while disabling duplicate file/edit tools via `enabledTools`.
- Run `get_diagnostics_code` automatically after edits so Claude verifies TypeScript, ESLint, or compiler errors directly from VS Code's Problems panel.
- Move or rename source files through `move_file_code` and `rename_file_code` to preserve automatic import updates handled by VS Code's `WorkspaceEdit` API.
- Drive build scripts and Git commands in VS Code's integrated terminal from Claude Desktop without leaving a single local workspace.
Strengths
- Leverages VS Code's built-in language servers, `WorkspaceEdit` import refactoring, and diagnostics panel instead of raw text search.
- Selective `vscode-mcp-server.enabledTools` toggles prevent tool duplication when paired with agents like Claude Code.
- One-click Marketplace install (`JuehangQin.vscode-mcp-server`) with a convenient status-bar on/off switch and Streamable HTTP transport.
- Symbol outline and definition tools cut prompt token consumption compared with reading whole files.
Limitations
- Implements no authentication yet and can run arbitrary shell commands, so the port must never be exposed beyond trusted local clients.
- Supports a single open VS Code workspace locally rather than multi-root or remote network hosting.
- Clients that do not speak Streamable HTTP natively (such as older Claude Desktop setups) require bridging via `npx mcp-remote@next`.
vscode-mcp-server setup notes
- vscode-mcp-server's example uses stdio, while its catalog transports are streamable-http; use the example's connection type.