Skip to content
MCP server

Debugai MCP

Gives coding agents a debugger: root cause, file and line, and ranked fixes for any error

Runs locally

Debugai MCP is an MCP server for developer tools. It runs locally on your machine and is started by your AI client.

Platforms
CLI, VS Code
Runs
Locally
Version
2.10.0
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a terminal

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.

Or share it with your project

Add to .mcp.json

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

Claude Code setup guide

Add to claude_desktop_config.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.

Claude Desktop setup guide

Add to ~/.cursor/mcp.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.

Cursor setup guide

Add to ~/.copilot/mcp-config.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.

VS Code setup guide

Add with the CLI

Run in a terminal

codex mcp add debugai-mcp --env DEBUGAI_API_KEY='<DEBUGAI_API_KEY>' -- npx -y @debugai/mcp

Or add to config.toml

Add to ~/.codex/config.toml

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

Codex setup guide

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

{
  "mcpServers": {
    "debugai-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@debugai/mcp"
      ],
      "env": {
        "DEBUGAI_API_KEY": "<DEBUGAI_API_KEY>"
      }
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.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

    Antigravity

    Add to ~/.gemini/config/mcp_config.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.

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.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.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.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.

    Cline setup guide

  • Zed

    Add to Zed settings.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.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

    {
      "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.

    Junie

    Add to ~/.junie/mcp/mcp.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.

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.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.

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

Configuration

  • DEBUGAI_API_KEYOptional. Overrides browser sign-in (npx -y @debugai/mcp setup).
  • DEBUGAI_API_BASEOptional. API base URL, for a staging or self-hosted setup. Defaults to DebugAI production.
  • DEBUGAI_TIMEOUT_MSOptional. Deadline in milliseconds for a debug_error call. Defaults to 150000.
  • DEBUGAI_CONFIG_PATHOptional. Alternate location for the config file that holds the stored key. Defaults to ~/.debugai/config.json.

About Debugai MCP

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.

Tools this server provides (3)

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

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_errorName suggests: reads
Checks project memory for earlier occurrences and fixes
report_outcome
Reports what happened after a fix

What it does

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

Pricing

Pricing unknown

Free account with 10 debugs a day; paid plans not described

Debugai MCP 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.

How AIPoweredBot checks servers