Excalidraw MCP Server

by i-tozer
Verified

local-only server

The server can only run on the client’s local machine because it depends on local resources.

Integrations

  • Provides tools for managing Excalidraw drawings including creating, reading, updating, and deleting drawings, as well as exporting drawings to SVG, PNG, and JSON formats.

  • Enables exporting Excalidraw drawings to SVG format.

Excalidraw MCP 服务器

这是 Excalidraw 的模型上下文协议 (MCP) 服务器,提供对 Excalidraw 图纸进行操作的 API 功能。

特征

  • 创建、读取、更新和删除 Excalidraw 图纸
  • 将绘图导出为 SVG、PNG 和 JSON 格式
  • 简单的基于文件的存储系统

安装

# Clone the repository git clone https://github.com/yourusername/excalidraw-mcp.git cd excalidraw-mcp # Install dependencies npm install # Build the project npm run build

用法

启动服务器

npm start

API 端点

该服务器提供以下工具:

图纸管理

  • create_drawing :创建一个新的 Excalidraw 绘图
  • get_drawing :通过 ID 获取 Excalidraw 绘图
  • update_drawing :通过 ID 更新 Excalidraw 绘图
  • delete_drawing :通过 ID 删除 Excalidraw 绘图
  • list_drawings :列出所有 Excalidraw 图纸

出口业务

  • export_to_svg :将 Excalidraw 绘图导出为 SVG
  • export_to_png :将 Excalidraw 绘图导出为 PNG
  • export_to_json :将 Excalidraw 绘图导出为 JSON

发展

项目结构

excalidraw-mcp/ ├── src/ │ ├── common/ │ │ └── errors.ts │ └── operations/ │ ├── drawings.ts │ └── export.ts ├── index.ts ├── package.json ├── tsconfig.json └── README.md

建筑

npm run build

以开发模式运行

npm run dev

执照

麻省理工学院

-
security - not tested
F
license - not found
-
quality - not tested

模型上下文协议服务器提供 API 功能,用于创建、管理和导出各种格式(如 SVG、PNG 和 JSON)的 Excalidraw 绘图。

  1. Features
    1. Installation
      1. Usage
        1. Starting the Server
        2. API Endpoints
      2. Development
        1. Project Structure
        2. Building
        3. Running in Development Mode
      3. License
        ID: v5xm1od4cu