MCP Ai server for Visual Studio
About
Visual Studio extension with 20 Roslyn-powered MCP tools for AI assistants. Semantic code navigation, symbol search, inheritance, call graphs, safe rename, build/test.
Details
- Author
- ladislavsopko
- Categories
- Developer Tools
Jump to
Setup
Install MCP Ai server for Visual Studio in your MCP client (Claude Desktop, Cursor, Windsurf, and others).
Repository: https://github.com/ladislavsopko/mcp-ai-server-visual-studio
Follow the installation instructions in the repository README, then restart your MCP client.
Visual Studio extension with 20 Roslyn-powered MCP tools for AI assistants. Semantic code navigation, symbol search, inheritance, call graphs, safe rename, build/test.
Other tools read your files. MCP AI Server understands your code.
The first and only Visual Studio extension that gives AI assistants access to the C# compiler (Roslyn) and the Visual Studio Debugger through the Model Context Protocol. 41 tools. 13 powered by Roslyn. 19 debugging tools (Preview). Semantic understanding, not text matching.
Or search for"MCP AI Server"in Visual Studio Extensions Manager.
AI coding tools (Claude Code, Codex CLI, Gemini CLI, OpenCode, Cursor, Copilot, Windsurf...) operate at the filesystem level — they read text, run grep, execute builds. They don't understand your code the way Visual Studio does.
MCP AI Server bridges this gap by exposing IntelliSense-level intelligence and the Visual Studio Debugger as MCP tools. Your AI assistant gets the same semantic understanding that powers F12 (Go to Definition), Shift+F12 (Find All References), safe refactoring — and now runtime debugging.
Your AI assistant can now debug your .NET code at runtime through the Visual Studio Debugger. Set breakpoints, step through code, inspect variables, attach to Docker containers and WSL processes.
Complete reference for AI agents — all 19 tools, 10 workflows, Docker & WSL setup, polling patterns, and best practices.
Download AI Debugging Guide (.md)— add it to your AI's context for full debugging capabilities.
- Claude Code— Anthropic's terminal AI coding agent
- Codex CLI— OpenAI's terminal coding agent
- Gemini CLI— Google's open-source terminal agent
- OpenCode— Open-source AI coding agent (45k+ GitHub stars)
- Goose— Block's open-source AI agent
- Aider— AI pair programming in terminal
- Claude Desktop— Anthropic's desktop app
- Cursor— AI-first code editor
- Windsurf— Codeium's AI IDE
- VS Code + Copilot— GitHub Copilot with MCP
- Cline— VS Code extension
- Continue— Open-source AI assistant
Any MCP client— open protocol, universal compatibility
- Installfrom Visual Studio Marketplace
- Openyour .NET solution in Visual Studio
- Configure portin MCP Server Settings (default: 3010)
- Add to your MCP client:
"vs-mcp": { "type": "http", "url": "http://localhost:3010/sdk/" }
- Startasking your AI semantic questions about your code
Any tool supportingModel Context Protocolwill work.
Add these instructions to your project's AI config file (see table above) to ensure your AIautomaticallyprefers MCP tools:
## MCP Tools - ALWAYS PREFER When mcp__vs-mcp__ tools are available, ALWAYS use them instead of Grep/Glob/LS: | Instead of | Use | |------------|-----| | Grep for symbols | FindSymbols, FindSymbolUsages | | LS to explore projects | GetSolutionTree | | Reading files to find code | FindSymbolDefinition then Read | | Searching for method calls | GetMethodCallers, GetMethodCalls | Why? MCP tools use Roslyn semantic analysis - 10x faster, 90% fewer tokens.
Multi-Solution: Understand Your Dependencies
Need the AI to understand a library you depend on? Clone the source from GitHub, open it in a second Visual Studio — each instance runs its own MCP server on aconfigurable port.
Your project → port 3010 Library source (cloned from GitHub) → port 3011 Framework source → port 3012
Your AI connects to all of them. It can trace calls, find usage patterns, and understand inheritanceacross your code and library code.
MCP client configuration — three options depending on your client:
Clients with native HTTP support (Claude Desktop, Claude Code):
{ "mcpServers": { "vs-mcp": { "type": "http", "url": "http://localhost:3010/sdk/" }, "vs-mcp-whisper": { "type": "http", "url": "http://localhost:3011/sdk/" } } }
Clients without HTTP support (via mcp-remote proxy):
{ "mcpServers": { "vs-mcp": { "command": "npx", "args": ["-y", "mcp-remote", "http://localhost:3010/sdk/"] }, "vs-mcp-whisper": { "command": "npx", "args": ["-y", "mcp-remote", "http://localhost:3011/sdk/"] } } }
[mcp_servers.vs-mcp] type = "stdio" command = "npx" args = ["mcp-remote", "http://localhost:3010/sdk/"] [mcp_servers.vs-mcp-whisper] type = "stdio" command = "npx" args = ["mcp-remote", "http://localhost:3011/sdk/"]
- Visual Studio 2022(17.13+) orVisual Studio 2026
- Windows(amd64 or arm64)
- Any MCP-compatible AI tool
Found a bug or have an idea?Open an issue!
0ics srl— Italian software company specializing in AI-powered development tools. Part of theexample4.aiecosystem.
Built byLadislav Sopko— 30 years of software development, from assembler to enterprise .NET.
MCP AI Server: Because your AI deserves the same intelligence as your IDE.*
This is a web browser that enables your coding agent, such as Claude Code, to visit websites on your behalf and assist you in identifying bugs or creating UI test cases.
A stateful LSP runtime for AI agents: warm language server sessions with 50+ tools for go-to-definition, find-references, diagnostics, rename, and more across 30+ languages.
MCP server that gives coding agents program-analysis primitives — data flow, call graphs, taint analysis — so they reason from ground truth instead of grep-and-guess. (same as the GitHub About — keeps your messaging consistent across the web).
An MCP service that equips your workspace with a complete set of AI-accessible development tools for reading, editing, executing, and managing code.
Multi-language code-graph MCP server with 18 tools (find_symbol, callers, callees, blast_radius, dataflow_trace) for AI assistants — local-first, no API key required, ~3× fewer tokens than Claude+grep at the same correctness.
A tool for safely executing local Python code without requiring external data files.
AI-to-AI code review platform — Claude, Codex, and Gemini cross-check each other via MCP, REST API, and CLI for consensus-based results.
Persistent code index using Tree-sitter for fast, precise code search. Replaces grep with ~50 token responses instead of 2000+.
AI-powered code quality analysis to detect best practice violations, security issues, and architectural problems in real-time.
Orchestrates a dual-AI engineering loop where a Primary AI plans and implements, while a Review AI validates and reviews, with continuous feedback for optimal code quality. Supports custom AI pairing (Claude, Codex, Gemini, etc.)
AmazingMCP — MCP Server for .NET / C# Codebases
An MCP server that gives AI agents deep understanding of C# codebases via Roslyn — type search, dependency graphs, usage analysis, and architecture overviews, all from a live in-memory compilation.
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.





