# Debugai MCP

> Debugai MCP is an MCP server for developer tools. Gives coding agents a debugger: root cause, file and line, and ranked fixes for any error. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Platforms:** CLI, VS Code
- **Repository:** https://github.com/1shizaan/debugai-mcp
- **MCP Registry name:** io.github.1shizaan/debugai-mcp
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-23

## About

Where a grep loop wanders, DebugAI's tools return a structured diagnosis. debug_error takes an error or stack trace and replies with the root cause, the file and line, and up to three ranked fixes as ready-to-apply edits. Each fix is labelled by whether a mechanical check passed or is only the model's estimate. lookup_error is cheaper: it asks project memory whether this error was seen before and which fix held, makes no model call and does not count against the debug limit. report_outcome records what happened for later lookups.

A setup command signs you in through the browser, writes config for each detected client (Claude Code, Claude Desktop, Cursor, Windsurf, Zed, Gemini CLI, Cline) after backing it up, and can add a rule and a Claude Code hook that run on failed commands. It never writes your key into client config. It runs over stdio from the npm package and needs Node 18.14.1 or later.

The README says a free account allows 10 debugs a day with no card.

## Features

- **Root-cause diagnosis:** Returns cause, file and line, and up to 3 fixes.
- **Checked fix labels:** Marks which fixes passed a mechanical check.
- **Project memory lookup:** Free lookup of earlier errors and what fixed them.
- **Outcome reporting:** Records whether a fix worked.
- **Automatic setup:** Configures detected clients with backups.
- **Claude Code hook:** Runs memory lookup on every failed command.

## Good for

- Diagnose a stack trace from a failing test
- Check whether this error was fixed before
- Apply a ranked fix as a ready edit
- Install the tools across several editors

## Install

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

```sh
claude mcp add debugai-mcp --env DEBUGAI_API_KEY='<DEBUGAI_API_KEY>' -- npx -y @debugai/mcp
```

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": {
    "debugai-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@debugai/mcp"
      ],
      "env": {
        "DEBUGAI_API_KEY": "<DEBUGAI_API_KEY>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "debugai-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@debugai/mcp"
      ],
      "env": {
        "DEBUGAI_API_KEY": "<DEBUGAI_API_KEY>"
      }
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "debugai-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@debugai/mcp"
      ],
      "env": {
        "DEBUGAI_API_KEY": "<DEBUGAI_API_KEY>"
      }
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "debugai-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@debugai/mcp"
      ],
      "env": {
        "DEBUGAI_API_KEY": "<DEBUGAI_API_KEY>"
      }
    }
  }
}
```

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 debugai-mcp --env DEBUGAI_API_KEY='<DEBUGAI_API_KEY>' -- npx -y @debugai/mcp
```

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

```toml
[mcp_servers.debugai-mcp]
command = "npx"
args = ["-y", "@debugai/mcp"]
env = { DEBUGAI_API_KEY = "<DEBUGAI_API_KEY>" }
```

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

```json
{
  "mcpServers": {
    "debugai-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@debugai/mcp"
      ],
      "env": {
        "DEBUGAI_API_KEY": "<DEBUGAI_API_KEY>"
      }
    }
  }
}
```

Or run: gemini mcp add -s user -e DEBUGAI_API_KEY='<DEBUGAI_API_KEY>' debugai-mcp npx -- -y @debugai/mcp

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

```json
{
  "mcpServers": {
    "debugai-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@debugai/mcp"
      ],
      "env": {
        "DEBUGAI_API_KEY": "<DEBUGAI_API_KEY>"
      }
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "debugai-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@debugai/mcp"
      ],
      "env": {
        "DEBUGAI_API_KEY": "<DEBUGAI_API_KEY>"
      }
    }
  }
}
```

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": {
    "debugai-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@debugai/mcp"
      ],
      "env": {
        "DEBUGAI_API_KEY": "<DEBUGAI_API_KEY>"
      }
    }
  }
}
```

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

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "debugai-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@debugai/mcp"
      ],
      "env": {
        "DEBUGAI_API_KEY": "<DEBUGAI_API_KEY>"
      }
    }
  }
}
```

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": {
    "debugai-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@debugai/mcp"
      ],
      "env": {
        "DEBUGAI_API_KEY": "<DEBUGAI_API_KEY>"
      }
    }
  }
}
```

The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

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

```json
{
  "mcpServers": {
    "debugai-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@debugai/mcp"
      ],
      "env": {
        "DEBUGAI_API_KEY": "<DEBUGAI_API_KEY>"
      }
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "debugai-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@debugai/mcp"
      ],
      "env": {
        "DEBUGAI_API_KEY": "<DEBUGAI_API_KEY>"
      }
    }
  }
}
```

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": {
    "debugai-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@debugai/mcp"
      ],
      "env": {
        "DEBUGAI_API_KEY": "<DEBUGAI_API_KEY>"
      }
    }
  }
}
```

## Tools

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

- `debug_error`: Analyzes an error and returns root cause and ranked fixes
- `lookup_error` (name suggests: reads): Checks project memory for earlier occurrences and fixes
- `report_outcome`: Reports what happened after a fix

## FAQ

### How do I install Debugai MCP?

Run npx -y @debugai/mcp setup inside your project.

### What does the free account include?

10 debugs a day, no card.

### Does lookup count against the limit?

No, it makes no model call.

### Does Debugai MCP store my key in client configs?

No, the key lives only in ~/.debugai/config.json.

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

Run this command in your terminal: claude mcp add debugai-mcp --env DEBUGAI_API_KEY='<DEBUGAI_API_KEY>' -- npx -y @debugai/mcp

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

The closest alternatives to Debugai 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/debugai-mcp
