# keyline [Health: Active]

**Category:** 📐 Architecture & Design  
**Repository:** https://github.com/keyline-dev/keyline  
**GitHub Stars:** 6  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/keyline

## Description
Design engine for AI agents: images at every size, no Chrome, 2× fewer tokens

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/keyline-dev/keyline), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
brew install keyline-dev/tap/keyline-mcp
```

2. Install:

```sh
sudo apt install ./keyline-mcp_<version>-1_amd64.deb
```

3. Start the server:

```sh
docker run -i --rm -v keyline:/data ghcr.io/keyline-dev/keyline-mcp
```

4. Install:

```sh
cargo build --release
```

5. Add to Codex:

```sh
codex mcp add keyline -- keyline-mcp
```

6. Add to Claude Code:

```sh
claude mcp add --scope user keyline -- keyline-mcp
```

## Documentation

## What keyline does

keyline gives an AI agent a structured design system for creating and checking visual assets. Rather than asking the agent to manipulate pixels or drive a browser, it keeps each design as typed scene data: layers, layout rules, styles, tokens, components, and target sizes. The agent can describe a design once, then produce variants such as social posts, feed ads, and display banners.

The renderer supports output for still and animated media, including PNG, JPEG, WebP, PDF, animated PNG, GIF, MP4, and WebM. Designs can include text, images, video, icons, geometric shapes, nested frames, and reusable components. Text uses real fonts, including Google Fonts downloaded and cached on first use, the bundled Inter font, and user-supplied font files.

## How it works

A scene starts with a master layout and a list of output sizes. Keyline lays out the scene again for each size using stacks, grids, sizing rules, constraints, safe areas, and per-size or per-aspect overrides. Media-style changes allow a layer to vary for a particular size or aspect class, while components and data-row templates support repeated content.

After an edit, the agent receives changed identifiers, a version, and either an `ok` result or structured problems. Checks report objective defects, advisories, and facts, including measurements that indicate how to correct an issue. This lets the agent fix overflow and other layout problems without inspecting screenshots or reading the full scene after every change.

Rendering uses Skia through a native Rust binary. GPU rendering is the default, with CPU rendering available as a fallback; CPU output is deterministic for repeatable results. The design format uses familiar CSS-style names and values for concepts such as flexbox fields, grid fields, font weight, border radius, and RGBA colors, while its layout behavior is documented separately from browser layout.

## Setup and configuration

keyline is intended for MCP clients and has no graphical user interface. The project points users to keyline.dev for client setup, examples, and benchmark information, and organizes its concepts, scene format, tools, and configuration in separate documentation.

Font handling is part of the rendering setup. Google Fonts can be referenced by family name and are downloaded on first use, then cached in the font index. Inter is included, and additional font files can be added. Icons are addressed by name, with built-in Lucide and Font Awesome Free collections.

## Tools and capabilities

The server exposes six batched tools designed for language-model use. Scene changes can add or update layers, including through operations such as `layer_add` and `layer_update`. Layers include text, images, video, icons, rectangles, ellipses, polygons, paths, lines, frames, spacers, first-fit choices, and component instances.

Layout features cover rows, columns, grids, wrapping, gaps, padding, alignment, justification, flexible growth, minimum and maximum sizes, aspect ratios, placement, scaling, constraints, and common social or advertising size presets. Text supports wrapping and fitting, inline styling, weights, spacing, line-height, case changes, curved text, dot leaders, highlights, outlines, and image, pattern, or gradient fills.

Paint and image operations include gradients, patterns, film grain, strokes, shadows, blur, masks, blend modes, crop and fit behavior, focus points, and image adjustments. Motion supports enter and exit effects, keyframes, GSAP-style easing, random starts, staggered children, and text splitting.

## Limitations and notes

keyline is LLM-first and LLM-only: it has no GUI and is built around agents authoring structured scenes. Its layout system is not intended to reproduce browser layout exactly. The server focuses checks on measurable defects and reports advisories or facts separately, leaving visual judgment to the model. Browser automation dependencies such as headless Chrome, Puppeteer, and Playwright are not part of the rendering approach.

_Full upstream README: https://allmcps.com/mcp/keyline/readme_

