msbuild-mcp-server

zenoengine/msbuild-mcp-server

3.1

If you are the rightful owner of msbuild-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

A lightweight MCP server for automating MSBuild projects and solutions builds.

The MSBuild MCP Server is designed to streamline the process of building MSBuild projects and solutions by automating the discovery of the MSBuild executable and providing customizable build configurations. It supports a wide range of MSBuild-compatible projects, including .sln, .csproj, and .vcxproj files, making it versatile for languages like C# and C++. The server is compatible with various MCP clients, such as VSCode, Cursor, and Windsurf, and offers clear error reporting to help developers quickly identify and resolve build issues. With cross-language support and dynamic MSBuild discovery, it ensures compatibility with different Visual Studio installations, enhancing the development workflow on Windows platforms.

Features

  • Dynamic MSBuild Discovery: Automatically detects the MSBuild executable, ensuring compatibility with various Visual Studio installations.
  • Customizable Build Settings: Easily configure build options such as configuration, platform, verbosity level, parallel build CPU count, NuGet restore, and additional command-line arguments through LLM-driven tool invocation.
  • Clear Error Reporting: Filters and presents concise, relevant error messages upon build failures.
  • MCP Client Compatibility: Supports seamless integration with popular MCP clients such as VSCode, Cursor, Windsurf, and more.
  • Cross-Language Support: Supports MSBuild-compatible projects, enabling builds for languages like C#, C++, and more across Windows platforms.

Usages

usage with vscode

"mcp": {
  "servers": {
    "msbuild-mcp-server": {
      "command": "uvx",
      "args": [
        "msbuild-mcp-server@latest"
      ]
    }
  }
}

usage with cursor

"mcp": {
  "servers": {
    "msbuild-mcp-server": {
      "command": "uvx",
      "args": [
        "msbuild-mcp-server@latest"
      ]
    }
  }
}

usage with windsurf

"mcp": {
  "servers": {
    "msbuild-mcp-server": {
      "command": "uvx",
      "args": [
        "msbuild-mcp-server@latest"
      ]
    }
  }
}