Levni for agents

Give your agent an illustrator.

Levni’s MCP server lets an assistant draw covers, spot illustrations and social images in one hand-inked style. It searches the library, writes a scene, reads the critic’s notes, fixes them, and saves the file. Everything runs on your machine.

Set it up

Claude Code

claude mcp add levni -- npx -y github:BoraGkc/levni mcp

Claude Desktop, Cursor and others

In claude_desktop_config.json, .cursor/mcp.json or your client’s MCP settings:

{
  "mcpServers": {
    "levni": {
      "command": "npx",
      "args": [
        "-y",
        "github:BoraGkc/levni",
        "mcp"
      ]
    }
  }
}

Then ask: Illustrate this article with Levni, show me two options, and fix what the critic reports. Node.js 20 or newer is the only requirement.

What the agent can do

scene_guide
The scene format: canvas, every element type, colours, style packs. The agent reads it once.
list_props
Search the Levni Folio by word, tag (English or Turkish) or shelf. Returns names, variants and what each variant shows.
show_props
A contact sheet of chosen drawings with every variant numbered, so the agent can pick by eye.
render_scene
Draw a scene. Returns the critic’s notes and a 560 px preview; with out, writes the full PNG, WebP or SVG.
critique_scene
Only the critic’s notes, for fast iterations without an image.
A scene an agent wrote: a chart drawn inside an old TV screen on a blue panel
A scene an agent can write in one go: a chart placed inside a TV’s screen slot.

Ghost: images for your drafts

Add your Ghost Admin credentials to the server’s env and three more tools appear. The assistant finds drafts without images, designs a cover and up to one image per section, shows you the plan with previews, and writes only after you say yes.

{
  "mcpServers": {
    "levni": {
      "command": "npx",
      "args": [
        "-y",
        "github:BoraGkc/levni",
        "mcp"
      ],
      "env": {
        "GHOST_ADMIN_API_URL": "https://your-site.com",
        "GHOST_ADMIN_API_KEY": "<id>:<secret>"
      }
    }
  }
}
ghost_drafts
Read-only. Drafts without images, their h2 headings and, for one draft, the full text.
ghost_preview
Dry run. Renders the cover and inline images, shows where each goes, returns a token. Nothing changes.
ghost_apply
Writes, only with the token from a preview of the same plan on the unchanged draft.

Create the key in Ghost under Settings → Integrations → Add custom integration. Try it on a test draft first. Posts written with Ghost’s older mobiledoc editor are not supported.

Keys, cost and privacy

Levni has no server and no account. Drawing is free and local. Ghost keys live in your own MCP config. The optional image judge (CLI only) uses your own OpenRouter key if you choose to set one.

Questions

Do I need an API key for Levni?

No. Levni runs on your own machine through npx: no account, no key, no cost per image. Your assistant writes the scene; Levni draws it locally.

Where do my Ghost keys go?

Into the env block of your MCP client config, on your machine. Levni has no server of its own and never sees them. Without the two variables the Ghost tools do not even appear.

Can the assistant publish a post by mistake?

No. The Ghost tools only edit drafts, never change their status, never send a newsletter, and skip drafts that already have images. Writing needs the token from a preview the user has seen.

Which clients work?

Any MCP client that runs local stdio servers: Claude Code, Claude Desktop, Cursor, Windsurf, Cline and others. Agents without MCP can call the same features through the levni CLI.

Everything Levni can draw · Browse the library · README