mcpField
V
vsc-mcp - VSCode MCP Server

vsc-mcp - VSCode MCP Server

Remote
github.com/0xh3xDeveloper Tools4Updated 81w ago
Repository

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

  1. 01List currently open files
  2. 02Close files by label
  3. 03List available themes
  4. 04View the active theme
  5. 05Change theme by display name

Use cases

  1. 01Check which files are open in the editor
  2. 02Close selected files through an MCP client
  3. 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.

Endpointhttp://localhost:3344/sse
Copy install command
Claude CodeTerminal
Cursor.cursor/mcp.json
VS Code.vscode/mcp.json
Claude Desktopclaude_desktop_config.json
Windsurf~/.codeium/windsurf/mcp_config.json

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 README

vsc-mcp - VSCode MCP Server

MCP server for interacting with VSCode and forks (Cursor, Windsurf and others)

Installation

  1. Install the extension from the VSCode marketplace
  2. The server will start automatically when VSCode launches
  3. You can manually start/stop the server using the commands:
    • Start MCP Server
    • Stop 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
  1. File Management

    • getOpenedFiles: Retrieves a list of currently opened files
    • closeFiles: Closes files based on provided labels
  2. Theme Management

    • listAvailableThemes: Lists all available VSCode themes
    • getCurrentTheme: Gets the currently active theme
    • setThemeByDisplayName: Changes the current theme by display name

Comments

Markdown supported

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.