# Dev error explainers

> Dev error explainers is an open-source MCP server for developer tools. Offline, deterministic cause and fix for Node, npm, Next.js, CORS and Postgres URL errors. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, API, self-hosted
- **Website:** https://www.iloveblogs.blog/open-source
- **Repository:** https://github.com/mahdibrr/dev-error-explainers
- **MCP Registry name:** io.github.mahdibrr/dev-error-explainers
- **Categories:** developer tools
- **Listing updated:** 2026-11-16

## About

This server gives an assistant a lookup for developer errors instead of letting it guess. It exposes a single tool, explain_error, which runs 121 rules across seven pure JavaScript modules with no runtime dependencies. There is no LLM, API or network call, so the same input gives the same answer, and an unrecognised error is reported as not recognised rather than matched loosely.

Covered areas include Next.js build errors and chunk load failures, ESM versus CommonJS errors such as ERR_REQUIRE_ESM, npm ERESOLVE peer conflicts, CORS errors and Postgres connection URLs. Secrets are masked before analysis, except the DATABASE_URL doctor which reads the raw URL and never prints its password. A public set of 74 cases is run on every change.

The same logic is available as a terminal pipe, a GitHub Action that writes the fix to the job summary, and an npm library for Node 20 or later. It is MIT-licensed.

## Features

- **Single tool:** explain_error checks documented causes before guessing.
- **Offline rules:** 121 rules run locally with no network.
- **Honest misses:** Unrecognised errors are reported as such.
- **Secret masking:** Looks-like-secret text is masked before analysis.
- **CI action:** Writes the cause and fix into a GitHub job summary.
- **Terminal pipe:** Pipe a failing command into the CLI.

## Good for

- Explain a failed Next.js build
- Fix an ESM or CommonJS import error
- Resolve npm peer-dependency conflicts
- Diagnose a CORS or Postgres URL problem

## Install

### Claude Code (Terminal)

```sh
claude mcp add dev-error-explainers -- npx -y dev-error-explainers
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "dev-error-explainers": {
      "command": "npx",
      "args": [
        "-y",
        "dev-error-explainers"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "dev-error-explainers": {
      "command": "npx",
      "args": [
        "-y",
        "dev-error-explainers"
      ]
    }
  }
}
```

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

```json
{
  "servers": {
    "dev-error-explainers": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "dev-error-explainers"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "dev-error-explainers": {
      "command": "npx",
      "args": [
        "-y",
        "dev-error-explainers"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "dev-error-explainers": {
      "command": "npx",
      "args": [
        "-y",
        "dev-error-explainers"
      ]
    }
  }
}
```

## Tools

- `explain_error`: Explain the cause and fix of a developer error.

## FAQ

### Does it use an LLM?

No, it is deterministic and offline.

### What if it doesn't recognise an error?

It says so rather than guessing.

### Which Node version does the library need?

Node.js 20 or later.

### What licence?

MIT.

### Is Dev error explainers free?

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

### How do I add Dev error explainers to Claude Code?

Run this command in your terminal: claude mcp add dev-error-explainers -- npx -y dev-error-explainers

### What are the best alternatives to Dev error explainers?

The closest alternatives to Dev error explainers 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/dev-error-explainers
