Sponsored by Deepsite.site

Visual Studio Mcp Server

Created By
Ladislav Sopko14 days ago
MCP Server for Visual Studio bridges your IDE with AI coding assistants like Claude Code, Cursor, Windsurf, and Cline. Unlike file-based tools, this extension provides what AI agents CAN'T do alone: • IntelliSense & semantic code understanding (powered by Roslyn) • Symbol search - definitions, usages, inheritance hierarchies • Solution/project navigation and document outlines • Build execution with clean, structured error output • Async test execution with progress tracking • Solution-wide refactoring (rename symbols across all files) 20 tools designed for AI consumption with token-efficient output. Windows only. Supports VS 2022 (17.13+) and VS 2026.
Content

🤖 MCP Server for Visual Studio

Bridge Visual Studio with AI Assistants using the Model Context Protocol

VS 2022 Free


💡 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

ToolDescription
GetSolutionTreeBrowse complete solution and project structure
GetDocumentOutlineView file outline (classes, methods, properties)
GetProjectReferencesList all project dependencies

🔍 Symbol Search & Analysis

ToolDescription
FindSymbolsSearch for any symbol by name
FindSymbolDefinitionJump to where a symbol is defined
FindSymbolUsagesFind all references across the solution
GetSymbolAtLocationGet symbol info at a specific location
GetInheritanceView type inheritance hierarchy
GetMethodCallersFind what calls a method
GetMethodCallsFind what a method calls

📝 Editor Context

ToolDescription
GetActiveFileGet current file and cursor position
GetSelectionGet selected text
CheckSelectionCheck if text is selected

🔨 Build & Test

ToolDescription
ExecuteCommandRun build or clean commands
ExecuteAsyncTestRun tests asynchronously with progress tracking

✏️ Code Editing

ToolDescription
FormatDocumentFormat code using VS settings
RenameSymbolRename symbols across the entire solution

🛠️ Utilities

ToolDescription
TranslatePathConvert between Windows and WSL paths
SetLogLevelConfigure logging verbosity
GetLoggingStatusView current log configuration

🚀 Quick Start

1. Start the Server

  1. Open a solution in Visual Studio
  2. Go to ToolsStart MCP Server
  3. Server starts on http://localhost:3001/sdk/

2. Configure Your AI Agent

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 ToolsMCP Server Settings:

SettingDefaultDescription
Port3001Server port number
Path FormatWSLOutput paths as WSL (/mnt/c/...) or Windows (C:\...)
ToolsAll enabledEnable/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

Server Config

{
  "mcpServers": {
    "vs-mcp": {
      "url": "http://localhost:3001/sdk/"
    }
  }
}
Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
Tavily Mcp
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
Amap Maps高德地图官方 MCP Server
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
ChatWiseThe second fastest AI chatbot™
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
Serper MCP ServerA Serper MCP Server
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
Playwright McpPlaywright MCP server
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
WindsurfThe new purpose-built IDE to harness magic
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
CursorThe AI Code Editor
Y GuiA web-based graphical interface for AI chat interactions with support for multiple AI models and MCP (Model Context Protocol) servers.
DeepChatYour AI Partner on Desktop