Skip to content
| Marketplace
Sign in
Visual Studio>Tools>MCP Server
MCP Server

MCP Server

Coding With Calvin

| (0) | Free
Exposes Visual Studio features as an MCP (Model Context Protocol) server, enabling AI assistants like Claude to interact with Visual Studio programmatically.
Download

🤖 VS MCP Server

Let AI assistants like Claude control Visual Studio through the Model Context Protocol!

License Build Status Marketplace Version Marketplace Installs Marketplace Rating


🤔 What is this?

VS MCP Server exposes Visual Studio features through the Model Context Protocol (MCP), enabling AI assistants like Claude to interact with your IDE programmatically. Open files, read code, build projects, and more - all through natural conversation!

✨ Features

📂 Solution Tools

Tool Description
solution_info Get information about the current solution
solution_open Open a solution file
solution_close Close the current solution
project_list List all projects in the solution
project_info Get detailed project information

📝 Document Tools

Tool Description
document_list List all open documents
document_active Get the active document
document_open Open a file in the editor
document_close Close a document
document_read Read document contents
document_write Write to a document

✏️ Editor Tools

Tool Description
selection_get Get the current text selection
selection_set Set the selection range
editor_insert Insert text at cursor position
editor_replace Find and replace text
editor_goto_line Navigate to a specific line
editor_find Search within documents

🔨 Build Tools

Tool Description
build_solution Build the entire solution
build_project Build a specific project
clean_solution Clean the solution
build_cancel Cancel a running build
build_status Get current build status

🛠️ Installation

Visual Studio Marketplace

  1. Open Visual Studio 2022 or 2026
  2. Go to Extensions > Manage Extensions
  3. Search for "MCP Server"
  4. Click Download and restart Visual Studio

Manual Installation

Download the latest .vsix from the Releases page and double-click to install.

🚀 Usage

Starting the Server

  1. Open Visual Studio
  2. Go to Tools > MCP Server > Start Server (or enable auto-start in settings)
  3. The MCP server starts on http://localhost:5050

Configuring Claude Desktop

Add this to your Claude Desktop MCP settings:

{
  "mcpServers": {
    "visual-studio": {
      "url": "http://localhost:5050/sse"
    }
  }
}

Settings

Configure the extension at Tools > Options > MCP Server:

Setting Description Default
Auto-start server Start the MCP server when Visual Studio launches Off
Binding Address Address the server binds to localhost
HTTP Port Port for the MCP server 5050
Server Name Name reported to MCP clients Visual Studio MCP
Log Level Minimum log level for output Information
Log Retention Days to keep log files 7

🏗️ Architecture

+------------------+              +----------------------+   named pipes   +------------------+
|  Claude Desktop  |   HTTP/SSE  |  MCPServer.Server    | <-------------> |  VS Extension    |
|  (MCP Client)    | <---------> |  (MCP Server)        |    JSON-RPC     |  (Tool Impl)     |
+------------------+    :5050    +----------------------+                 +------------------+

🤝 Contributing

Contributions are welcome! Whether it's bug reports, feature requests, or pull requests - all feedback helps make this extension better.

Development Setup

  1. Clone the repository
  2. Open src/CodingWithCalvin.MCPServer.slnx in Visual Studio 2022
  3. Ensure you have the "Visual Studio extension development" workload installed
  4. Ensure you have .NET 10.0 SDK installed
  5. Press F5 to launch the experimental instance

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.


👥 Contributors

CalvinAllen


Made with ❤️ by Coding With Calvin

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft