vs-code-mcp-server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@vs-code-mcp-serverSearch for 'TODO' in the codebase"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
VS Code MCP Server
A comprehensive Model Context Protocol (MCP) server designed to provide AI assistants with powerful VS Code integration capabilities, offering 29 specialized tools for file operations, command execution, project analysis, and development workflow automation.
π Features
π File Operations: Complete file and directory management (8 tools)
β‘ Advanced File Editing: Precise line-level editing with validation (6 tools)
π₯οΈ Command Execution: System command execution and process management (8 tools)
π Project Analysis: Codebase insights and dependency discovery (3 tools)
π VS Code Integration: Symbol search, definitions, and diagnostics (4 tools)
Related MCP server: AiDD MCP Server
π¦ Installation
Prerequisites
Node.js 18.0.0 or higher
Claude Desktop (or any MCP-compatible client)
Setup
Clone the repository:
git clone <your-repo-url> cd vs-code-mcp-serverInstall dependencies:
npm installBuild the server:
npm run build
Configuration
Add the server to your MCP client configuration. For Claude Desktop, edit the config file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"vs-code-mcp-server": {
"command": "node",
"args": ["/path/to/your/vs-code-mcp-server/dist/index.js"],
"env": {}
}
}
}Note: Replace
/path/to/your/vs-code-mcp-serverwith the actual path to your cloned repository.
π οΈ Available Tools
π File Operations (8 tools)
Tool | Description |
| List files and directories with optional recursive listing |
| Read file contents with encoding and line range options |
| Create new files with overwrite protection |
| Delete files and directories with recursive options |
| Copy files and directories to new locations |
| Move or rename files and directories |
| Create directories with recursive parent creation |
| Search for text patterns across files with regex support |
β‘ Advanced File Operations (6 tools)
Tool | Description |
| Replace specific lines with content validation |
| Insert content at specific line positions |
| Delete specific line ranges from files |
| Append content to file end |
| Prepend content to file beginning |
| Advanced find/replace with regex support |
π₯οΈ Command Execution (8 tools)
Tool | Description |
| Execute shell commands with timeout control |
| Execute commands with real-time output streaming |
| Kill processes by PID or name |
| List running processes with filtering |
| Kill multiple processes matching patterns |
| Check command availability on system |
| Get comprehensive system information |
| Execute script files with appropriate interpreters |
π Project Analysis (3 tools)
Tool | Description |
| Analyze project structure and provide insights |
| Get detailed codebase statistics |
| Discover and analyze project dependencies |
π VS Code Integration (4 tools)
Tool | Description |
| Search for symbols across workspace with fuzzy matching |
| Get symbol definitions with type information |
| Get hierarchical symbol outline for files |
| Analyze code for errors and warnings |
π§ Development
Scripts
npm run build- Build the TypeScript sourcenpm run start- Start the MCP servernpm run dev- Build and start in development modenpm run watch- Watch for changes and rebuild automaticallynpm run test- Run the test suite
Project Structure
src/
βββ index.ts # Main server implementation
βββ tools/ # Tool definitions and handlers
β βββ file-tools.ts # Basic file operations
β βββ advanced-file-tools.ts # Advanced file editing
β βββ command-tools.ts # Command execution
β βββ project-tools.ts # Project analysis
β βββ vscode-integration-tools.ts # VS Code features
βββ types/ # TypeScript type definitions
βββ utils/ # Utility functions
β βββ file-utils.ts # File operation utilities
β βββ command-utils.ts # Command execution utilities
β βββ file-watcher.ts # File watching capabilities
β βββ logger.ts # Logging utilitiesπ Security
This MCP server is designed for defensive development tasks only. It includes:
Input validation and sanitization
Safe file operation boundaries
Process execution controls
Error handling and logging
π€ Contributing
Fork the repository
Create a feature branch (
git checkout -b feature/amazing-feature)Commit your changes (
git commit -m 'Add amazing feature')Push to the branch (
git push origin feature/amazing-feature)Open a Pull Request
π License
This project is licensed under the MIT License - see the LICENSE file for details.
π Issues & Support
If you encounter any issues or have questions:
Check the Issues section
Create a new issue with detailed information
Include error logs and configuration details
π Acknowledgments
Built with the Model Context Protocol SDK
Designed for integration with Claude Desktop
Supports VS Code development workflows
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-quality-maintenanceEnables AI assistants to perform Business Central AL development tasks including language server operations, container management, Git version control, and file system operations for professional BC development workflows.
- Alicense-qualityDmaintenanceProvides AI-driven development tools including file system operations, multi-language code analysis with tree-sitter, Git operations, code execution, and system information retrieval.MIT
- Alicense-qualityFmaintenanceEnables AI assistants to interact with VS Code for language intelligence, debugging, and code execution.16MIT
- Alicense-qualityDmaintenanceEnables AI assistants to manage project analysis, code metrics, documentation, Git operations, code quality, and file organization through natural language commands.92MIT
Related MCP Connectors
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
Connect AI assistants to your GitHub-hosted Obsidian vault to seamlessly access, search, and analyβ¦
Cross-agent artifact workspace with provenance across Claude Code, Codex, Cursor, LangGraph.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/aditya-613/vscode-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server