Project
VisualMCP
A local MCP server that gives AI coding agents the IDE's brain for C#/.NET. More than 400 tools built on Roslyn, MSBuild and a real debugger, so the agent asks the compiler instead of grepping text.
“Your agent is fluent in JavaScript. It guesses at C#.” VisualMCP exists so that it stops guessing: every question about the code goes through the same semantic model an IDE uses, and every edit is checked against the compiler before it touches the disk. The code and the docs are on GitHub.
-
It reads code the way the compiler does
Semantic model, not regex
Symbols, references, callers and implementations are resolved through Roslyn, so overloads, generics, partial types and interface dispatch are answered exactly — the way Visual Studio would answer them, not the way a text search would.
-
Refactorings that refuse to break the build
Compiler-gated edits
Rename, extract, move and change-signature operations are verified against the compiler before anything is written. An edit that would introduce an error is refused, and every write is recorded so it can be reverted.
-
The whole dev loop, in the conversation
Build, test, debug, profile
Build the solution, run the tests with coverage, attach a debugger with breakpoints, run benchmarks, profile CPU, allocations, GC and lock contention — all without the agent ever leaving your repo's context.
-
It reads binaries too
ILSpy and Ghidra
.NET assemblies are decompiled with ILSpy and native binaries recovered with Ghidra; the result lands in the same queryable model as the source code, so “what does this library actually do?” has an answer.
-
Local first
No account, no hosted service
One local process, talking to your MCP client — Claude Code, ZCode and friends. Nothing about your code leaves the machine.
Documentation
The whole server, explained page by page: what each family of tools does, which tool answers which question, and the ways of working that make the agent and the compiler agree.
-
Getting started
Requirements, install scopes, the routing guard, and a first five-minute session.
Read -
How it works
The process model, the solution store, the dashboard, the safety ladder and privacy.
Read -
Capabilities
What is in the box: navigation, analysis, refactoring, style, runtime work and more.
Read -
Read code
Finding and understanding code: symbols, references, diagnostics, audits, complexity.
Read -
Refactor
Semantic refactorings, the style engine, inspections and code fixes — and what “safe” means.
Read -
Razor & binaries
Razor and Blazor pages, the canonical pseudocode model, ILSpy and Ghidra.
Read -
Build & test
Build, run, test with coverage, benchmarks, NuGet, publish and framework upgrades.
Read -
Profiling
CPU, GC, allocations, I/O and locks of a live process — with verdicts, not just tables.
Read -
Workflow
Batch plans, the board and its memory, Git, GitHub, Docker, HTTP and SignalR.
Read
Source-available under the PolyForm Noncommercial license: free for noncommercial use, commercial use requires a license. Stop your agent from guessing — give it a compiler. matteofabbri/VisualMCP on GitHub