About vsc-mcp - VSCode MCP Server
vsc-mcp is an MCP server extension for interacting with VSCode and its forks, including Cursor and Windsurf. It provides tools to inspect open files and view or change the editor theme.
Key features
- 01List currently open files
- 02Close files by label
- 03List available themes
- 04View the active theme
- 05Change theme by display name
Use cases
- 01Check which files are open in the editor
- 02Close selected files through an MCP client
- 03Inspect or switch the VSCode theme
MCP support
The VSCode extension starts the server automatically with the editor and serves MCP clients over SSE at `http://localhost:3344/sse`. It exposes file and theme management tools.
Configuration
Remote servers need no local install. Pick your client, then copy the config or install in one click.
http://localhost:3344/sseclaude mcp add --transport http vsc-mcp-0xh3x http://localhost:3344/sse{"mcpServers":{"vsc-mcp-0xh3x":{"type":"http","url":"http://localhost:3344/sse"}}}Open in Cursor{"servers":{"vsc-mcp-0xh3x":{"type":"http","url":"http://localhost:3344/sse"}}}Open in VS Code{"mcpServers":{"vsc-mcp-0xh3x":{"type":"http","url":"http://localhost:3344/sse"}}}{"mcpServers":{"vsc-mcp-0xh3x":{"serverUrl":"http://localhost:3344/sse"}}}Run commands in a terminal; paste JSON into the client’s MCP config and restart. Servers that need sign-in will prompt on first connect.
Tools
Details
From the project READMEvsc-mcp - VSCode MCP Server
MCP server for interacting with VSCode and forks (Cursor, Windsurf and others)
Installation
- Install the extension from the VSCode marketplace
- The server will start automatically when VSCode launches
- You can manually start/stop the server using the commands:
Start MCP ServerStop MCP Server
Configuration
Configure your MCP client to connect to the server at: http://localhost:3344/sse
Example Configuration for Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"vsc-mcp": {
"url": "http://localhost:3344/sse"
}
}
}
Currently supported tools
-
File Management
getOpenedFiles: Retrieves a list of currently opened filescloseFiles: Closes files based on provided labels
-
Theme Management
listAvailableThemes: Lists all available VSCode themesgetCurrentTheme: Gets the currently active themesetThemeByDisplayName: Changes the current theme by display name
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.