Figma Context MCP
Give your coding agent access to your Figma data. Implement designs in any framework in one-shot.
作者による説明(英語の原文)
draw.io diagrams your AI agent draws on a live browser canvas that you can also edit by hand
この3つを1つのスコアにまとめることはしません。意見、測定、人気はそれぞれ別のものだからです。
このサーバーのやさしい解説はまだ書いていません。以下はレジストリから読み取った事実です。
使っているAIアプリを選んで、設定をコピーしてください。
必要なもの
どのアプリを使っていますか?
上でアプリを選んでください。選んだアプリを覚えておくので、次からはボタンに「…にインストール」と表示されます。
Claude Desktop → Settings → Developer → Edit Config を開き、claude_desktop_config.json にこれを貼り付けます
{
"mcpServers": {
"next-ai-drawio": {
"command": "npx",
"args": [
"-y",
"@next-ai-drawio/mcp-server"
]
}
}
}ターミナルでこれを実行します
claude mcp add next-ai-drawio -- npx -y @next-ai-drawio/mcp-serverプロジェクトの .cursor/mcp.json、または ~/.cursor/mcp.json に貼り付けます
{
"mcpServers": {
"next-ai-drawio": {
"command": "npx",
"args": [
"-y",
"@next-ai-drawio/mcp-server"
]
}
}
}ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。
プロジェクトの .vscode/mcp.json に貼り付けます
{
"servers": {
"next-ai-drawio": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@next-ai-drawio/mcp-server"
]
}
}
}ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。
これはパソコンで動くサーバーですが、ChatGPTがつなげるのはインターネット上のサーバーだけです。ほかのアプリを選んでください。
選んだアプリは、この端末のCookieに保存されます。アカウントは不要です。
この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。
パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。
誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月9日にチェック
レジストリ名は、リポジトリを所有するGitHubアカウント DayuanJiang で確認済みです
このリポジトリはまだGitHubから読み取っていません
このリポジトリはまだGitHubから読み取っていません
これはパソコンで動くため、インターネット上のエンドポイントはありません
パソコンで動き、代わりにローカルの設定を使います
パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです
レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。
当てはまる基本チェック1項目のうち1項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。
レジストリには必須のキーは載っていません。ただし、最初に使うときにサインインを求めるサーバーもあります。
あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。
GitHubリポジトリの最終更新は–、最新バージョン(0.4.13)がレジストリに届いたのは一昨日です。
Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにNode.jsも必要です。
同じカテゴリには:Figma Context MCP, Claude Real Video, Figma MCP Server
同じカテゴリで、ほかの作者が作ったサーバー。スターの多い順。
カードの見方:↓ 週あたりのダウンロードi★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i
Give your coding agent access to your Figma data. Implement designs in any framework in one-shot.
Let any LLM watch a video locally — and search everything it has ever watched.
The Figma MCP server brings Figma design context directly into your AI workflow.
作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。
An MCP server that lets Claude Code, Cursor, VS Code and other AI agents draw draw.io diagrams from your project's files, with a live preview in your browser. The preview is the canvas of the Next AI Draw.io web app: the AI's changes are outlined, Ctrl+Z takes them back, and you can edit by hand at any time.
https://github.com/user-attachments/assets/6f53a67b-ab21-4113-9fee-7fb32f9de678
In VS Code or Cursor, one click adds it:
Paste this into Claude Code, Codex, Cursor, VS Code, Cline or any agent that can edit files and run commands:
Install the drawio MCP server for the client you are running in, following
https://raw.githubusercontent.com/DayuanJiang/next-ai-draw-io/main/packages/mcp-server/README.md Install it for all my projects (user scope, for Claude Code "--scope user"), name the server "drawio" and keep the servers that are already configured. Then tell me how to reload so its tools show up.
Claude Code
claude mcp add --scope user drawio -- npx @next-ai-drawio/mcp-server@latest
--scope user makes the tools available in every project. Without it, they exist only in the folder where you ran the command.
Or install it as a plugin from the Claude Code community marketplace (Claude Code 2.1.275 or later):
/plugin install next-ai-drawio --marketplace anthropics/claude-plugins-community
Codex CLI
codex mcp add drawio -- npx @next-ai-drawio/mcp-server@latest
Codex asks before each drawio tool that changes the diagram, and codex exec without full access fails with "MCP tool call requires approval". To let the drawio tools run without asking, add one line to the server's section in ~/.codex/config.toml:
[mcp_servers.drawio]
command = "npx" args = ["@next-ai-drawio/mcp-server@latest"] default_tools_approval_mode = "approve"
To approve only some tools, use [mcp_servers.drawio.tools. ] with approval_mode = "approve" instead.
VS Code (.vscode/mcp.json)
{
"servers": { "drawio": { "type": "stdio", "command": "npx", "args": ["@next-ai-drawio/mcp-server@latest"] } } }
DeepSeek Harness: install the plugin into the profile you start DSH with (web for dsh web). The agent replies with the preview link; clicking it opens the preview in DSH's right sidebar.
dsh plugin --profile web add @next-ai-drawio/dsh
Cursor, Claude Desktop, Cline and most other clients (~/.cursor/mcp.json, claude_desktop_config.json, cline_mcp_settings.json)
{
"mcpServers": { "drawio": { "command": "npx", "args": ["@next-ai-drawio/mcp-server@latest"] } } }
Restart the client, then ask, for example, "Read this repo and draw its architecture". The preview opens in your browser and the diagram appears as it is drawn.
.drawio and .drawio.svg files open with load_diagram.get_selection). Your hand edits are read before the AI edits again.screenshot: true, or screenshot_diagram).restore_version)..drawio, .png, .svg or .drawio.svg. Images get a 20 px margin, and PNGs a white background (transparent: true for none).Several MCP servers draw draw.io diagrams. As of October 2026 they differ like this:
| Server | How you see and change the diagram | A good fit when |
|---|---|---|
This server, @next-ai-drawio/mcp-server | A live draw.io canvas in your browser. The AI reads it back, including your hand edits and selection; its changes are outlined, Ctrl+Z takes them back, and earlier versions can be restored | You and the AI take turns on the same diagram |
draw.io's official @drawio/mcp | Opens each diagram from XML, CSV or Mermaid in the draw.io editor in a new tab; no tool reads it back | You want the diagram in the full draw.io editor and edit it yourself from there |
draw.io's hosted MCP app, https://mcp.draw.io/mcp | Shows the diagram inside the chat in Claude.ai, ChatGPT, VS Code or Cursor, with nothing to install; the diagram is sent to draw.io's server | You work in a chat app and want to see the diagram in the conversation |
| draw.io's plugin for Claude Code, Codex CLI and Copilot CLI | A skill that writes .drawio files; PNG, SVG and PDF export needs draw.io Desktop | You want diagram files in your repository without an MCP server |
lgazo/drawio-mcp-server | A draw.io editor on localhost, or your own draw.io through a browser extension; tools create, read, update and delete single shapes, layers and pages | You want fine-grained tools, several documents at once, or Mermaid import |
Every change is saved to ~/.next-ai-drawio/ .drawio with its last 20 versions; the newest 50 diagrams are kept. To continue one in a later conversation, ask the AI for it: it finds it with list_saved_diagrams and reopens it with start_session.
Write them in ~/.next-ai-drawio/instructions.md, for example "Always use a minimal style". They are added to the drawing guide on every call, so edits apply without a restart. The first 5000 characters are used.
| Tool | What it does |
|---|---|
start_session | Open the preview and return the drawing guide; session_id continues a saved diagram |
create_new_diagram | Draw a new diagram from mxCell XML |
edit_diagram | Add, update or delete cells by id, all or nothing |
get_diagram | The current XML, including your edits in the browser |
get_selection | The shapes you selected in the preview |
screenshot_diagram | A PNG of a page, for the AI to check |
load_diagram, export_diagram | Open a .drawio or .drawio.svg file; save .drawio, .png, .svg or .drawio.svg |
restore_version | Go back to an earlier version; a redo stays possible |
list_saved_diagrams | Diagrams saved by earlier sessions, newest first |
get_drawing_guide, get_shape_library | The drawing rules again; the icon styles of a library such as aws4 |
list_pages, add_page, rename_page, delete_page | Pages (tabs) |
Environment variables, set in the client's env for the server:
| Variable | Default | What it does |
|---|---|---|
PORT | 6002 | Preview port; when it is taken, the next free one up to 6020 is used |
DRAWIO_DATA_DIR | ~/.next-ai-drawio | Folder for saved diagrams and instructions.md; off turns saving off |
DRAWIO_AUTO_SCREENSHOT | unset | true attaches a screenshot to every create and edit result (2 to 10 s per call) |
DRAWIO_BASE_URL | the bundled draw.io | Use another draw.io, such as a self-hosted one (see below) |
DRAWIO_LANG | unset | Fix the editor and preview language: en, zh, zh-tw, ja, de and so on |
DRAWIO_UI | unset | Fix the draw.io theme: kennedy, atlas, dark, min, sketch or simple |
DRAWIO_DARK | auto | 1 starts dark, 0 starts light, auto follows the system |
BROWSER | unset | none does not open the preview by itself; start_session still returns the URL |
DRAWIO_ALLOW_EMBED | unset | true lets pages on this machine (localhost, 127.0.0.1) show the preview in a frame, such as DeepSeek Harness's sidebar browser |
DRAWIO_PREVIEW_URL | unset | Explicit trusted preview origin behind a private HTTPS reverse proxy (see below) |
DRAWIO_PREVIEW_UI | shell | classic opens the previous preview page, without outlines, Ctrl+Z or get_selection |
DEBUG | unset | true logs debug messages to stderr |
Set DRAWIO_PREVIEW_URL=https://diagram.example.net in the MCP server's environment. start_session returns that origin with the session's preview path and query. The server still listens only on 127.0.0.1; configure a private or authenticated HTTPS reverse proxy to its actual PORT, preserving the external Host and browser Origin headers. Forward the whole origin, including /shell/, /drawio/ and /api/, without a path prefix. If the chosen port is occupied, the server may choose another port, so check the listener before configuring the proxy.
Only this exact additional Host and matching Origin are trusted. Forwarded headers are not used to establish trust; the default localhost checks and API token remain. The value must be a canonical HTTPS origin, optionally ending in /, without credentials, a path, query or fragment. HTTP is accepted only for localhost or 127.0.0.1. Invalid values fail startup rather than silently falling back.
The hostname is not authentication. Anyone who can reach the preview can read its embedded API token and edit diagrams. Restrict proxy access to trusted users with network policy or authentication. Do not expose this listener publicly. DRAWIO_ALLOW_EMBED is separate and does not permit arbitrary remote framing. This setting changes only the browser preview, not the stdio MCP transport or DRAWIO_BASE_URL (the draw.io editor).
docker run -d -p 8080:8080 jgraph/drawio
Then set DRAWIO_BASE_URL=http://localhost:8080. The preview cannot reach into a draw.io from another origin, so the AI's changes are not outlined, Ctrl+Z does not take them back (use the version cards) and get_selection does not work. The bundled copy leaves out a few features that load code on demand, such as the org chart layout. It also has no image proxy, so exported images leave out pictures inserted by their web address; see Offline deployment.
start_session first.start_session returned; its ?mcp= part connects the page to the session.The server talks to the agent over stdio and runs an HTTP server on 127.0.0.1 that serves the preview page and the bundled draw.io; the page polls it for changes. Every /api request needs a token that only the previe
冒頭だけを表示しています。続きはリポジトリで読めます