Skip to content
MCP server

Resharper Cli MCP

Run ReSharper inspections and code cleanup on .NET solutions from a coding agent

Runs locallyStatus and history
Install
Pricing
Open source
Platforms
CLI, Windows, macOS
Runs
Locally
Version
1.8.1
Listing updated
2 days ago

About Resharper Cli MCP

Resharper Cli MCP is an open-source MCP server for developer tools. It runs locally on your machine and is started by your AI client.

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.

Install

Run in a terminal

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

Add to claude_desktop_config.json

{
  "mcpServers": {
    "resharper-cli-mcp": {
      "command": "dnx",
      "args": [
        "Zphil.ReSharperCli",
        "--yes"
      ]
    }
  }
}
Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "resharper-cli-mcp": {
      "command": "dnx",
      "args": [
        "Zphil.ReSharperCli",
        "--yes"
      ]
    }
  }
}
Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to .vscode/mcp.json

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

Add to ~/.codeium/windsurf/mcp_config.json

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

Add to your client's MCP settings (most use this shape)

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

Configuration

  • JB_SOLUTION_PATHSolution to analyse when the working directory holds zero or several. The solutionPath tool argument overrides it for one call.
  • JB_SETTINGS_PATHExplicit .DotSettings file for jb, mounted as a Custom layer above the solution's and every project's own settings.
  • JB_CACHE_HOMEReSharper cache directory. Defaults to ~/.jb-cache.
  • JB_EXTENSIONSSemicolon-separated ReSharper plugin IDs to load.
  • JB_EXTENSION_SOURCECustom NuGet source for those ReSharper plugins.
  • RESHARPER_MCP_TIMEOUT_SECSCap in seconds on one jb run, and on the wait for one already in flight. Defaults to 600, clamped to 60-86,400.
  • RESHARPER_MCP_PREWARMSet to off to stop the background cache pre-warm that runs when a client connects.
  • RESHARPER_MCP_CLEANUP_FILTERSet to off to run every cleanup against the whole solution rather than a filter of the files' projects.
  • RESHARPER_MCP_LOG_LEVELMinimum level for the rolling file log. Defaults to Warning.
  • MAX_MCP_OUTPUT_TOKENSOutput budget the response is rendered to fit. Set by the MCP client rather than by hand; 25,000 characters when unset.

Tools this server provides (3)

Taken from the project documentation; the running server may differ.

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

What it does

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

Pricing

Open source

Free to install from NuGet

Resharper Cli MCP 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 to Resharper Cli MCP

  1. REA

    MCP server

    CLI and MCP server that lets coding agents reverse engineer apps and binaries

    Runs locally
    • Open source
    • 464K GitHub stars
    • Developer tools
  2. Codebase Memory

    MCP server

    Local MCP server that builds a code knowledge graph for AI coding agents

    Runs locally
    • Open source
    • 48.7K GitHub stars
    • Knowledge and memory
  3. GitHub

    MCP server

    Official MCP server connecting AI assistants to GitHub repos, issues and workflows

    Not checked yet
    • Remote
    • Open source
    • 34.5K GitHub stars
    • Developer tools
  4. MCP toolkit giving coding agents symbol-level code retrieval and editing

    Runs locally
    • Open source
    • 31.5K GitHub stars
    • Developer tools
  5. XERJ

    MCP server

    Local search engine for AI agents with cited answers over your code and docs

    Runs locally
    • Open source
    • 19.2K GitHub stars
    • Knowledge and memory
  6. Ouroboros

    MCP server

    Spec-first layer that pins requirements and verifies results of AI coding agent work

    Runs locally
    • Open source
    • 6.4K GitHub stars
    • Developer tools