cd /news/developer-tools/how-to-let-ai-agents-manage-your-dat… · home topics developer-tools article
[ARTICLE · art-114931] src=dev.to ↗ pub= topic=developer-tools verified=true sentiment=↑ positive

How to let AI agents manage your database schema (with MCP)

A developer has built ERD Online, an open-source database design tool that integrates MCP to let AI agents read and suggest changes to database schemas. The tool combines Git-like versioning with collaboration features, allowing agents to create versions that humans review and approve. The developer demonstrates how to configure Cursor, Claude, or Cline to interact with schemas via MCP, emphasizing control and versioning.

read2 min views1 publishedAug 29, 2026

AI agents are becoming first-class citizens in developer workflows. They can read code, run tests, and deploy apps. But one thing they struggle with is understanding database schemas.

Database design tools haven't changed in 20 years. You either use a heavyweight desktop app (Navicat, PDManer) or a pretty but closed web app (dbdiagram). Neither supports versioning, real-time collaboration, or AI agent integration.

I built ERD Online to solve this. It's an open-source database design tool that combines Git-like versioning with Figma-like collaboration, plus MCP integration for AI agents.

In this article, I'll show you how to let Cursor, Claude, or Cline read and write your database schema through MCP, while you keep full control.

Database schema changes are hard to track:

And now with AI agents, there's a new problem: how do you let an AI agent suggest schema changes without giving it a black box that generates random ER diagrams?

The wrong approach: ask AI to "generate an ER diagram for an e-commerce app." You get a diagram, but it has no connection to your actual project, no versioning, and no approval flow.

The right approach: let the AI agent read your existing schema, suggest changes, and submit them as a version that you review and approve.

That's what ERD Online + MCP does.

MCP (Model Context Protocol) is a protocol for AI agents to interact with external tools. Think of it as a USB-C port for AI applications. It standardizes how agents discover and call tools.

MCP has three main primitives:

list_projects

or create_version

)project.json

)ERD Online exposes MCP tools that let AI agents:

list_projects

: List all your ERD projectsget_project

: Get a project's projectJSONcreate_version

: Suggest a new version of your schemaThe key boundary: AI agents read/write the same projectJSON the human designer uses. They don't generate ER diagrams from a sentence. You stay in control.

Step 1: Mint a PAT in ERD Online

Sign in to ERD Online and go to Account Settings → Personal Access Tokens. Create a new token (read-only is enough to start).

Step 2: Add MCP config to Cursor

Open ~/.cursor/mcp.json

and add:

1. AI agents become useful, not dangerous

By giving AI agents structured access to your schema, they can make useful suggestions. But because they go through create_version

and you review the diff, they can't silently break your database.

2. Versioning becomes the source of truth

Every AI-suggested change creates a version. You can see exactly what changed, when, and why. This is essential for database schema management.

3. Collaboration improves

Multiple people (and agents) can work on the same schema. Changes are merged, versioned, and reviewed.

4. No vendor lock-in

projectJSON is an open format. You can export your schema, self-host ERD Online, or build your own tools on top of it.

ERD Online

What would you build?

I'd love to hear what AI + database schema workflows you'd want. Drop a comment or open an issue on GitHub.

── more in #developer-tools 4 stories · sorted by recency
── more on @erd online 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/how-to-let-ai-agents…] indexed:0 read:2min 2026-08-29 ·