vscode-mcp
An MCP server that gives Claude IDE capabilities inside VS Code and Cursor, enabling file operations, shell commands, and workspace management via natural language.
README
vscode-mcp
An MCP (Model Context Protocol) server that gives Claude IDE capabilities inside VS Code and Cursor. Claude can read, write, edit, search, and run commands in your workspace — directly from the chat.
Tools
| Tool | Description |
|---|---|
read_file |
Read file contents, with optional line range |
write_file |
Write or overwrite a file (creates parent dirs) |
edit_file |
Replace an exact string in a file |
list_directory |
List files and dirs (optionally recursive) |
create_directory |
Create a directory tree |
delete_path |
Delete a file or directory |
move_path |
Move or rename a file/directory |
search_files |
Grep-style regex search across files |
find_files |
Find files by glob pattern (e.g. *.ts) |
run_command |
Execute any shell command, capture output |
get_workspace_info |
Platform, Node version, git branch & status |
get_file_info |
File metadata (size, modified time, type) |
Installation
npm install
npm run build
Using with Cursor
Cursor reads MCP server configuration from:
- Global:
~/.cursor/mcp.json - Project:
.cursor/mcp.json(in your project root)
Option A — run via node (after build)
Add to your Cursor MCP config:
{
"mcpServers": {
"vscode-mcp": {
"command": "node",
"args": ["/absolute/path/to/vscode-mcp/dist/index.js"]
}
}
}
Option B — run via npx (no manual build needed)
{
"mcpServers": {
"vscode-mcp": {
"command": "npx",
"args": ["--yes", "vscode-mcp"]
}
}
}
After editing the config, open Cursor Settings → Features → MCP and click Refresh (or restart Cursor).
Using with VS Code + Copilot Chat (MCP support)
Add to your VS Code settings.json:
"mcp": {
"servers": {
"vscode-mcp": {
"type": "stdio",
"command": "node",
"args": ["/absolute/path/to/vscode-mcp/dist/index.js"]
}
}
}
Development
npm run dev # watch mode (recompiles on save)
npm start # run the built server
Tips
- All paths can be absolute or relative to the workspace root.
- Pass
workspace_rootto any tool to anchor relative paths to a specific directory. run_commandaccepts any shell command — use it forgit,npm, linters, compilers, etc.search_filesskipsnode_modules,dist, and hidden folders automatically.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.