🤖 MCP Server for Visual Studio
Bridge Visual Studio with AI Assistants using the Model Context Protocol

💡 Why This Extension?
AI coding assistants are excellent at reading and writing files - they don't need help with that.
What they CAN'T do on their own:
- 🧠 Access IntelliSense and semantic code understanding
- 🔍 Find symbol definitions, usages, and inheritance hierarchies
- ✏️ Perform solution-wide refactoring (rename symbols across all files)
What works BETTER through Visual Studio:
- 🔨 Builds - VS provides clean, structured error output (saves tokens!)
- 🧪 Tests - Async execution with progress tracking, optimized for AI consumption
This extension gives AI agents the IDE superpowers they're missing - not file editing, but the deep code intelligence and token-efficient operations that only Visual Studio provides.
What is MCP?
The Model Context Protocol (MCP) is an open standard that enables AI assistants to interact with development tools. This extension runs an MCP server inside Visual Studio, giving AI agents direct access to your IDE.
✨ Features
🗂️ Solution Navigation
| Tool |
Description |
GetSolutionTree |
Browse complete solution and project structure |
GetDocumentOutline |
View file outline (classes, methods, properties) |
GetProjectReferences |
List all project dependencies |
🔍 Symbol Search & Analysis
| Tool |
Description |
FindSymbols |
Search for any symbol by name |
FindSymbolDefinition |
Jump to where a symbol is defined |
FindSymbolUsages |
Find all references across the solution |
GetSymbolAtLocation |
Get symbol info at a specific location |
GetInheritance |
View type inheritance hierarchy |
GetMethodCallers |
Find what calls a method |
GetMethodCalls |
Find what a method calls |
📝 Editor Context
| Tool |
Description |
GetActiveFile |
Get current file and cursor position |
GetSelection |
Get selected text |
CheckSelection |
Check if text is selected |
🔨 Build & Test
| Tool |
Description |
ExecuteCommand |
Run build or clean commands |
ExecuteAsyncTest |
Run tests asynchronously with progress tracking |
✏️ Code Editing
| Tool |
Description |
FormatDocument |
Format code using VS settings |
RenameSymbol |
Rename symbols across the entire solution |
🛠️ Utilities
| Tool |
Description |
TranslatePath |
Convert between Windows and WSL paths |
SetLogLevel |
Configure logging verbosity |
GetLoggingStatus |
View current log configuration |
🚀 Quick Start
1. Start the Server
- Open a solution in Visual Studio
- Go to Tools → Start MCP Server
- Server starts on
http://localhost:3001/sdk/
Add to your .mcp.json file:
{
"mcpServers": {
"vs-mcp": {
"url": "http://localhost:3001/sdk/"
}
}
}
3. Start Coding with AI!
Your AI assistant can now navigate your codebase, find symbols, run builds, and refactor code directly through Visual Studio.
🤝 Supported AI Agents
- Claude Code (Anthropic)
- Cursor
- Windsurf
- Cline
- Any MCP-compatible AI tool
⚙️ Settings
Access via Tools → MCP Server Settings:
| Setting |
Default |
Description |
| Port |
3001 |
Server port number |
| Path Format |
WSL |
Output paths as WSL (/mnt/c/...) or Windows (C:\...) |
| Tools |
All enabled |
Enable/disable individual tools |
📋 Requirements
- Visual Studio 2022 (17.13+) or Visual Studio 2026
- Windows (amd64 or arm64)
🏢 About
0ics srl - Italian software development company specializing in custom solutions and AI-powered development tools.
🌐 www.0ics.com