Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

Excalidraw MCP

quanglizquangliz3 downloads

Control Excalidraw drawings from AI agents via a local MCP bridge with layout checks and image export.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates4

Local HTTP bridge Obsidian plugin + standalone stdio MCP server bringing Excalidraw+ style diagramming, deterministic layout verification, and image export to Obsidian vaults.

Architecture

  • Obsidian plugin (dist/plugin/main.js): Runs inside Obsidian Desktop, wraps window.ExcalidrawAutomate and app.vault, and exposes an authenticated 127.0.0.1 HTTP bridge (GET /health, POST /rpc) plus a built-in Streamable HTTP MCP endpoint (POST /mcp, zero-config auto-discovery with Antidian via getAntidianMcpServer() — no standalone Node.js process required).
  • MCP stdio server (dist/mcp/server.js): Optional standalone Node.js stdio MCP server for external MCP clients that require stdio transport; returns native MCP image content blocks for PNG exports.

Build & Deploy to Obsidian Vault

npm install
npm run typecheck
npm run build
npm test

Preview or deploy the Obsidian plugin to your vault (pass --vault <path> or set $OBSIDIAN_VAULT_PATH):

# Preview copy targets without modifying the vault
node scripts/deploy-vault.mjs --dry-run --vault /path/to/your/vault

# Deploy manifest.json, styles.css, versions.json, and dist/plugin/main.js
node scripts/deploy-vault.mjs --vault /path/to/your/vault

Obsidian Plugin Activation

  1. Install and enable the Excalidraw community plugin in Obsidian.
  2. Open Settings -> Community plugins, reload plugins if needed, and enable Excalidraw MCP.
  3. Open Settings -> Excalidraw MCP to inspect or configure:
    • Port (default 27129)
    • Auth Token (optional Bearer token; recommended)
    • Default View Target (active or first)
    • Auto-start bridge (enabled by default)
  4. Open an .excalidraw.md or .excalidraw note in Obsidian so there is an active board.

MCP Client Configuration

If you use Antidian, excalidraw-mcp-antidian is auto-detected under Settings -> Antidian -> MCP servers over local HTTP (http://127.0.0.1:27129/mcp) with no extra configuration.

For external stdio MCP clients (Antigravity CLI, Claude Desktop, etc.), add the standalone stdio server:

{
  "mcpServers": {
    "obsidian-excalidraw": {
      "command": "node",
      "args": [
        "/path/to/obsidian-excalidraw-mcp/dist/mcp/server.js"
      ],
      "env": {
        "OBSIDIAN_EXCALIDRAW_MCP_PORT": "27129",
        "OBSIDIAN_EXCALIDRAW_MCP_TOKEN": "your-optional-bearer-token"
      }
    }
  }
}

Tool Reference

Category Tool Purpose
Inspect get_scene_info Scene metadata, bounds, element type counts, frames, and appState
Inspect get_elements Fetch element snapshots (all or filtered by ids)
Inspect search_elements Search by text query, types, frameId, or groupId
Inspect get_selected_elements Get currently selected elements in the active Excalidraw view
Viewport set_view Pan/zoom to targetElementIds, scrollToContent, or coordinates
Mutate create_elements Create shapes, text, frames, lines, or arrows; returns layoutWarnings
Mutate update_elements Patch existing elements by id; returns layoutWarnings
Mutate delete_elements Delete elements by id (optionally with deleteBoundElements)
Mutate connect_elements Bind an arrow between fromId and toId with optional label and anchors
Mutate add_mermaid Convert Mermaid syntax into native Excalidraw elements
Mutate align_elements Align (left, center, right, top, middle, bottom) or distribute
Mutate restack_elements Adjust z-order (front, back, forward, backward)
Mutate clear_scene Clear all scene elements (requires confirm: true)
Verify check_layout Detect text_overflow, shape_overlap, arrow_intersects_shape, disconnected_arrow
Export export_image Export PNG (native MCP image + JSON metadata) or SVG, optionally saving to vault

Saving Exports for Antidian read_note

Pass saveToVaultPath to export_image to write the rendered image straight into your Obsidian vault through app.vault, updating Obsidian's index immediately so Antidian's read_note (or markdown embeds) can read it right away:

{
  "format": "png",
  "scale": 2,
  "background": true,
  "saveToVaultPath": "Assets/diagrams/system-architecture.png"
}

You can then reference ![[Assets/diagrams/system-architecture.png]] in a note or inspect it via Antidian read_note.

HealthExcellent
ReviewPassed
About
Add a local HTTP bridge and MCP stdio server to control Excalidraw boards from external tools, enabling Excalidraw+-style diagramming, deterministic layout verification, and PNG export into Obsidian vaults. Convert MCP calls into native image content blocks for seamless rendering in .excalidraw notes.
DrawingAutomationExport
Details
Current version
0.2.2
Last updated
4 hours ago
Created
5 hours ago
Updates
4 releases
Downloads
3
Compatible with
Obsidian 1.5.0+
Platforms
Desktop only
License
MIT
Report bugRequest featureReport plugin
Author
quanglizquangliz
GitHubquangliz
  1. Community
  2. Plugins
  3. Drawing
  4. Excalidraw MCP

Related plugins

Excalidraw

Visual PKM powerhouse. Create and edit Excalidraw drawings.

Homepage

Open a note, base, or workspace on startup, or set it for quick access later.

BRAT

Easily install a beta version of a plugin for testing.

Templater

Create and use dynamic templates.

Linter

Format and style your notes. Linter can be used to format YAML tags, aliases, arrays, and metadata; footnotes; headings; spacing; math blocks; regular Markdown contents like list, italics, and bold styles; and more with the use of custom rule options.

Advanced URI

Control everything with URI.

Mermaid Tools

Improved Mermaid.js experience: visual toolbar with common elements and more.

QuickAdd

Quickly add new notes or content to your vault.

Hot Reload

Automatically reload in-development plugins when their files are changed

Lazy Loader

Load plugins with a delay on startup, so that you can get your app startup down into the sub-second loading time.