VSCode Context MCP Server

MCP Server to Connect with VS Code IDE

Local serverstdio

What is the VSCode Context MCP Server?

MCP Server to Connect with VS Code IDE

The short version

A Model Context Protocol (MCP) server that provides VSCode context and filesystem operations for AI assistants.

VSCode Context MCP creates a bridge between AI assistants and your VSCode environment. It enables AI models to:

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
get_vscode_contextRetrieve complete VSCode context information
get_attached_filesRetrieve a list of files attached to the workspace
get_project_pathGet current project root directory
get_current_fileGet details and content of the active file
get_open_tabsList all open editor tabs
get_problemsRetrieve diagnostics (errors/warnings)
get_terminal_contentGet terminal output and history
run_commandExecute a shell command
read_fileRead contents of a file
read_multiple_filesRead multiple files at once
write_fileCreate or overwrite a file
edit_fileMake line-based edits to a file
create_directoryCreate directory structure
list_directoryList files and directories

How to install the VSCode Context MCP Server

{
  "mcpServers": {
    "vscode-context": {
      "command": "npx",
      "args": ["-y", "npm"]
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Example prompts to try

  • “Use VSCode Context MCP to get vscode context.”
  • “Use VSCode Context MCP to get attached files.”
  • “Use VSCode Context MCP to get project path.”

Frequently asked questions

Be careful what commands you ask the server to run. In Claude Desktop, use “Approve Once” instead of “Allow for This Chat” so you can review each action. Deny any command you don’t trust. The server does not yet implement comprehensive security measures.