Skip to main content

Excalidraw MCP Server - A Model Context Protocol server for Excalidraw canvas operations

Project description

Excalidraw MCP Server

一个用于 Excalidraw 画布操作的 Model Context Protocol (MCP) 服务器。

功能特性

  • 🎨 画布操作: 支持更新、获取、清除画布内容
  • 🔍 健康检查: 提供服务器状态检查
  • 📤 导出功能: 支持 SVG 和 JSON 格式导出
  • 🧩 元素管理: 支持单个元素的更新和删除
  • 🌐 HTTP 接口: 完全基于 HTTP API 实现

安装

pip install excalidraw-mcp-server

使用方法

启动服务器

excalidraw-mcp-server

配置

默认连接到 http://127.0.0.1:31337 的 Excalidraw HTTP 服务器。

可用工具

  1. health_check - 检查服务器状态
  2. get_canvas - 获取当前画布内容
  3. update_canvas - 更新画布内容
  4. clear_canvas - 清除画布
  5. export_canvas - 导出画布为 SVG 或 JSON
  6. remove_element - 删除指定元素
  7. update_element - 更新指定元素

开发

本地开发

# 克隆仓库
git clone <repository-url>
cd excalidraw-mcp-server

# 安装依赖
pip install -e .

# 运行服务器
python -m excalidraw_mcp_server.server

构建包

pip install build
python -m build

依赖

  • Python >= 3.8
  • httpx
  • mcp
  • requests
  • aiohttp
  • typing-extensions

许可证

MIT License

贡献

欢迎提交 Issue 和 Pull Request!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

excalidraw_mcp_server-1.0.2.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

excalidraw_mcp_server-1.0.2-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file excalidraw_mcp_server-1.0.2.tar.gz.

File metadata

  • Download URL: excalidraw_mcp_server-1.0.2.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.6

File hashes

Hashes for excalidraw_mcp_server-1.0.2.tar.gz
Algorithm Hash digest
SHA256 f7d76388ce73681c013f8e7a782405d4cea1f06db62c6e68ff38ae3029740fa1
MD5 3c8c6e54011ff7694e8c3596d3744258
BLAKE2b-256 73945356f33fe4ab618e43800182145e843c903779cb6ea3461eb18b0ffcd681

See more details on using hashes here.

File details

Details for the file excalidraw_mcp_server-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for excalidraw_mcp_server-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0d1879e233c099a7d7ffec28230d772051656079b9283410f1bc8831a7afbb80
MD5 acef298a6bfb690132f42a9e8cc60133
BLAKE2b-256 13132bd74411252316a4a8b396702bb2b53ef69824cd49b1ad48394726a016de

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page