
How to add MCP AI Server for Visual Studio to Windsurf
Give AI assistants Roslyn semantic analysis and the Visual Studio Debugger via MCP — 41 tools. Paste the config into ~/.codeium/windsurf/mcp_config.json and restart Windsurf.
Last updated June 14, 2026 · 34★ · http · no auth
Windsurf config for MCP AI Server for Visual Studio
{
"mcpServers": {
"mcp-ai-server-for-visual-studio": {
"serverUrl": "http://localhost:3010/sdk/"
}
}
}Remote server — no local install needed. Restart the client after saving the config.
Setup steps
- 1Open Windsurf → Cascade → the hammer/MCP icon → Configure (or edit ~/.codeium/windsurf/mcp_config.json).
- 2Paste the MCP AI Server for Visual Studio config below.
- 3Fill in placeholder secrets, then save.
- 4Click Refresh in the MCP panel.
- 5MCP AI Server for Visual Studio's tools become available to Cascade.
Before you start
- Visual Studio 2022 (17.13+) or Visual Studio 2026
- Windows (amd64 or arm64)
- The MCP AI Server extension installed from the Visual Studio Marketplace
- An open .NET solution in Visual Studio
- Any MCP-compatible AI client
- npx (Node.js) — only if connecting via the mcp-remote proxy from a client without native HTTP support
What MCP AI Server for Visual Studio can do in Windsurf
FindSymbolsFind classes, methods, properties by name — semantic, not text matching.
FindSymbolDefinitionGo to definition (F12 equivalent).
FindSymbolUsagesFind all references, compiler-verified (Shift+F12 equivalent).
GetSymbolAtLocationIdentify the symbol at a specific line and column.
GetDocumentOutlineSemantic structure of a document: classes, methods, properties, fields.
GetInheritanceFull type hierarchy: base types, derived types, interfaces.
GetMethodCallersWhich methods call this method (call graph, upward).
GetMethodCallsWhich methods this method calls (call graph, downward).
Security
The server binds to localhost only and requires no authentication, so any local process can reach it on the configured port. It exposes powerful capabilities — running builds/tests, executing immediate-window expressions with side effects (immediate_execute), and driving the debugger — against your open solution. Only enable it on machines you trust, and disable tool groups you do not need in MCP Server Settings.
MCP AI Server for Visual Studio + Windsurf FAQ
Where is the Windsurf config file?
Windsurf reads MCP servers from ~/.codeium/windsurf/mcp_config.json. Paste the MCP AI Server for Visual Studio config there under the "mcpServers" key and restart the client.
Is MCP AI Server for Visual Studio safe to use with Windsurf?
The server binds to localhost only and requires no authentication, so any local process can reach it on the configured port. It exposes powerful capabilities — running builds/tests, executing immediate-window expressions with side effects (immediate_execute), and driving the debugger — against your open solution. Only enable it on machines you trust, and disable tool groups you do not need in MCP Server Settings.
How do I install it?
Install the 'MCP AI Server' extension from the Visual Studio Marketplace (itemName LadislavSopko.mcpserverforvs), or search for 'MCP AI Server' in the Visual Studio Extensions Manager. It is free.
How does my AI client connect?
Open your .NET solution in Visual Studio, confirm the port in Tools > MCP Server Settings, and add an HTTP MCP server pointing at http://localhost:3010/sdk/. Clients without native HTTP support can connect through the mcp-remote proxy (npx -y mcp-remote http://localhost:3010/sdk/).
Which AI tools are supported?
Any MCP-compatible client — including Claude Code, Claude Desktop, Cursor, Windsurf, VS Code + Copilot, Cline, Continue, Gemini CLI, OpenAI Codex CLI, Goose, OpenCode, and Aider.