mcp-server-diagramai

by PadsterH2012

160 downloads
Not rated
GitHub

Description

# mcp-server-diagramai An MCP server implementation for DiagramAI integration, enabling AI agents to create, read, edit, and delete diagrams in real-time. [![npm version](https://badge.fury.io/js/mcp-server-diagramai.svg)](https://badge.fury.io/js/mcp-server-diagramai)…

About

# mcp-server-diagramai An MCP server implementation for DiagramAI integration, enabling AI agents to create, read, edit, and delete diagrams in real-time. [![npm version](https://badge.fury.io/js/mcp-server-diagramai.svg)](https://badge.fury.io/js/mcp-server-diagramai) [![License…

Details

Author
PadsterH2012
Downloads
160
Categories
Other

- 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.

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.

mcp-server-diagramai

An MCP server implementation for DiagramAI integration, enabling AI agents to create, read, edit, and delete diagrams in real-time.

npm version
License: MIT

Features

Resources

- Expose diagram list and project structure - Real-time diagram state access - Project-based organization

Tools

- create_diagram: Create new diagrams with specified content - get_diagram: Retrieve diagram by ID - update_diagram: Modify existing diagrams - delete_diagram: Remove diagrams - add_node: Add nodes to diagrams - add_edge: Add connections between nodes - list_diagrams: Get all accessible diagrams - get_diagram_status: Check diagram state and metadata

Installation

From npm (Recommended)

npm install -g mcp-server-diagramai

From source

git clone https://github.com/PadsterH2012/mcp-server-diagramai.git
cd mcp-server-diagramai
npm install
npm run build

Usage with Claude Desktop

Configuration File

Paths to Claude Desktop config file:
- MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
- Windows: %APPDATA%\Claude\claude_desktop_config.json

Published Package Configuration

{
  "mcpServers": {
    "diagramai": {
      "command": "npx",
      "args": [
        "mcp-server-diagramai",
        "--api-url", "${DIAGRAMAI_API_URL}",
        "--api-key", "${DIAGRAMAI_API_KEY}"
      ]
    }
  }
}

Development Configuration

{
  "mcpServers": {
    "diagramai": {
      "command": "/PATH/TO/node",
      "args": [
        "/PATH/TO/mcp-server-diagramai/dist/index.js"
      ],
      "env": {
        "DIAGRAMAI_API_URL": "http://localhost:3000",
        "DIAGRAMAI_API_KEY": "your-api-key-here"
      }
    }
  }
}

Environment Variables

Create a .env file or set environment variables:

```env

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.