1. Create a personal token
After signing in, use the dashboard MCP token panel to choose workspace scope and an expiration period.
Authorization: Bearer erdforge_mcp_...
MCP connection guide
ErdForge exposes an MCP endpoint for AI agents that need workspace context, ERD JSON, and safe write access. Create a personal token from the dashboard, register it in your MCP client, and your agent can inspect or update diagrams.
/mcpAfter signing in, use the dashboard MCP token panel to choose workspace scope and an expiration period.
Authorization: Bearer erdforge_mcp_...
Add the endpoint and Bearer token to your MCP client configuration.
{
"url": "<your-domain>/mcp",
"transport": "streamable-http",
"headers": {
"Accept": "application/json, text/event-stream",
"Authorization": "Bearer erdforge_mcp_...",
"MCP-Protocol-Version": "2025-11-25"
}
}For the local production container, use http://localhost:4173/mcp.
/mcp.workspaceName; scoped tokens are limited to selected workspaces.erdforge_list_workspacesList accessible workspaces and the current selection.
erdforge_create_workspaceCreate a new ERD workspace and prepare it for saving.
erdforge_list_diagramsList ERDs by workspace with table and relationship counts.
erdforge_get_diagramRead an existing ERD JSON document as editing context.
erdforge_upsert_diagramCreate or update an ERD with tables, columns, and relationships.
erdforge_delete_diagramDelete a workspace ERD and notify open web clients.
ErdForge can normalize simple table specifications into canvas-ready IDs, coordinates, and column IDs.
{
"name": "Order Core",
"dialect": "PostgreSQL",
"tables": [
{ "name": "users", "columns": [{ "name": "id", "type": "uuid", "primaryKey": true }] },
{ "name": "orders", "columns": [{ "name": "user_id", "type": "uuid", "foreignKey": true }] }
],
"relations": [
{
"sourceTable": "orders",
"sourceColumn": "user_id",
"targetTable": "users",
"targetColumn": "id"
}
]
}