# Resharper Cli MCP

> Resharper Cli MCP is an open-source MCP server for developer tools. Run ReSharper inspections and code cleanup on .NET solutions from a coding agent. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Windows, macOS, Linux, vscode, jetbrains
- **Repository:** https://github.com/andypgray/resharper-cli-mcp
- **MCP Registry name:** io.github.andypgray/resharper-cli-mcp
- **Categories:** developer tools
- **Listing updated:** 2026-11-15

## About

This unofficial server wraps JetBrains' free ReSharper command-line tools (`jb inspectcode` and `jb cleanupcode`) so an agent gets usable results instead of a huge report file. It is not affiliated with or endorsed by JetBrains.

Issues return as markdown grouped by file, re-rendered at lower detail until they fit the client's output budget. Cleanup uses the profile the solution names in its settings, and reports which files changed. The cache is warmed on connect and runs are queued so two analyses do not build cold caches at once; each run is capped at 10 minutes by default.

It needs the .NET 10 SDK or later plus the ReSharper command-line tools, and works with Claude Code, Visual Studio, VS Code, Cursor, Rider, Junie and Cline.

## Features

- **Solution inspection:** Returns issues grouped by file with severity filtering.
- **Profile-aware cleanup:** Applies the solution's own cleanup profile to named files.
- **Cache reset:** Drops the solution's cache to start cold.
- **Output budgeting:** Reduces detail until the response fits the client.
- **Queued runs:** Serialises runs per solution with progress updates.

## Good for

- Have an agent fix redundant usings across a .NET solution
- Run a style cleanup on files an agent just edited
- Survey warnings in a repository before review
- Seed a fresh worktree from a warm cache

## Install

### Claude Code (Terminal)

```sh
claude mcp add resharper-cli-mcp -- dnx Zphil.ReSharperCli --yes
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "resharper-cli-mcp": {
      "command": "dnx",
      "args": [
        "Zphil.ReSharperCli",
        "--yes"
      ]
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "resharper-cli-mcp": {
      "command": "dnx",
      "args": [
        "Zphil.ReSharperCli",
        "--yes"
      ]
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "resharper-cli-mcp": {
      "type": "stdio",
      "command": "dnx",
      "args": [
        "Zphil.ReSharperCli",
        "--yes"
      ]
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "resharper-cli-mcp": {
      "command": "dnx",
      "args": [
        "Zphil.ReSharperCli",
        "--yes"
      ]
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "resharper-cli-mcp": {
      "command": "dnx",
      "args": [
        "Zphil.ReSharperCli",
        "--yes"
      ]
    }
  }
}
```

## Tools

- `resharper_inspect`: Runs jb inspectcode and returns issues grouped by file
- `resharper_cleanup`: Runs jb cleanupcode on given files
- `resharper_reset_cache`: Drops the solution's ReSharper cache

## FAQ

### Does it need a ReSharper licence?

No. The README says the command-line tools are free and need no ReSharper licence.

### What does it require?

The .NET 10 SDK or later and JetBrains' ReSharper CLI global tools.

### Does cleanup change behaviour?

The README says cleanup changes style, such as formatting and using directives, not behaviour.

### Is it from JetBrains?

No. It is unofficial.

### Is Resharper Cli MCP free?

Yes. Resharper Cli MCP is open source, so you can use and self-host it for free.

### How do I add Resharper Cli MCP to Claude Code?

Run this command in your terminal: claude mcp add resharper-cli-mcp -- dnx Zphil.ReSharperCli --yes

### What are the best alternatives to Resharper Cli MCP?

The closest alternatives to Resharper Cli MCP are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github-2): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [Ouroboros](https://ai-powered.com/mcp/ouroboros): Ouroboros is an open-source MCP server for developer tools.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [Concord MCP](https://ai-powered.com/mcp/concord-mcp): Concord MCP is a freemium MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/resharper-cli-mcp
