Developers
Your cloud documents are open to an AI (through MCP) and to your scripts (through the REST API). Both act on your behalf, with the same rights as you.
Your cloud documents are open to an AI (through MCP) and to your scripts (through the REST API). Both act on your behalf, with the same rights as you.
macgram's MCP server lets an AI (Claude, ChatGPT, Cursor…) read and edit your diagrams: entities, associations, user stories, use cases, relational schema and SQL.
Server address
https://api.macgram.app/mcp
Most clients ask you to sign in to your macgram account the first time: nothing else to do. Your consent is always asked.
claude mcp add --transport http macgram https://api.macgram.app/mcp
A client that cannot sign in usually takes a header: create a token below and pass it like this.
Authorization: Bearer mg_…
The desktop app also has its own MCP server, on your computer only (127.0.0.1), for the open document: turn it on in its settings.
A REST API: documents, versions, diagram tools, friends, profile. Send your token in the Authorization header.
curl -H "Authorization: Bearer mg_…" https://api.macgram.app/documents
API documentationOpenAPI description
A token acts on your behalf: keep it secret, like a password.