JoshuaRamirez/RoslynMcpServer

View on GitHub ↗

Model Context Protocol server for Roslyn-powered C# refactoring operations

24 ★12 forksC#Updated 5mo ago

What you need to know

An MCP server that exposes 41 Roslyn-powered tools for safely refactoring C# codebases, including rename, move, extract, signature changes, code generation, navigation, analysis and conversion tools.

Install

dotnet tool install -g RoslynMcp.Server

Usage

  • Add a .mcp.json entry pointing at the roslyn-mcp command
  • Ask the assistant to rename a symbol or run diagnostics on your .sln

Key features

  • 41 tools: 19 refactoring, 5 navigation, 6 analysis, 4 generation, 7 conversion
  • Preview mode and atomic writes with rollback
  • Solution-wide reference updates
  • Standalone CLI (RoslynMcp.Cli) for CI/scripts

Best for

C# developers who want AI-assisted, compiler-backed refactoring

Caveats

  • Requires .NET 9.0 SDK or later
  • Needs a valid .sln/.slnx/.csproj to operate on
Platforms: Windows · Linux · macOSClients: Claude Code · Claude Desktop

Reviewed 2026-08-11

Topics

ai-toolscode-analysiscsharpdeveloper-toolsdotnetmcpmodel-context-protocolrefactoringroslyn
Stars
24★
Forks
12
Language
C#
License
MIT
Created
2026-01-29
Last push
2026-03-10