# opendrs

> opendrs is an open-source MCP server for developer tools. Open-source MCP server scoring pull-request risk from blast radius and git history. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Linux, macOS, Windows
- **Website:** https://error-path.github.io/opendrs/
- **Repository:** https://github.com/error-path/opendrs
- **MCP Registry name:** io.github.error-path/opendrs
- **Categories:** developer tools, security
- **Listing updated:** 2026-11-14

## About

opendrs makes one claim: most pull requests are low risk, and a few cause most incidents. It turns that into a 0 to 1 score. Below 0.3 is green and 0.8 or more is red by default, and every signal comes with evidence: how many files transitively import the changed code, past fixes and reverts in the touched files, the author's history with them, change size and spread, missing test changes and paths you mark critical.

As a GitHub Action it only approves a PR that clears a chain of checks: no blocked paths such as workflows, migrations or CODEOWNERS, no safety rule firing, a green score outside any freeze window, a non-draft PR, a passed AI-review check, and a random sample of eligible PRs, 10% by default, still goes to a human. Forks and changes to its own config are never auto-approved.

`opendrs backtest` replays history and `opendrs calibrate` fits the model to a repository. The MCP server offers four tools for agents.

## Features

- **0-1 risk score:** Scores each PR from blast radius, history, author experience and tests.
- **Gated auto-approval:** Approval passes through blocked paths, safety rules, tier, draft and AI-review checks.
- **Human sampling:** A configurable share of eligible PRs still goes to a person.
- **Backtest and calibrate:** Replay past commits and fit the model to your repo.
- **Several entry points:** GitHub Action, CLI, Claude Code plugin, agent skill and MCP server.

## Good for

- Auto-approve a typo fix after AI review
- Route a billing migration to a human
- Ask which files in a repo are hotspots
- Pick reviewers for a risky change

## Install

### Claude Code (Terminal)

```sh
claude mcp add opendrs -- npx -y @error-path/opendrs
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "opendrs": {
      "command": "npx",
      "args": [
        "-y",
        "@error-path/opendrs"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "opendrs": {
      "command": "npx",
      "args": [
        "-y",
        "@error-path/opendrs"
      ]
    }
  }
}
```

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

```json
{
  "servers": {
    "opendrs": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@error-path/opendrs"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "opendrs": {
      "command": "npx",
      "args": [
        "-y",
        "@error-path/opendrs"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "opendrs": {
      "command": "npx",
      "args": [
        "-y",
        "@error-path/opendrs"
      ]
    }
  }
}
```

## Tools

- `score_diff`: Scores the risk of a diff
- `explain_file_risk`: Explains why a file is risky
- `list_hotspots`: Lists risky files
- `suggest_reviewers`: Suggests reviewers

## FAQ

### Can a PR turn the gate off?

No, config and model are read from the base branch and changes to CI or config are never approved.

### What counts as unknown?

A signal that cannot be computed blocks approval if it could have changed the tier.

### Are fork PRs approved?

Never.

### How do I run it?

npx @error-path/opendrs score, or use the GitHub Action.

### Is opendrs free?

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

### How do I add opendrs to Claude Code?

Run this command in your terminal: claude mcp add opendrs -- npx -y @error-path/opendrs

### What are the best alternatives to opendrs?

The closest alternatives to opendrs 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/opendrs
