
idmly: HTML to InDesign (IDML)
io.github.KellyKazi3v0.1.3Updated Oct 2, 2026
Convert a self-contained HTML design into an editable Adobe InDesign (.idml) file. 2 pages free.
Overview
Converts a self-contained HTML design into an editable Adobe InDesign (.idml) file, with the first two pages free.
- What it does
- Exposes the idmly engine as an MCP server so an agent can hand a finished HTML design to InDesign. The convert_to_indesign tool accepts exactly one of html (full document string), path (a local .html file), or url (a public https link), plus optional out_dir, name and platform arguments. It writes an .idml file and returns the path, pages converted, required fonts and a geometry check; designs with images come back as a folder with a Links/ directory. A second tool, idmly_status, reports whether the engine is reachable and whether a license key is configured.
- When to use it
- Useful when a design is authored as fixed-size HTML pages and needs to become an editable InDesign document, for example turning slide or page layouts into .idml for a designer to keep editing. It fits agents already used from Claude Code, Cursor, Codex, Windsurf or Claude Desktop that produce HTML output.
- Requirements
- Local process run with npx; Node 20 or newer. No account is needed for the free trial. A paid license key is supplied as the IDMLY_LICENSE_KEY environment variable. Optional variables: IDMLY_OUT_DIR and IDMLY_ENGINE_URL. A hosted Streamable HTTP endpoint is also offered as an alternative to the local process.
Installation
In SourceWeft
- Open idmly: HTML to InDesign (IDML) in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
idmly-mcp
Convert a self-contained HTML design into an editable Adobe InDesign file (.idml) from the AI agent you already use. This is the idmly engine exposed as a Model Context Protocol server, so Claude Code, Cursor, Codex, Windsurf or Claude Desktop can hand a finished design straight to InDesign.
The first two pages of any design convert free, no key needed. A $49 lifetime license unlocks unlimited full-document conversions and covers both the website and this tool.
Install
Node 20 or newer. The server runs with npx, nothing to clone. Start without a key and the free trial just works.
Claude Code
Cursor, Windsurf, Claude Desktop (mcp.json / claude_desktop_config.json)
Codex CLI (~/.codex/config.toml)
With a license, add the key from your purchase email as an environment variable:
Tools
convert_to_indesign
Give it exactly one of:
Optional: out_dir (where to write; defaults to the source file's folder, or the current directory), name (output base name), platform (mac or win, which InDesign will open the file; picks glyph-fallback fonts, defaults to this machine).
It writes <name>.idml and returns the path, pages converted, the fonts InDesign needs active, and a geometry check. A design with images comes back as a folder holding the .idml and a Links/ directory; keep them together and InDesign finds every image. Trial output is named <name>-trial.idml.
idmly_status
Reports whether the engine is reachable and whether a license key is configured (presence only; the key is validated on the first conversion).
Writing HTML that converts well
- Each page is a fixed-size block with class
page(orslide). A two-page reader spread is classspread. Typical sizes: 816×1056px Letter, 794×1123px A4, 1920×1080px slide, withoverflow: hidden. A single fixed-width canvas with no markers converts as one page; a fluidwidth: 100%page has no intrinsic size. - Keep the file self-contained: inline CSS and JS, fonts from Google Fonts or embedded, images as data URIs or absolute URLs. A stylesheet or image sitting next to the file is not uploaded.
- Draw charts as inline SVG or HTML rather than raster images, so they stay editable.
- Avoid scripts that never settle (a MutationObserver or resize handler that re-triggers itself). The engine renders the page once, measures it, and rebuilds it as InDesign frames.
Text becomes editable text frames with paragraph styles, tables stay tables, SVG and CSS shapes become vector objects.
Text a designer can keep editing
How the text is marked up decides how many frames it lands in and what the paragraph styles carry.
- Consecutive paragraphs inside one box become one text frame, one paragraph each. Space them with
margin-topormargin-bottom; it arrives as Space Before or Space After on the paragraph that carries the margin. An empty spacer paragraph (<p> </p>) keeps the frame whole too. padding-leftis the left indent andtext-indentthe first-line indent, sopadding-left: 46pt; text-indent: -46ptis a hanging indent.- A real tab character (inside
white-space: preorpre-wrap) gets tab stops on the CSS grid: settab-sizeas a length (tab-size: 46pt) to put the stop where you want it. - A two-column list (contents, prices, credits) converts best as a
<table>: it becomes a native InDesign table with a paragraph style per cell. - Paragraph styles are named from the tag and the element's first class (
<p class="caption">gives "Body · caption"). To name one outright, adddata-idml-style="Cover Dates". - Boxes that hold one continuous text can be linked: give each the same
data-idml-thread="cv"and they convert as one threaded story, frame to frame, in document order (ordata-idml-thread-order="1","2", ...). Every frame but the last is fixed at the size of its text, so an added line pushes text on to the next frame. If a box starts mid-paragraph, adddata-idml-thread-continuesand its first paragraph is joined to the last one of the box before. InDesign recomposes a threaded story, so a line can move across a frame boundary compared with the HTML. - An inline
display: inline-blockelement inside a paragraph is a box of its own and becomes its own frame. Use a plain<span>for a run that only changes font or colour.
When it fails
Large designs can take a couple of minutes to render. Some clients cut tool calls at 60 seconds by default; raise your client's per-tool timeout (for example MCP_TOOL_TIMEOUT in Claude Code) for big documents.
Environment
The key is activated on first use. The activation id is kept in ~/.idmly/instances.json under a hash of the key; the key itself is never written to disk by this tool. Each machine that runs the server uses one activation from the license's allowance.
Hosted endpoint
If you would rather not run a local process, the engine also speaks MCP over Streamable HTTP:
Because a remote tool cannot write to your disk, that endpoint returns a one-time download link instead of a file path: the file is deleted as soon as it is fetched, or after ten minutes unfetched. The same endpoint works with the OpenAI Responses API mcp tool and the Agents SDK.
Plain REST is POST /convert with a multipart file (or url), plus license_key and instance_id. The first licensed response carries an X-Idmly-Instance header; send that value back as instance_id on every later call, or each call activates a new device against the license. The response is the .idml itself, or application/zip (containing converted.idml and Links/) when the design has images.
Privacy
Uploaded designs are deleted from the engine as soon as the converted file has been returned. On the hosted MCP endpoint the converted file waits behind a one-time, unguessable link for up to ten minutes so the agent can fetch it, then it is deleted. No accounts. The engine keeps a first-party usage ledger (counts, outcome, country), never your file or your key.
Development
The published package has no runtime dependencies: npm run build bundles the
MCP SDK and zod into dist/index.js, so npx users get exactly the file the
tests ran against. Dependency updates arrive as a weekly Dependabot pull request;
merging it publishes a new patch version from GitHub Actions with provenance.
License
MIT for this client. The idmly engine is a hosted service, see idmly.com/legal.
Source: README.md at commit cc4351f
Tools
0Version history
1- v0.1.3LatestOct 2, 2026


