Skip to main content
Glama

draw2agent ✏️

npm version mcp-registry

ウェブサイト上に描画できます。AIエージェントがそれを認識します。

draw2agent は、ローカルの開発ページ上に直接注釈を描画できるMCPサーバーです。送信すると、IDEエージェントがスクリーンショット、構造化されたDOMデータ、注釈コンテキストを受け取り、正確なコード編集を行います。

👉 試してみる: draw2agent.vercel.app

デモ

draw2agent demo video

Related MCP server: Peek

クイックスタート

1. IDEに追加(一度だけ)

Cursor (~/.cursor/mcp.json):

{
  "mcpServers": {
    "draw2agent": {
      "command": "npx",
      "args": ["-y", "draw2agent@latest"]
    }
  }
}

2. 使い方

エージェントに指示します:

"draw2agentを使ってナビバーを修正してください"

  1. 🌐 エージェントがあなたのページに描画ツールを備えたブラウザを開きます

  2. ✏️ ウェブサイト上に直接、円、矢印、テキストを描画します

  3. 📸 送信をクリックします

  4. 🤖 エージェントが視覚的なコンテキストを読み取り、コード変更を適用します

仕組み

Your Dev Page (proxied)
├── Your original page content
└── Excalidraw overlay (transparent, on top)
    ├── Draw mode: annotate directly on the page
    ├── Select mode: interact with the page normally (Esc)
    └── Submit: screenshot + DOM + annotations → agent

ツール

MCPサーバーは以下のツールを提供します:

Tool

Description

launch_canvas

描画オーバーレイ付きで開発ページを開きます

launch_ipad_canvas

ページをLAN上で提供し、iPad/モバイルから描画するためのQRコードを返します

launch_scratch

フリーハンドスケッチ用のスタンドアロンExcalidrawホワイトボードを開きます

get_drawing_state

現在の状態のスクリーンショット、DOMノード、注釈を返します

launch_canvas

コアツール — localhost開発サーバーをプロキシし、Excalidrawオーバーレイを注入します。実行中のアプリに直接注釈を描画し、送信すると視覚的なコンテキストをエージェントに送信します。このツールは送信するまでブロックされます。

launch_ipad_canvas

launch_canvas と同じですが、プロキシをコンピュータのローカルネットワーク(LAN)アドレスで提供します。コンピュータ上でQRコード付きの新しいブラウザタブを自動的に開きます。同じWi-Fiネットワークに接続したiPadやスマートフォンからスキャンして、タッチで注釈を描画できます。ホワイトボード形式のフィードバックセッションに最適です。インターネットトンネルは不要なので、高速で信頼性があります。

launch_scratch

空白のExcalidrawホワイトボードを開きます — ターゲットURLは不要です。UIモックアップ、ワイヤーフレーム、図をゼロからスケッチできます。エージェントは描画を受け取り、デザインを実装します。

get_drawing_state

新しいセッションを起動せずに、最後にキャプチャされた描画状態(スクリーンショット、DOMノード、注釈)を返します。コンテキストを再取得するのに便利です。

リリース

npmへの公開はGitHub Actions(.github/workflows/publish.yml)で自動化されています。リリースを切るには、バージョンを上げてmainにプッシュするだけです:

npm version patch   # or minor / major — updates package.json
git push origin main

mainpackage.jsonversionが変更されると、ワークフローがサーバーとオーバーレイをビルドし、新しいバージョンをnpmに公開します。Actionsタブから手動でトリガーすることもできます(例:現在のバージョンを公開する場合)。

一度だけの設定: npm Trusted Publishing

ワークフローはOIDCを介してnpmで認証されます — NPM_TOKENシークレットは不要です。トラステッドパブリッシャーを一度設定してください:

  1. npmjs.com/package/draw2agentSettingsTrusted Publisher に移動します。

  2. GitHub Actionsを選択して、以下を入力します:

    • Organization or user: zero-abd

    • Repository: draw2agent

    • Workflow filename: publish.yml

  3. 保存します。

これによりnpmの2FA要件も満たされるため、アカウントで2FAが有効でも公開が機能します。(代替案:公開権限を持つnpm Granular Access Tokenを作成し、それをNPM_TOKENリポジトリシークレットとして追加し、公開ステップでNODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}を設定します。)

ライセンス

MIT

A
license - permissive license
Not graded
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
1Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    Not graded
    quality
    A
    maintenance
    Bridges AI coding agents with the browser to provide visual debugging, real-time error capture, screenshot capabilities, DOM inspection, and interactive wireframing through a reverse proxy with injected developer tools.
    36
    5
    Apache 2.0
  • A
    license
    Not graded
    quality
    A
    maintenance
    Enables AI agents to take screenshots of local web pages and capture user-selected UI elements via a bookmarklet, providing element metadata for precise visual understanding.
    1
    MIT
  • A
    license
    Not graded
    quality
    B
    maintenance
    Enables visual annotation on web pages for Claude Code, allowing element selection, comment addition, screenshot capture, and structured UI feedback for code fixes via an MCP server.
    MIT
  • F
    license
    Not graded
    quality
    A
    maintenance
    Enables visual browser feedback collection directly into Claude Code. Users can point at elements in their browser and send annotated feedback that Claude can act on immediately.
    1

View all related MCP servers

Related MCP Connectors

  • Live browser debugging for AI assistants — DOM, console, network via MCP.

  • Human feedback for AI agents: share HTML, get a live review link, read anchored notes as markdown.

  • Give AI coding agents access to your Vynix visual feedback, bug reports, and AI diagnosis.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/zero-abd/draw2agent'

If you have feedback or need assistance with the MCP directory API, please join our Discord server