
scofieldfree/exalidraw-mcp 是从 https://github.com/scofieldfree/excalidraw-mcp. 导入的 MCP 服务器候选
概览
scofieldfree/exalidraw-mcp 是从 https://github.com/scofieldfree/excalidraw-mcp. 导入的 MCP 服务器候选
概述(AI 翻译)
一个MCP(模型上下文协议)服务器,赋能AI代理(如Claude、Cursor、Windsurf)直接在你的对话中创建、编辑和管理Excalidraw图表。
为什么选择Excalidraw? 其手绘美学和基于JSON的格式非常适合快速、可编程的图表绘制。该服务器连接了标准MCP客户端与本地Excalidraw实例,实现AI驱动的视觉思维。
✨ 特色
| 特色 | 描述 |
|---|---|
| 🎨 实时预览 | 更改可通过WebSocket即时出现在本地浏览器窗口中 |
| 📐 智能布局 | 自动计算文本宽度并绑定标签到容器 |
| 🔄 多场无缝切换不同图示 | |
| 🧜 美人鱼支持 | 立即将美人鱼语法转换为Excalidraw图示 |
| 📦 导出选项 | 导出为PNG、SVG或JSON格式 |
| 🏗️ 模板 | 内置架构图模板 |
🚀 快速启动
你不需要克隆这个仓库。只需配置你的MCP客户端:
克劳德·代码(CC)
Codex CLI
光标 / 风帆冲浪
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Excalidraw MCP Server
An MCP (Model Context Protocol) server that empowers AI agents (like Claude, Cursor, Windsurf) to create, edit, and manage Excalidraw diagrams directly within your conversation.
Why Excalidraw? Its hand-drawn aesthetic and JSON-based format are perfect for rapid, programmable diagramming. This server bridges standard MCP clients with a local Excalidraw instance, enabling AI-powered visual thinking.
✨ Features
| Feature | Description |
|---|---|
| 🎨 Real-time Preview | Changes appear instantly in a local browser window via WebSocket |
| 📐 Smart Layout | Automatically calculates text width and binds labels to containers |
| 🔄 Multi-Session | Switch between different diagrams seamlessly |
| 🧜 Mermaid Support | Convert Mermaid syntax to Excalidraw diagrams instantly |
| 📦 Export Options | Export to PNG, SVG, or JSON formats |
| 🏗️ Templates | Built-in architecture diagram templates |
🚀 Quick Start
You don’t need to clone this repo. Just configure your MCP client:
Claude Code (cc)
claude mcp add excalidraw -- npx -y @scofieldfree/excalidraw-mcp
Codex CLI
codex mcp add excalidraw -- npx -y @scofieldfree/excalidraw-mcp
Cursor / Windsurf
Go to Settings > MCP → Add New MCP Server:
| Field | Value |
|---|---|
| Name | excalidraw |
| Type | command |
| Command | npx -y @scofieldfree/excalidraw-mcp |
Cline (VS Code Extension)
Open Cline settings and add to MCP Servers:
{
"mcpServers": {
"excalidraw": {
"command": "npx",
"args": ["-y", "@scofieldfree/excalidraw-mcp"]
}
}
}
GitHub Copilot
Use the Copilot CLI to interactively add:
/mcp add
Alternatively, create or edit ~/.copilot/mcp-config.json:
{
"mcpServers": {
"excalidraw": {
"type": "local",
"command": "npx",
"tools": ["*"],
"args": ["-y", "@scofieldfree/excalidraw-mcp"]
}
}
}
Kiro
Follow the MCP Servers documentation. Add to .kiro/settings/mcp.json:
{
"mcpServers": {
"excalidraw": {
"command": "npx",
安装
npx -y @scofieldfree/excalidraw-mcp配置
{
"mcpServers": {
"excalidraw": {
"command": "npx",
"args": ["-y", "@scofieldfree/excalidraw-mcp"]
}
}
}