# datadef.io

> datadef.io is a freemium MCP server for developer tools. AI generator for data architecture, ER and cloud diagrams, usable from MCP clients. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Pricing:** Freemium
- **Starting price:** $12 a month
- **Platforms:** Web, API
- **Website:** https://datadef.io
- **MCP Registry name:** io.datadef/mcp
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-21

## About

Datadef turns a plain-English description, a SQL or Prisma schema, or a Terraform repository into an editable diagram of tables, pipelines, zones and column-level lineage. Schemas are parsed directly rather than redrawn by a model, so keys and foreign keys come out as written.

Beyond the web canvas, it runs as an MCP server, letting Claude Code, Cursor, Claude or ChatGPT create, edit and export diagrams while reading the codebase for context. Pro and Team plans add repository sync, live embeds that refresh from the canvas, and shared workspaces.

It suits data engineers, analytics teams and consultants who need diagrams that stay aligned with the code and can be traced from source tables to KPIs.

## Features

- **Schema-accurate ER diagrams:** Parses CREATE TABLE, Prisma and warehouse DDL so tables, columns, types and keys are drawn as defined.
- **Column-level lineage:** Traces metrics and tables upstream to sources and downstream to consumers, with impact analysis.
- **Terraform architecture mapping:** Reads HCL stacks and modules and draws them as zones and resources, including registry module sources and versions.
- **MCP server access:** Lets MCP-compatible AI clients create, edit and export diagrams using a Datadef API key.
- **Editable canvas:** Diagrams generated by AI can be rearranged, restyled and refined by hand, then shared or exported as PNG, JPEG, PDF or JSON.
- **Live embeds and sharing:** Public links and embeddable diagrams that update from the canvas, with live multi-user editing in shared workspaces.

## Good for

- Documenting a warehouse or lakehouse pipeline from dbt, Fivetran, Snowflake or similar tools
- Turning a Prisma or SQL schema into an ER diagram for review
- Visualising Terraform modules and resources for infrastructure reviews
- Tracing where a KPI's source data comes from before changing upstream models
- Generating architecture diagrams from inside Claude Code or Cursor while coding

## Install

### Claude Code (Terminal)

```sh
claude mcp add --transport http mcp https://datadef.io/mcp
```

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

```sh
https://datadef.io/mcp
```

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

```json
{
  "mcpServers": {
    "mcp": {
      "url": "https://datadef.io/mcp"
    }
  }
}
```

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

```json
{
  "servers": {
    "mcp": {
      "type": "http",
      "url": "https://datadef.io/mcp"
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "mcp": {
      "serverUrl": "https://datadef.io/mcp"
    }
  }
}
```

### Grok Bot (Grok Bot desktop app → Connect apps → Add a custom connector)

```sh
https://datadef.io/mcp
```

Enter a Name (for example "datadef.io"), choose Type: Remote HTTPS, paste this as the Server URL and choose Add plugin.

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

```json
{
  "mcpServers": {
    "mcp": {
      "type": "http",
      "url": "https://datadef.io/mcp"
    }
  }
}
```

## FAQ

### Is there a free option?

The scratch canvas works without an account and includes one AI diagram and two AI edits per day, manual editing, and PNG, JPEG and JSON export. Pasting SQL or Prisma counts as the day's diagram.

### How much does Pro cost?

Pro is $12 a month or $96 a year after a 7-day free trial that requires a card. Students with a school email get half price. Team is $99 a month for up to 5 seats.

### Does Datadef connect to my databases?

No. You describe the architecture or paste schema text, and Datadef does not access your data sources.

### Does the MCP server need a paid plan?

Connecting and listing its tools is open. Using the tools to create, edit or export diagrams requires Pro or Team, including the trial.

### How do I add datadef.io to Claude Code?

Run this command in your terminal: claude mcp add --transport http mcp https://datadef.io/mcp

### What are the best alternatives to datadef.io?

The closest alternatives to datadef.io are D2 MCP Server, AtomicViz Diagrams, Drawx MCP Server, Diagrams MCP and Arkanva.

## Where this comes from

- Description: written from the project's website and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [D2 MCP Server](https://ai-powered.com/mcp/d2-mcp-server): D2 MCP Server is an open-source MCP server for developer tools.
- [AtomicViz Diagrams](https://ai-powered.com/mcp/atomicviz-diagrams): AtomicViz Diagrams is a freemium MCP server for developer tools.
- [Drawx MCP Server](https://ai-powered.com/mcp/drawx-mcp-server): Drawx MCP Server is a paid MCP server for developer tools.
- [Diagrams MCP](https://ai-powered.com/mcp/diagrams-mcp): Diagrams MCP is an open-source MCP server for developer tools.
- [Arkanva](https://ai-powered.com/mcp/arkanva): Arkanva is an MCP server for developer tools.
- [Diagrams MCP Server](https://ai-powered.com/mcp/diagrams-mcp-server): Diagrams MCP Server is an open-source MCP server for developer tools.
- [AI Diagram Maker](https://ai-powered.com/mcp/ai-diagram-maker): AI Diagram Maker is an MCP server for developer tools.
- [CodePic](https://ai-powered.com/mcp/codepic): CodePic is a freemium MCP server for design and media.

---
Source: https://ai-powered.com/mcp/datadef-io
