Draw on your website, let your AI agent see it. Visual context for code generation via MCP.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Draw2agent.
launch_canvasOpens your dev page with the drawing overlay
launch_ipad_canvasServes the page on your LAN and returns a QR code for drawing from iPad/mobile
launch_scratchOpens a standalone Excalidraw whiteboard for freehand sketching
get_drawing_stateReturns screenshot, DOM nodes, and annotations for the current state
Draw on your website. Your AI agent sees it.
draw2agent is an MCP server that lets you draw annotations directly on top of your local dev page. When you submit, your IDE agent receives a screenshot, structured DOM data, and annotation context to make precise code edits.
π Try it out at: draw2agent.vercel.app
Cursor (~/.cursor/mcp.json):
Tell your agent:
"Use draw2agent to fix the navbar"
The MCP server exposes the following tools:
| Tool | Description |
|---|---|
launch_canvas | Opens your dev page with the drawing overlay |
launch_ipad_canvas | Serves the page on your LAN and returns a QR code for drawing from iPad/mobile |
launch_scratch | Opens a standalone Excalidraw whiteboard for freehand sketching |
get_drawing_state | Returns screenshot, DOM nodes, and annotations for the current state |
launch_canvasThe core tool β proxies your localhost dev server and injects an Excalidraw overlay. Draw annotations directly on your running app, then submit to send visual context to your agent. The tool blocks until you submit.
launch_ipad_canvasSame as launch_canvas, but serves the proxy on your computer's local network (LAN) address. Automatically opens a new browser tab on your computer with a QR code. Scan it from your iPad or phone β connected to the same Wi-Fi network β to draw annotations with touch. Perfect for whiteboard-style feedback sessions. No internet tunnel required, so it's fast and reliable.
launch_scratchOpens a blank Excalidraw whiteboard β no target URL needed. Sketch UI mockups, wireframes, or diagrams from scratch. Your agent receives the drawing and implements the design.
get_drawing_stateReturns the last captured drawing state (screenshot, DOM nodes, annotations) without launching a new session. Useful for re-fetching context.
Publishing to npm is automated via GitHub Actions (.github/workflows/publish.yml).
To cut a release, just bump the version and push to main:
When package.json's version changes on main, the workflow builds the
server + overlay and publishes the new version to npm. You can also trigger it
manually from the Actions tab (e.g. to publish the current version).
The workflow authenticates with npm via OIDC β no NPM_TOKEN secret needed.
Configure the trusted publisher once:
zero-abddraw2agentpublish.ymlThis also satisfies npm's 2FA requirement, so publishing works even with
account 2FA enabled. (Alternative: create an npm Granular Access Token with
publish rights, add it as the NPM_TOKEN repo secret, and set
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} on the publish step instead.)
MIT
Factual signals from GitHub, npm, and our automated checks β not a rating.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/draw2agent)<a href="https://allmcps.com/mcp/draw2agent"><img src="https://allmcps.com/api/badge/draw2agent?style=directory" alt="Draw2agent on AllMCPs" /></a>