
Show HN: Imagor MCP – agent-written image layouts that compile to one URL
An MCP server and a skill that add a template layer to
以下正文同步自 Hacker News 最新,版权归原站所有,已转换为易读排版。
An MCP server and a skill that add a template layer to imagor.
An agent writes a layout: OG cards, product grids, quotes, testimonials. It compiles to one imagor URL, rendered by the imagor you already run.
docker run --rm -p 8000:8000 shumc/imagor -imagor-unsafe
Leave it running, and use a second terminal for the rest.
Unsafe mode is for trying things out. Production runs on IMAGOR_SECRET. See imagor's security docs.
brew trust cshum/tap && brew install imagor-mcp
- Point a client at it.
{ "mcpServers": { "imagor": { "command": "imagor-mcp", "env": { "IMAGOR_UNSAFE": "1", "IMAGOR_BASE_URL": "http://localhost:8000" } } } }
Those two settings have to match what you started in step 1: IMAGOR_UNSAFE puts this server in the same mode, and IMAGOR_BASE_URL is where imagor is.
VS Code keys its servers under servers and Codex reads TOML, so the block above fits neither. Every client's config file is in Setup.
- Ask it for something. See the recipes — each one carries a prompt to paste, or describe the image you want. The agent composes through the tools: it writes the layout, renders it, looks at the result, and hands you back the url. Neither of you needs imagor's path syntax: the tools build the path, and refuse one that cannot work.
That is the whole install. It is also in the official MCP Registry as io.github.cshum/imagor-mcp, which some clients install by name, and as ghcr.io/cshum/imagor-mcp in a container, which needs a different base URL, in Setup. Windows binaries are on the releases page.
Before anything is public, read Security: what this server is trusted with, and what it refuses.
Setup — every setting, the config file each client reads, and what to do before it is public.
Reference — every tool the server serves, the layout format, and the skill.
Cookbook — the ready-made layouts, and the url each one resolves to.
Contributing — building, testing, and the CLI.
Licence
MIT
正文由 探How 从来源站点 RSS 同步,内容未经改写;遇到排版缺失或需要图片、视频时请以原文为准。