excalidraw-mcp: Instructions file for Claude Code

CLAUDE.md

excalidraw-mcp CLAUDE.md is an instructions file for Claude Code from maaker-ai/excalidraw-mcp. It costs 1,544 tokens per session, scanned A, original, MIT.

Project instructions for maaker-ai’s Excalidraw MCP server, a tool that lets an AI create Excalidraw diagrams from natural-language requests.

In plain words
What is it for?
Use them when developing, testing, packaging, or releasing this Python MCP server and its PyPI package.
Why use it?
They document how to run tests, build the package, and publish it correctly, including the release event required for automatic PyPI publishing.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md.

This is maaker-ai/excalidraw-mcp's own configuration. It tells Claude Code how to work on excalidraw-mcp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything excalidraw-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to maaker-ai/excalidraw-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/maaker-ai/excalidraw-mcp/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/maaker-ai/excalidraw-mcp

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for excalidraw-mcp CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/maaker-ai/excalidraw-mcp/claude-md/github.svg)](https://agentmods.dev/instructions/maaker-ai/excalidraw-mcp/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/maaker-ai/excalidraw-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/maaker-ai/excalidraw-mcp/claude-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for excalidraw-mcp CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/maaker-ai/excalidraw-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/maaker-ai/excalidraw-mcp/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,544 This file is loaded in full into every session.
When invoked 1,544 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.01544 $0.01544
Opus 5 $0.00772 $0.00772
Sonnet 5 $0.00309 $0.00309
Haiku 4.5 $0.00154 $0.00154

Measured 9d ago against content hash 96b7ec4424e0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

excalidraw-mcp CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

CLAUDE.md · 115 lines

How it starts

The opening of the file, as written. The whole thing — 115 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Excalidraw MCP Server

Maaker.AI 开源 MCP Server,用自然语言生成 Excalidraw 图表

快速命令

# 开发
uv sync --dev
uv run pytest                    # 运行测试(200+ tests)
uv run excalidraw-mcp            # 本地启动 MCP server

# 构建 & 发布(手动)
uv build                         # 构建到 dist/
uv publish --token <PYPI_TOKEN>  # 发布到 PyPI

自动发布到 PyPI

发版流程

  1. 更新 pyproject.toml 中的 version
  2. 提交并推送到 main
  3. 创建 tag:git tag v0.x.0 && git push origin --tags
  4. 必须创建 GitHub Releasegh release create v0.x.0 --title "v0.x.0" --notes "..."
  5. GitHub Actions 自动构建并发布到 PyPI

⚠️ 踩坑记录:只 push tag 不会触发发布!workflow 触发条件是 on: release: types: [published],必须通过 gh release create 或 GitHub 网页创建 Release 才能触发。v0.4.0 就因为只 push tag 没创建 Release 导致未发布到 PyPI。

Trusted Publisher 配置(已完成)

PyPI 端配置:Owner=maaker-ai, Repo=excalidraw-mcp, Workflow=publish.yml, Environment=pypi

包信息

项目
PyPI 包名 maaker-excalidraw-mcp
入口命令 excalidraw-mcp
GitHub maaker-ai/excalidraw-mcp
安装方式 claude mcp add excalidraw -- uvx maaker-excalidraw-mcp

目录结构

src/excalidraw_mcp/
├── server.py              # MCP server 入口,注册 25+ tools
├── elements/              # Excalidraw 元素生成
│   ├── text.py            # 文本 + 带标签的形状(CJK 宽度估算,多行支持,字体族)
│   ├── arrows.py          # 箭头(fixedPoint + orbit,边标签,肘形路由)
│   ├── shapes.py          # 矩形、椭圆、菱形
│   ├── lines.py           # 共享线段工具
│   ├── groups.py          # 分组框架(虚线背景矩形 + 标签)
│   └── style.py           # 8 色基础 + 30+ 技术品牌色
├── layout/                # 布局引擎
│   ├── sugiyama.py        # Sugiyama 分层布局(grandalf)— 流程图主引擎
│   └── grid.py            # 网格/分层布局 — 架构图使用
├── tools/                 # MCP 工具定义(25+ 图表类型)
│   ├── flowchart.py       # 流程图(形状/分组/边标签/线型)
│   ├── architecture.py    # 分层架构图
│   ├── sequence.py        # UML 时序图
│   ├── mindmap.py         # 树形思维导图
│   ├── er_diagram.py      # ER 实体关系图
│   ├── class_diagram.py   # UML 类图
│   ├── state_diagram.py   # UML 状态机
│   ├── timeline.py        # 时间线/甘特图
│   ├── pie_chart.py       # 饼图
│   ├── bar_chart.py       # 柱状图
│   ├── line_chart.py      # 折线图(多系列/标记/图例)
│   ├── radar.py           # 雷达/蛛网图
│   ├── table.py           # 网格表格
│   ├── kanban.py          # 看板
│   ├── network.py         # 网络拓扑
│   ├── quadrant.py        # 四象限矩阵
│   ├── user_journey.py    # 用户旅程图
│   ├── wireframe.py       # UI 线框图
│   ├── org_chart.py       # 组织架构图
│   ├── swot.py            # SWOT 分析
│   ├── decision_tree.py   # 决策树
│   ├── mermaid.py         # Mermaid 导入(flowchart/sequence/class/state/pie)
│   ├── unified.py         # 统一路由 create_diagram
│   ├── help.py            # 图表类型列表
│   ├── modify.py          # 修改已有图表
│   ├── read.py            # 读取图表
│   └── export.py          # SVG 导出
└── utils/
    ├── file_io.py         # save/load .excalidraw 文件
    ├── ids.py             # gen_id() 共享 ID 生成器
    └── svg_export.py      # SVG 导出

Read the full file on GitHub · 115 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 115 lines · 1,544 tokens per session scan A 96b7ec4424e0

Subscribe to this mod's changes

excalidraw-mcp CLAUDE.md is an instructions file published in the GitHub repository maaker-ai/excalidraw-mcp (3 stars, last pushed 1mo ago), licensed MIT. It adds 1,544 tokens to every session, about $0.0077 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other instructions, from other repositories

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,153 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens

deepseek-harness AGENTS.md

AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.

deepseek-ai/deepseek-harness · 3,735 tokens