Figma Context MCP
Give your coding agent access to your Figma data. Implement designs in any framework in one-shot.
作者提供的说明(英文原文)
Generate, edit and make matching sets of images with the Codex CLI or the OpenAI Images API
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
IMAGEGEN_PROVIDER, OPENAI_API_KEY, IMAGEGEN_OUT_DIR标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"codex-openai-image": {
"command": "npx",
"args": [
"-y",
"codex-openai-image-mcp"
],
"env": {
"IMAGEGEN_PROVIDER": "your-value",
"OPENAI_API_KEY": "your-value",
"IMAGEGEN_OUT_DIR": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add codex-openai-image --env IMAGEGEN_PROVIDER=your-value --env OPENAI_API_KEY=your-value --env IMAGEGEN_OUT_DIR=your-value -- npx -y codex-openai-image-mcp运行前请先填写空着的值。
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"codex-openai-image": {
"command": "npx",
"args": [
"-y",
"codex-openai-image-mcp"
],
"env": {
"IMAGEGEN_PROVIDER": "your-value",
"OPENAI_API_KEY": "your-value",
"IMAGEGEN_OUT_DIR": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"codex-openai-image": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"codex-openai-image-mcp"
],
"env": {
"IMAGEGEN_PROVIDER": "your-value",
"OPENAI_API_KEY": "your-value",
"IMAGEGEN_OUT_DIR": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
IMAGEGEN_OUT_DIR env这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日
注册名称已通过 GitHub 账户 meet30997 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
你需要填写:IMAGEGEN_PROVIDER, OPENAI_API_KEY
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(0.1.2)于11天前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
同一分类中有:Figma Context MCP, Claude Real Video, Figma MCP Server
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况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 (and any other MCP client) generate images, edit them, and make matching sets, then look at the result and keep going.
It works with two image backends:
OPENAI_API_KEY, for people without Codex.Not affiliated with or endorsed by OpenAI. "OpenAI" and "Codex" are trademarks of OpenAI.
| Edit an image: *"make it a night scene, keep the car and composition"* |
|---|
| A matching set in one call: *"cute flat stickers: coffee, cactus, moon"* |
|---|
Both examples are real, unretouched output from the Codex backend.
generate_set makes several different images that share one style, each saved under its own name..json sidecar with the prompt and settings next to each image.You need Node.js 20.3 or newer, plus one of:
codex login) with a ChatGPT plan that includes Codex image generation, or# Codex backend (your ChatGPT plan)
claude mcp add images -e IMAGEGEN_PROVIDER=codex-cli -- npx -y codex-openai-image-mcp
claude mcp add images -e IMAGEGEN_PROVIDER=openai-api -e OPENAI_API_KEY=sk-... -- npx -y codex-openai-image-mcp
Add this to the client's MCP config (for Claude Desktop, claude_desktop_config.json):
{
"mcpServers": { "images": { "command": "npx", "args": ["-y", "codex-openai-image-mcp"], "env": { "IMAGEGEN_PROVIDER": "codex-cli" } } } }
For the API backend use "IMAGEGEN_PROVIDER": "openai-api" and add "OPENAI_API_KEY".
Then just ask:
Images are saved in ./generated-images in the folder the client was started from.
generate_image| Input | Default | Notes |
|---|---|---|
prompt | required | |
size | 1024x1024 | Any WxH from 16 to 4096 px per side |
count | 1 | 1–4 variants, saved as -v1, -v2, … |
transparent | false | Asks for a transparent background; the result says if the output has none |
references | [] | Up to 4 images whose style to match |
out_name | slug of the prompt | Path inside the output folder, without extension, e.g. icons/rocket |
edit_image| Input | Default | Notes |
|---|---|---|
image | required | The image to change. It is never modified |
prompt | required | The change, e.g. "remove the person on the left", "make it watercolour" |
size | the input's size | WxH |
mask | none | PNG whose transparent areas mark where to edit (OpenAI API only) |
count | 1 | 1–4 variants |
transparent | false | e.g. for cutouts |
references | [] | Up to 3 supporting images: something to insert, or a style to apply |
out_name | -edited |
generate_set| Input | Default | Notes |
|---|---|---|
style | required | What every image shares: medium, palette, rendering, background |
items | required | 1–8 { name, prompt }; each is saved as / .png |
size | 1024x1024 | Same for every image |
transparent | false | |
references | [] | Up to 4 images whose style the whole set matches |
folder | slug of style | Folder inside the output folder |
All tools crop and resize the result to exactly the size you ask for, and return the saved paths with a 512 px preview of each image.
codex-cli | openai-api | mock | |
|---|---|---|---|
| Needs | Codex CLI, signed in | OPENAI_API_KEY | nothing |
| Cost | your ChatGPT plan's usage | per image | free |
| Speed | ~30–60 s per image | depends on model and size | instant |
| References, edits, transparency | yes | yes | edits only |
| Edit masks | no | yes | no |
| Sets | one Codex session for the whole set | one image at a time, first image used as a style reference | one at a time |
mock draws placeholder images, for trying the server out and for tests.
Codex backend. Each call runs codex exec --json --skip-git-repo-check --sandbox read-only --cd [--image= …] -- - with a prompt that asks Codex to call its built-in image_gen tool and nothing else. The server reads the session id from Codex's JSON events and collects the images from $CODEX_HOME/generated_images/ /. Codex never gets write access or sees your project beyond the images you pass it. Cancelling the request, or hitting the timeout, stops Codex. Check OpenAI's terms for scripted use of the Codex CLI with your plan.
OpenAI backend. Uses the official openai SDK. The default model is gpt-image-2.5-sunburst; set IMAGEGEN_OPENAI_MODEL=gpt-image-2.5-flare for faster results. Sizes are rounded to ones the API accepts, then resized to yours. This backend is covered by automated tests against a mocked client; it has not yet had a full live test.
| Variable | Default |
|---|---|
IMAGEGEN_PROVIDER | mock; set codex-cli or openai-api |
OPENAI_API_KEY | required for openai-api |
IMAGEGEN_OPENAI_MODEL | gpt-image-2.5-sunburst |
IMAGEGEN_CODEX_BIN | codex |
IMAGEGEN_OUT_DIR | generated-images, relative to the working folder |
IMAGEGEN_READ_ROOT | the working folder; input images must be inside it |
IMAGEGEN_TIMEOUT_SEC | 300, per image asked for |
IMAGEGEN_MAX_PER_CALL | 8 images |
IMAGEGEN_PREVIEW_SIZE | 512 px |
IMAGEGEN_OUT_DIR. Absolute paths, .. and symlinks that lead outside are rejected.IMAGEGEN_READ_ROOT.-2, -3, … instead. .json sidecar with the prompt, backend, model, size, inputs and time.IMAGEGEN_MAX_PER_CALL caps how many images one call can make.Images are AI-generated. You are responsible for how you use them, including platform rules on AI-generated content, and for not imitating real people or brands.
git clone https://github.com/meet30997/codex-openai-image-mcp.git
cd codex-openai-image-mcp npm install npm run build npm test # unit and end-to-end tests; no network or API key needed npm run inspect # try the tools in the MCP Inspector
To run a local build from Claude Code:
claude mcp add images -e IMAGEGEN_PROVIDER=codex-cli -- node /path/to/codex-openai-image-mcp/dist/index.js
The tests run the Codex backend against a stand-in script (test/fixtures/fake-codex.mjs) and the OpenAI backend against a fake client, so they are free and quick. PLAN.md has the design notes and roadmap. Issues and pull requests are welcome.
MIT