Skip to main content
Glama
excalidraw-mcp

excalidraw-mcp

by thiendt1608

Excalidraw MCP Server (Excalidraw v2 Spec Compliant)

Ein MCP-Server (Model Context Protocol) zum Erstellen und Verwalten von Excalidraw-Diagrammen, aktualisiert, um der offiziellen Excalidraw-v2-Spezifikation zu folgen.

Funktionen

Tools für Kernelemente

Tool

Beschreibung

create_element

Erstellt ein einzelnes Excalidraw-Element

create_elements_batch

Erstellt mehrere Elemente in einem Aufruf

update_element

Aktualisiert ein vorhandenes Element anhand der ID

delete_element

Löscht ein Element anhand der ID

query_elements

Fragt Elemente nach Typ oder benutzerdefinierten Filtern ab

clear_canvas

Entfernt alle Elemente von der Zeichenfläche

Dateioperationen

Tool

Beschreibung

export_file

Exportiert die Zeichenfläche in eine .excalidraw-Datei

import_file

Importiert eine .excalidraw-Datei in die Zeichenfläche

get_scene_json

Ruft das vollständige Szenen-JSON ab

Bibliothekselemente (Offizielle Excalidraw-Icon-Pakete)

Tool

Beschreibung

list_library_items

Durchsucht oder listet Elemente in allen installierten Bibliotheken (query, library, limit)

insert_library_item

Fügt ein Icon an einer Position mit optionaler Skalierung ein (itemId, x, y, scale, library)

Installierte offizielle Bibliotheken (499+ Icons):

  1. AWS Architecture Icons (aws-architecture-icons): 249 Icons (CloudSearch, EMR, DynamoDB, S3, EC2, Lambda, VPC, RDS, Kinesis, usw.)

  2. Google Icons (google-icons): 139 Icons (Anthos, BigQuery, Compute Engine, Cloud Run, GKE, Firestore, usw.)

  3. System Design Components (system-design-components): 24 Elemente (Anwendungsserver, Multi-Instanz-Server, Load Balancer, usw.)

  4. Shapes for UML & ER Diagrams (uml-er-diagrams): 21 Elemente (Entitäten, Beziehungen, Konnektoren, Formen)

  5. Software Logos (software-logos): 18 Icons (Docker, JSON, Git, Datenbank-Logos, usw.)

  6. Architecture Diagram Components (architecture-diagram-components): 11 Komponenten (Slack, Docker, GitHub, VPC, Subnetze)

  7. Software Architecture (software-architecture): 7 zentrale Diagrammelemente

  8. Robots (robots): 7 illustrierte Roboterfiguren

  9. Built-in Common Icons (built-in): 23 schlanke native Icons

Auto-Layout-Flussdiagramm

Tool

Beschreibung

create_flowchart

Erstellt ein Flussdiagramm mit DagreJS-Auto-Layout

Unterstützte Layouts: Top-Bottom (TB), Left-Right (LR), Bottom-Top (BT), Right-Left (RL) Knotenformen: Rechteck, Ellipse, Raute

// Update an existing element
update_element({ id: "mybox1", strokeColor: "#099268", text: "Updated!", width: 200 })

// Query elements by filter
query_elements({ filter: { type: "rectangle" } })

// Export to file
export_file({ filePath: "docs/architecture.excalidraw" })

Related MCP server: excalidraw-architect-mcp

Einrichtung

Fügen Sie Folgendes zu Ihrer MCP-Einstellungsdatei hinzu (z. B. claude_desktop_config.json, .cursor/mcp.json oder ~/.omp/agent/mcp.json):

{
  "mcpServers": {
    "excalidraw": {
      "type": "stdio",
      "command": "node",
      "args": ["/path/to/excalidraw-mcp/src/cli.js"]
    }
  }
}

Related MCP Connectors

Related MCP Servers