# Codereach MCP

> Codereach MCP is an open-source MCP server for developer tools. Roslyn call graph for ASP.NET Core: which endpoints and jobs reach a method. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI
- **Repository:** https://github.com/musadgn/codereach-mcp
- **MCP Registry name:** io.github.musadgn/codereach-mcp
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-23

## About

Grep stops at the first interface in a layered application, while this server loads a C# solution with Roslyn and builds its call graph from the compiler's own semantic model. A call through an interface is followed to its implementation, and chains are traced up to controller actions, minimal API handlers and background services.

The tool most people will start with maps a git diff, whether uncommitted changes, a base ref or pasted diff text, to the endpoints and jobs it affects. Others list routes with verb, full template and authorization, including custom permission attributes, with an option to show only unprotected ones. The DI tool reports captive dependencies, services that are injected but not registered and double registrations. Tests are excluded because their project references a test framework, not because of a file name.

It runs on your machine with no account or hosted service, installs no hooks, and writes nothing into the solution; the index lives in a user cache directory. It needs the .NET 10 SDK and a solution that builds. Answers state whether the analysis was complete or partial and whether the index is stale. Every tool also works as a shell command, and a local browser page offers a command bar and health report.

## Features

- **Diff impact:** Maps a git diff to the endpoints and jobs it touches.
- **Entry point tracing:** Shows each endpoint, hosted service or other root that reaches a symbol with one call path.
- **Route and auth listing:** Lists endpoints with full route and authorization, including custom permission attributes.
- **DI diagnostics:** Flags captive dependencies, unregistered services and double registrations.
- **Interface-aware callers:** Resolves interface and virtual dispatch when listing callers and callees.
- **Honest completeness:** Answers say whether analysis was complete or partial and whether the index is stale.
- **Ready-made prompts:** Prompts cover diff review, change blast radius, auth audit and endpoint explanation.

## Good for

- Review which endpoints a pull request affects
- Audit endpoints that have no authorization
- Check the blast radius before changing a method
- Explain an endpoint from route to data access
- Find dependency injection mistakes in a solution

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add codereach-mcp -- dnx CodeReach.Mcp --yes
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "codereach-mcp": {
      "command": "dnx",
      "args": [
        "CodeReach.Mcp",
        "--yes"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "codereach-mcp": {
      "command": "dnx",
      "args": [
        "CodeReach.Mcp",
        "--yes"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

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

```json
{
  "mcpServers": {
    "codereach-mcp": {
      "command": "dnx",
      "args": [
        "CodeReach.Mcp",
        "--yes"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "codereach-mcp": {
      "type": "stdio",
      "command": "dnx",
      "args": [
        "CodeReach.Mcp",
        "--yes"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add codereach-mcp -- dnx CodeReach.Mcp --yes
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.codereach-mcp]
command = "dnx"
args = ["CodeReach.Mcp", "--yes"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "codereach-mcp": {
      "command": "dnx",
      "args": [
        "CodeReach.Mcp",
        "--yes"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user codereach-mcp dnx -- CodeReach.Mcp --yes

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "codereach-mcp": {
      "command": "dnx",
      "args": [
        "CodeReach.Mcp",
        "--yes"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "codereach-mcp": {
      "command": "dnx",
      "args": [
        "CodeReach.Mcp",
        "--yes"
      ]
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "codereach-mcp": {
      "command": "dnx",
      "args": [
        "CodeReach.Mcp",
        "--yes"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "codereach-mcp": {
      "command": "dnx",
      "args": [
        "CodeReach.Mcp",
        "--yes"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "codereach-mcp": {
      "command": "dnx",
      "args": [
        "CodeReach.Mcp",
        "--yes"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "codereach-mcp": {
      "command": "dnx",
      "args": [
        "CodeReach.Mcp",
        "--yes"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "codereach-mcp": {
      "command": "dnx",
      "args": [
        "CodeReach.Mcp",
        "--yes"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

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

```json
{
  "mcpServers": {
    "codereach-mcp": {
      "command": "dnx",
      "args": [
        "CodeReach.Mcp",
        "--yes"
      ]
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 3 of 13 tools read data; 10 names don't say. From the server's own tool labels and tool names; not verified by us.

- `trace_to_entrypoints`: Entry points that reach a symbol, with one call path each
- `impact`: Map a git diff to the endpoints and jobs it affects
- `routes`: Endpoints with verb, route, handler and authorization
- `callers`: Callers of a symbol with interface dispatch resolved
- `callees`: Callees of a symbol with interface dispatch resolved
- `find_usages` (name suggests: reads): Every reference bound to a symbol
- `find_symbol` (name suggests: reads): Declarations by name
- `entrypoints`: All roots a trace can stop at
- `architecture`: Projects, cross-project usage and most-called methods
- `type_hierarchy`: Inheritance, implementations and members of a type
- `di_registrations`: Dependency injection registrations and problems
- `status` (name suggests: reads): Index state and freshness
- `reindex`: Force an index refresh

## FAQ

### What does Codereach MCP need?

The .NET 10 SDK and a C# solution that builds.

### Does Codereach MCP send code anywhere?

No. It runs locally with no account or hosted service.

### Does Codereach MCP change my solution?

No. It writes nothing into the solution; the index sits in your user cache directory.

### Can I use Codereach MCP without an MCP client?

Yes. Each tool is also a shell command, and a local page offers a command bar.

### Is Codereach MCP free?

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

### How do I add Codereach MCP to Claude Code?

Run this command in your terminal: claude mcp add codereach-mcp -- dnx CodeReach.Mcp --yes

### What are the best alternatives to Codereach MCP?

The closest alternatives to Codereach MCP are REA, Context7, Chrome DevTools MCP, Codebase Memory and GitHub.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Context7](https://ai-powered.com/mcp/context7): Context7 is a freemium MCP server for developer tools.
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-2): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [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): 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.
- [awesome-mcp-servers](https://ai-powered.com/mcp/awesome-mcp-servers-2): awesome-mcp-servers 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.

---
Source: https://ai-powered.com/mcp/codereach-mcp
