An MCP server
your agents draw with.
Connect Claude, Cursor or any MCP client and call clearly_generate_svg / clearly_generate_image. Editable vector or raster art comes back — headless, no browser, billed against your AI pool. The same engine behind the Clearly studio, exposed as two tools.
Every clearly_generate_svg call returns code like this — real, editable paths.
Two tools. One token. No SDK.
The agent finds the tools in its list and calls them like any other. Generation runs server-side; you get editable markup or a hosted URL back — plus the exact cost.
POST https://relay.clearly.sh/mcp
Authorization: Bearer ck_mcp_...
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "clearly_generate_svg",
"arguments": {
"prompt": "a fox in a wool scarf, friendly",
"style": "flat-icon",
"aspectRatio": "1:1"
}
}
}// tool result
{
"ok": true,
"format": "svg",
"svg": "<svg viewBox=\"0 0 512 512\">…editable paths…</svg>",
"key": "u/abc/gen_8f21.svg",
"costUsd": 0.04
}Vector when it must stay editable, raster when it must look photoreal
Pick the tool to match the job. Both are headless, both return a stable key + cost, both take an optional compositionId to drop the result on a canvas.
| Feature | Returns | Best for | Key args |
|---|---|---|---|
| clearly_generate_svg | Editable SVG markup | Icons, logos, stickers, cut files | prompt, style, aspectRatio, width/height |
| clearly_generate_image | Hosted PNG + URL | Product shots, illustration, hero art | prompt, model, aspectRatio, seed, width/height |
Both tools live in the same MCP server at https://relay.clearly.sh/mcp. Omit compositionId to just receive the asset; include it to also place it.
Built for the agents you already run
No new SDK, no rewrite, no flattened output — your agent gains a design tool the moment it connects.
Inside your agent loop
It’s an MCP server, so the tools appear natively in Claude Code, Cursor, Claude Desktop or your own client. The agent calls them mid-task — recall context, generate the asset, keep going — without leaving its loop.
Editable, not flattened
clearly_generate_svg returns real <svg> path code — your agent can post-process, diff, recolor, or hand it to a cutter. Not a PNG screenshot of a vector.
Metered, auditable spend
Every call returns costUsd and debits your AI pool — no separate per-seat fee for agents. Attribute spend per generation, per user, per job.
Agent makes, human refines
Pass a compositionId and the asset lands on a Clearly canvas, where a teammate can drag nodes and restyle paths. The agent drafts; a person finishes.
From one-off icons to standing asset pipelines
Anywhere an agent needs to make a picture instead of describing one.
Design-system icons
Generate a whole icon set in one consistent style — pin style: 'flat-icon' across the fleet so 200 calls all match. Editable SVG drops straight into your component library.
Build-time asset pipelines
Wire generation into CI: an agent reads a manifest and emits the missing illustrations, og-images, or spot icons as part of the build — no designer in the critical path.
Chatbots that return art
A Slack, Discord or support bot that answers with an actual sticker or diagram, not a text description — generate on the fly and post the URL back.
Bulk on-brand catalogs
Spin up thousands of marketplace thumbnails, product badges, or category icons from a spreadsheet of prompts — same style, auditable cost per row.
Print & cut, headless
Generate vector art an agent can route to a cutter (Cricut, StickerMule, Roland) — kiss-cut stickers and decals produced end-to-end without opening an editor.
Creative coding agents
Give a coding agent a drawing primitive: it reasons about a layout, calls the tool, inspects the returned paths, and iterates — a real design loop, not prompt roulette.
Token, point, call
Mint a token
Settings → Developers → Create MCP token. Pick rpc:write (generation needs it). Shown once, revocable, rate-limited.
Point a client
Add the hosted endpoint to your MCP client — nothing to deploy. Claude Code, Cursor and Claude Desktop are one line each.
Call the tools
Your agent now sees clearly_generate_svg / clearly_generate_image in its toolset and generates on demand, billed to your pool.
claude mcp add --transport http clearly https://relay.clearly.sh/mcp \ --header "Authorization: Bearer ck_mcp_..."
Agent generation, answered
01How is this different from a REST image API?+
02Is it really headless — no browser or canvas?+
03What exactly comes back?+
04How do I connect an agent?+
05How is it billed?+
06Can I control the art style?+
07Do the results stay editable?+
08Which clients are supported?+
Part of the Clearly agent stack
Software for agents
The pillar — how agents generate, perceive, and drive a Clearly canvas across MCP, API, and CLI.
MCP docs
The full reference — every tool, scope, and agent-identity option for the hosted server.
REST API
Prefer plain HTTP? The same generation engine behind one REST endpoint, with per-image cost.
Beehaven CLI
Drive generations and your agent cloud from the terminal — the CLI over the same surface.
Give your agent a design tool
Mint an MCP token, point your client at the hosted server, and start generating editable SVG and raster art in your agent loop — metered against your AI pool.