MCP Directory

How to add MCP AI Server for Visual Studio to Cursor

Give AI assistants Roslyn semantic analysis and the Visual Studio Debugger via MCP — 41 tools. Paste the config into ~/.cursor/mcp.json and restart Cursor.

Last updated June 14, 2026 · 34 · http · no auth

Cursor config for MCP AI Server for Visual Studio

{
  "mcpServers": {
    "mcp-ai-server-for-visual-studio": {
      "url": "http://localhost:3010/sdk/",
      "type": "streamable-http"
    }
  }
}

Remote server — no local install needed. Restart the client after saving the config.

Setup steps

  1. 1Open Cursor → Settings → MCP → Add new MCP server (or edit ~/.cursor/mcp.json directly).
  2. 2Paste the MCP AI Server for Visual Studio config below into the "mcpServers" object.
  3. 3Fill in placeholder secrets, then save.
  4. 4Cursor reloads MCP servers automatically — check Settings → MCP for a green status dot.
  5. 5Ask Cursor to use one of MCP AI Server for Visual Studio's tools to confirm it's connected.

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 Cursor

FindSymbols

Find classes, methods, properties by name — semantic, not text matching.

FindSymbolDefinition

Go to definition (F12 equivalent).

FindSymbolUsages

Find all references, compiler-verified (Shift+F12 equivalent).

GetSymbolAtLocation

Identify the symbol at a specific line and column.

GetDocumentOutline

Semantic structure of a document: classes, methods, properties, fields.

GetInheritance

Full type hierarchy: base types, derived types, interfaces.

GetMethodCallers

Which methods call this method (call graph, upward).

GetMethodCalls

Which 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 + Cursor FAQ

Where is the Cursor config file?

Cursor reads MCP servers from ~/.cursor/mcp.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 Cursor?

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.

View repo Full MCP AI Server for Visual Studio page