Rayzia MCP
Enables AI agents to drive a live SVG/vector editor, allowing a full observe-and-act loop on a canvas with real tools, state reading, and PNG rendering.
README
Rayzia MCP — an MCP server that drives a real SVG editor
Rayzia is a free online SVG/vector editor. This MCP server lets an AI agent (Claude Code, Claude Desktop, or any MCP client) drive the running editor: draw with real tools, edit the artwork already on the canvas, read scene state back, and render PNGs so the model can see its own work.
Unlike generate-only servers that write an SVG file and hand it over, this one gives the agent a full observe-and-act loop on a live canvas — and the human watches every operation land, with each step one undo away.
Docs: rayzia.com/mcp · Editor: rayzia.com/vector
MCP client ──stdio JSON-RPC──▶ server.mjs ──SSE /events──▶ browser bridge
▲ │
└──────── POST /reply ───────┘
browser bridge ──▶ editor host facade ──▶ engine (runs in a worker)
Zero npm dependencies — Node ≥16 built-ins only. The HTTP bridge binds to
127.0.0.1 and every operation carries a per-browser capability token.
Quickstart — the in-app way (recommended)
The editor has the browser side built in:
-
Open the editor at rayzia.com/vector.
-
Open the AI Assistant panel → settings (gear) → Claude Code (local).
-
Copy the SKILL.md the pane generates — it embeds this server's code, your browser's capability token and the bridge port. Give it to Claude Code; it saves the server file and registers it as an MCP server:
claude mcp add rayzia \ --env AI_MCP_PORT=<port> --env AI_MCP_TOKEN=<token> \ -- node /absolute/path/to/rayzia-mcp-server.mjs -
Click Connect. The status dot turns green. Type in Claude Code directly, or chat from the panel by telling Claude Code to "listen for Rayzia panel prompts".
Quickstart — any MCP client
-
Run the editor in a browser and connect the bridge (in-app Connect as above, or paste
bridge.jsinto the editor's DevTools console). -
Point your MCP client at the server over stdio:
{ "mcpServers": { "rayzia": { "command": "node", "args": ["/absolute/path/to/server.mjs"], "env": { "AI_MCP_PORT": "8765", "AI_MCP_TOKEN": "<token>" } } } }
Diagnostics go to stderr (stdout is the JSON-RPC channel). Default bridge
port is 8765, override with AI_MCP_PORT.
Tools
| Tool | Purpose |
|---|---|
get_catalog |
Discover everything the editor exposes: semantic verbs with param schemas, 533 raw commands, 69 effects, 57 tools. Call it first. |
get_state |
Read the scene: selection, all objects (recursed into groups) with ids, bounding boxes and paints, plus active tool, document size and view. |
run_verb |
High-level verbs: shapes, text (area / on-path / vertical / per-character), gradients, blends, warps, ~200 live path effects, filters, lock/hide, asset library, batch. One undo step each. |
draw |
Draw with a real tool via synthetic input: Pen paths or freehand strokes, with modifier keys for shape-builder punches and mesh edits. |
run_command |
Escape hatch: any raw engine command by name. File/document ops are deny-listed at the engine boundary. |
get_svg |
Export the current document as a round-trip-safe SVG string. |
get_render |
Render the canvas to a PNG (MCP image block) so the model can see its work. |
wait_for_prompt |
Long-poll for the next prompt the user types in the editor's AI Assistant panel. |
reply_to_user |
Post a short assistant reply back into that panel. |
Security
- The server binds to
127.0.0.1only, and rejects requests whoseHostheader is not loopback (closes the DNS-rebinding drive path). - Every operation carries a capability token (
AI_MCP_TOKEN) generated once per browser; the editor bridge rejects ops with a mismatched token, so a rogue local process squatting the port cannot drive the canvas. - File and document operations (save / open / new / import) are deny-listed at the engine boundary.
- Connecting is opt-in from the editor's side. The panel
/promptinbox is token-authenticated too, so a local web page cannot inject prompts.
Do not expose the bridge port beyond localhost.
Self-test
_selftest.mjs spawns the server, waits for a browser bridge, then drives the
full round-trip (initialize → tools/list → get_catalog → createShape →
addGradient → get_state → get_svg):
AI_MCP_PORT=8791 node _selftest.mjs
Expect SELFTEST PASS.
License
MIT © 2026 Rayzia
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。