# ErdDocs

> ErdDocs is a freemium MCP server for databases. Draw an ER diagram from SQL, Prisma or ORM models with one tool call. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Pricing:** Freemium
- **Platforms:** Web, API
- **Website:** https://erddocs.com/docs/mcp/
- **MCP Registry name:** com.erddocs/erd-diagram
- **Categories:** databases, developer tools
- **Listing updated:** 2026-11-15

## About

One tool, open_er_diagram, receives schema text and returns a link to an interactive diagram plus a printable data dictionary on erddocs.com. The server compresses the schema into the link itself and does not parse, store or log it; only the call, the format and a rough table count are counted. The diagram is parsed in the viewer's browser.

It reads SQL dumps, Prisma, DBML, Mermaid, PlantUML, Django, SQLAlchemy, Sequelize, TypeORM and Laravel. Relations without a declared foreign key are inferred from column names and drawn dashed. Links hold a few dozen tables, with about 32,000 characters as the safe limit; for larger schemas the tool says so and points to the website.

The free tier shows schemas up to 25 tables in full. A one-time $9 licence removes the limit and unlocks the full data dictionary.

## Features

- **One-call diagrams:** Passes the schema to one tool and gets back a link.
- **Many formats:** Reads SQL, Prisma, DBML, ORMs.
- **Inferred relations:** Draws column-name matches dashed.
- **Data dictionary:** Lists every table, column, type and default.
- **No storage:** Schema travels inside the link.

## Good for

- Show a project's database schema
- Document a legacy database
- Review Prisma models
- Generate a dictionary for a schema

## Install

### Claude Code (Terminal)

```sh
claude mcp add --transport http erd-diagram https://erddocs.com/mcp
```

### Claude Desktop (Settings → Connectors → Add custom connector)

```sh
https://erddocs.com/mcp
```

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

```json
{
  "mcpServers": {
    "erd-diagram": {
      "url": "https://erddocs.com/mcp"
    }
  }
}
```

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

```json
{
  "servers": {
    "erd-diagram": {
      "type": "http",
      "url": "https://erddocs.com/mcp"
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "erd-diagram": {
      "serverUrl": "https://erddocs.com/mcp"
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "erd-diagram": {
      "type": "http",
      "url": "https://erddocs.com/mcp"
    }
  }
}
```

## Tools

- `open_er_diagram`: Takes schema text and returns a link to an interactive ER diagram and data dictionary.

## FAQ

### Is an account needed?

No account or key.

### What are the free limits?

25 tables in full.

### How much is the licence?

$9 once, with a 14-day refund.

### Is ErdDocs free?

ErdDocs has a free plan, with paid plans for more usage or features.

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

Run this command in your terminal: claude mcp add --transport http erd-diagram https://erddocs.com/mcp

### What are the best alternatives to ErdDocs?

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