# Predictive Debugger

> Predictive Debugger is an open-source MCP server for developer tools. Predicts where JavaScript and TypeScript code will fail at runtime, for coding agents. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, self-hosted
- **Website:** https://predictivedebugger.dev
- **Repository:** https://github.com/speedosdk/predictive-debugger
- **MCP Registry name:** io.github.SpeedosDK/predictive-debugger
- **Categories:** developer tools
- **Listing updated:** 2026-11-16

## About

Local analysis narrows the search before any model is called. One tool ranks files by risk density, another reports complexity and async-boundary signals, one returns TypeScript compiler diagnostics, one traces imports, reverse imports and connected tests with source-line evidence, and one flags unusual log entries. Only the failure prediction tool calls a model, and it returns a verdict with a line number, a reason and a confidence score. The site's example is a race in which two concurrent stock reservations read the same value and overwrite each other.

Predictions go through the Claude Code, Codex or GitHub Copilot CLI already installed and signed in, so no separate API key is needed and that provider's terms and usage allowance apply. It needs Node.js 22 or later, and Python 3 is optional for log analysis.

The site reports a benchmark of 49 files with three coding agents in which the tool used 32 to 69 percent fewer tokens than direct reading, with similar bug counts; the authors say this describes that benchmark only and that risk density is not a probability of a bug. A clean verdict does not prove a feature correct.

## Features

- **Risk ranking:** Scans a project and ranks source files by risk density with no model call.
- **File signals:** Shows complexity, async boundaries and contributing risk signals.
- **Type diagnostics:** Returns TypeScript compiler errors for chosen files.
- **Dependency mapping:** Traces imports, reverse imports and connected tests.
- **Log anomalies:** Ranks unusual log entries by severity and wording.
- **Model verdicts:** Gives a line number, reason and confidence for likely failures.
- **Existing CLI use:** Calls the agent CLI you already have installed.

## Good for

- Find the riskiest files in a codebase before reviewing
- Check a service for concurrency bugs before shipping
- See which tests connect to a changed file
- Look for unusual entries in an application log
- Reduce tokens an agent spends reading code

## Install

### Claude Code (Terminal)

```sh
claude mcp add predictive-debugger -- npx -y predictive-debugger
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "predictive-debugger": {
      "command": "npx",
      "args": [
        "-y",
        "predictive-debugger"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "predictive-debugger": {
      "command": "npx",
      "args": [
        "-y",
        "predictive-debugger"
      ]
    }
  }
}
```

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

```json
{
  "servers": {
    "predictive-debugger": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "predictive-debugger"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "predictive-debugger": {
      "command": "npx",
      "args": [
        "-y",
        "predictive-debugger"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "predictive-debugger": {
      "command": "npx",
      "args": [
        "-y",
        "predictive-debugger"
      ]
    }
  }
}
```

## Tools

- `scan_project`: Ranks source files by risk density
- `analyze_file`: Returns complexity metrics and risk signals
- `check_types`: Returns TypeScript compiler diagnostics
- `map_dependencies`: Finds imports, reverse imports and connected tests
- `analyze_logs`: Ranks log anomalies
- `predict_failures`: Gets an independent model verdict with line, reason and confidence
- `list_providers`: Checks which agent CLIs are installed

## FAQ

### Do I need an API key?

No. Prediction calls use the Claude Code, Codex or Copilot CLI you have installed and signed in to.

### Which tools call a model?

Only the failure prediction tool; the other six run locally.

### What does it require?

Node.js 22 or later, and Python 3 only for log analysis.

### Is the benchmark general?

The authors say it describes their benchmark, not accuracy on every project.

### Is Predictive Debugger free?

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

### How do I add Predictive Debugger to Claude Code?

Run this command in your terminal: claude mcp add predictive-debugger -- npx -y predictive-debugger

### What are the best alternatives to Predictive Debugger?

The closest alternatives to Predictive Debugger 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/predictive-debugger
