What is mcp-server-diagramai?
mcp-server-diagramai is an MCP server for DiagramAI integration that lets AI agents create, read, edit, and delete diagrams in real-time. It is designed for developers building AI‑powered diagramming workflows.
How to use mcp-server-diagramai?
Install globally via npm (npm install -g mcp-server-diagramai) or build from source. Configure the server with environment variables for DiagramAI API URL and API key, then add it to the Claude Desktop configuration. Use the exposed tools (e.g., create_diagram, update_diagram) to manage diagrams through your AI agent.
Key features of mcp-server-diagramai
- Exposes diagram list and project structure as resources.
- Real-time diagram state access and project-based organization.
- Tools for full CRUD on diagrams and projects.
- Node and edge operations for dynamic diagram editing.
- Supports reactflow and mermaid diagram types.
- Environment‑variable configuration and debug logging.
Use cases of mcp-server-diagramai
- An AI agent automatically creates flowcharts or network diagrams.
- An agent modifies existing diagrams in real‑time during a conversation.
- An agent reads diagram content to answer user questions.
- An agent deletes obsolete diagrams to keep projects clean.
Comments