1. Create a personal token
After signing in, use the dashboard MCP token panel to choose workspace scope and an expiration period for a personal token.
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.
Sign up to create an ERD workspace for MCP, then issue a personal token from the dashboard and connect your AI agent.
/mcpAfter signing in, use the dashboard MCP token panel to choose workspace scope and an expiration period for a personal token.
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 public service, use your current ErdForge domain with /mcp appended.
/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. Pass workspaceName to create a new workspace and save the first ERD in one request.
erdforge_delete_diagramDelete a workspace ERD and notify open web clients.
erdforge://workspacesRead the list of workspaces available to the current token.
erdforge://workspace/{workspaceId}/diagramsRead diagram summaries for one workspace.
erdforge://workspace/{workspaceId}/diagram/{diagramId}Read the full JSON context for one ERD.
erdforge_create_erd_from_requirementsStart an ERD draft from product requirements or table notes.
erdforge_review_diagramReview an existing ERD for keys, relationships, missing tables, and normalization risks.
erdforge_extend_diagramExtend an existing ERD with concrete changes for a new feature.
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"
}
]
}With a full-scope token, pass workspaceName to erdforge_upsert_diagram to create a workspace and save the first ERD in one call.
{
"name": "erdforge_upsert_diagram",
"arguments": {
"workspaceName": "Billing DB structure",
"diagramId": "billing_schema",
"name": "Billing PostgreSQL Schema",
"dialect": "PostgreSQL",
"tables": [
{ "name": "accounts", "columns": [{ "name": "id", "type": "uuid", "primaryKey": true }] }
],
"relations": []
}
}After registering the client, call these JSON-RPC methods with the same endpoint and headers. Check token scope and available workspaces before running write tools.
1. initialize 2. tools/list 3. resources/templates/list 4. prompts/list 5. resources/list POST <your-domain>/mcp Accept: application/json, text/event-stream Authorization: Bearer erdforge_mcp_... MCP-Protocol-Version: 2025-11-25
If a company security policy or harness setting blocks MCP registration in Claude Code, use a human-reviewed JSON import flow that stays inside the approved policy.