01
Find the right context
Start with the workspace visible to the signed-in account, then narrow to folders and projects.
- list_workspaces
- list_folders
- list_projects
ON-UML / MODEL CONTEXT PROTOCOL
The OnUML MCP server connects coding agents like Codex, Claude Code, Cursor, and OpenClaw to your diagram workspace. Discover the workspaces you can access, read diagram source, and make deliberate updates without leaving the conversation.
WHAT YOU GET
01
Start with the workspace visible to the signed-in account, then narrow to folders and projects.
02
Read the project structure and current diagram source before making a change.
03
Create projects and diagrams without duplicating retries or overwriting newer edits.
THE SHORT ANSWER
It is a remote MCP server that lets an AI coding client work with the diagrams and projects available to your OnUML account. Access always follows your current workspace permissions.
Use it when a diagram belongs in the same workflow as the code: explore a project, inspect the current source, update a Mermaid or PlantUML diagram, or create an OnUML mind map. You can still review the result in the OnUML diagram editor.
CONNECT IN MINUTES
STEP 01
Open OnUML API key settings while signed in. Copy the secret immediately; OnUML never shows it again.
STEP 02
Replace YOUR_ONUML_TOKEN_HERE in the command or personal configuration file. Keep that file out of Git.
STEP 03
Use the configuration for your client. The MCP endpoint is https://onuml.com/mcp.
ONE-COMMAND SETUP
codex mcp add onuml --url https://onuml.com/mcp && printf '\n[mcp_servers.onuml.http_headers]\nAuthorization = "Bearer YOUR_ONUML_TOKEN_HERE"\n' >> "$HOME/.codex/config.toml"Replace YOUR_ONUML_TOKEN_HERE with your API key before running.
[mcp_servers.onuml]
url = "https://onuml.com/mcp"
http_headers = { Authorization = "Bearer YOUR_ONUML_TOKEN_HERE" }Add the token directly to your personal Codex configuration. The desktop app, CLI, and IDE extension share this file on the same host.
CONFIG LOCATION
~/.codex/config.tomlWRITE WITH CONTEXT
The agent reads the latest diagram before making a change. If someone else has edited it first, OnUML stops the update instead of overwriting their work.
The agent only sees workspaces and projects your OnUML account can currently access.
If a network request is retried, OnUML prevents the same project or diagram from being created twice.
If someone changes the diagram first, the agent must reload it instead of overwriting the newer version.
GOOD TO KNOW
Agents can read and update Mermaid, PlantUML, and OnUML mind maps. Draw.io diagrams are not currently supported through MCP.
The client immediately loses access. Create a replacement key in API key settings and replace the token in your client configuration.
Only the workspaces and projects your OnUML account can currently access. If your permissions change, MCP access changes with them.
Ready to give your agent diagram context?
Create a key, connect one client, then start with list_workspaces.