vsc-mcp - VSCode MCP Server
@0xh3x
MCP server for interacting with VSCode and forks (Cursor, Windsurf and others)
Overview
What is vsc-mcp - VSCode MCP Server?
An MCP server that enables interaction with VSCode and its forks (Cursor, Windsurf, and others). It provides tools for managing open files and themes, allowing external MCP clients to control the editor programmatically.
How to use vsc-mcp - VSCode MCP Server?
Install the extension from the VSCode marketplace; the server starts automatically when VSCode launches. Configure an MCP client to connect to http://localhost:3344/sse. You can manually start or stop the server using the VSCode commands Start MCP Server and Stop MCP Server.
Key features of vsc-mcp - VSCode MCP Server
- Retrieve a list of currently opened files in VSCode.
- Close files by providing their labels.
- List all available VSCode themes.
- Get the currently active theme.
- Change the current theme by display name.
Use cases of vsc-mcp - VSCode MCP Server
- Automate file management tasks from external tools or AI assistants.
- Switch editor themes programmatically based on context or time of day.
- Integrate VSCode with custom MCP-compatible pipelines or workflows.
- Control multiple editor instances through a unified MCP interface.
FAQ from vsc-mcp - VSCode MCP Server
What transport does the server use?
The server listens on http://localhost:3344/sse using SSE (Server-Sent Events).
How do I install the server?
Install the “vsc-mcp” extension from the VSCode marketplace. The server starts automatically on VSCode launch; you can also start or stop it manually via the Start MCP Server and Stop MCP Server commands.
What is the configuration URL for MCP clients?
The server endpoint is http://localhost:3344/sse. An example configuration for Cursor is provided in ~/.cursor/mcp.json.
Does the server support VSCode forks?
Yes, the server is explicitly designed to work with VSCode and forks including Cursor, Windsurf, and others.
What tools are currently supported?
There are five tools: getOpenedFiles, closeFiles, listAvailableThemes, getCurrentTheme, and setThemeByDisplayName.