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 服务器。
可用工具
- health_check - 检查服务器状态
- get_canvas - 获取当前画布内容
- update_canvas - 更新画布内容
- clear_canvas - 清除画布
- export_canvas - 导出画布为 SVG 或 JSON
- remove_element - 删除指定元素
- 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file excalidraw_mcp_server-1.0.3.tar.gz.
File metadata
- Download URL: excalidraw_mcp_server-1.0.3.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd2b0a3daa3ac7818a5fbe8ab3308823105a6b91181cd3129ba2ba3db39433ea
|
|
| MD5 |
300b6e76a88db3bdf98918a7d112ba03
|
|
| BLAKE2b-256 |
d37ea1dfba837886dbe1807ec8dc04d9878b6a58a0cf8def3f0f4a53628ac038
|
File details
Details for the file excalidraw_mcp_server-1.0.3-py3-none-any.whl.
File metadata
- Download URL: excalidraw_mcp_server-1.0.3-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4809a0dd2ac159c6a37c825289e826944d489efb5cca5a303cb10c8d48932359
|
|
| MD5 |
51014d30e207ccefdc460ce62fb17a3b
|
|
| BLAKE2b-256 |
7f1d5cfc4c8f5b803a097b036a2994305c1974811e3066c91090c373293c25d2
|