# VisualSpec [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/utkarshx27/visualspec  
**GitHub Stars:** 0  
**npm Downloads (last month):** 172  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/visualspec

## Description
Structured, constraint-aware visual generation and deterministic layout for AI agents

## Tools
Capabilities this server exposes over MCP:

- **visual_brief_to_spec** — Convert natural language requests into valid VisualSpec YAML.
- **visual_validate_spec** — Schema validation for specs.
- **visual_render** — Deterministic layout & typography rendering (zero API key).
- **visual_generate** — Full image model adapter + deterministic text overlay pipeline.
- **visual_check_qa** — Inspect safe margins, line counts, dimensions, and invariants.
- **visual_repair** — Automated diagnosis and localized typography/layout repair.
- **visual_list_resources** — List supported platform packs and templates.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "visualspec": {
    "command": "npx",
    "args": ["-y","@utkarshx27/visualspec"]
  }
}
```

## Documentation

## What the VisualSpec MCP server does

VisualSpec MCP server provides an MCP interface for creating, checking, rendering, and repairing structured visual specifications. A brief can be converted into VisualSpec YAML, which acts as the machine-readable description of the image. The specification can include visual content, exact text, layout rules, platform dimensions, and constraint information.

The project separates image generation from layout-sensitive composition. Image models handle elements such as subjects, backgrounds, lighting, and textures. A local SVG-based rendering and compositing pipeline handles typography, headlines, subtitles, badges, logos, metrics, and related layout elements. This separation is intended to prevent common image-model failures such as misspelled copy, truncated text, and ignored margins.

The server supports platform packs for Instagram, LinkedIn, and generic social formats. Available formats include square, portrait, story, banner, and 16:9 variants where defined by the platform pack. Template packs cover product launches, quote cards, and stat cards.

## How it works

The workflow starts with a user brief or an existing YAML specification. VisualSpec resolves platform and template rules, then sends the resulting generation request through an image-model adapter when generation is requested. Deterministic layout and typography are composed separately, and the resulting assets can be checked against the original constraints.

The VisualSpec MCP server exposes this workflow as individual tools. A client can first create a spec, validate its schema, list available resources, and render a local result. A full generation run combines the model output with deterministic text overlays. Quality checks inspect dimensions, safe margins, line counts, and other declared invariants. If a check fails, the repair tool diagnoses the issue and proposes a localized typography or layout correction rather than requiring the complete scene to be regenerated.

## Tools and capabilities

- `visual_brief_to_spec`: Converts natural-language requests into VisualSpec YAML.
- `visual_validate_spec`: Checks a specification against the VisualSpec schema.
- `visual_render`: Produces deterministic layout and typography output without an API key.
- `visual_generate`: Runs the image-model adapter and deterministic text-overlay pipeline.
- `visual_check_qa`: Reviews margins, dimensions, line counts, and invariants.
- `visual_repair`: Creates automated, localized repairs for typography and layout issues.
- `visual_list_resources`: Lists supported platform packs and templates.

A generation output can include the source and resolved specifications, the model request, a QA report, metadata, and the final PNG. This provides artifacts for reviewing how a result was produced.

## Setup and configuration

Run the MCP server with `npx @utkarshx27/visualspec mcp`, or install the package globally and use `visual mcp`. The server communicates over stdio. The README identifies Cursor, Claude Desktop, Claude Code, Gemini CLI, and Antigravity IDE as client environments; Antigravity is not represented in the directory's compatible-client list.

A project can be initialized with `npx @utkarshx27/visualspec init`. The package can also be built from source after cloning the repository, installing dependencies, and running the build command. Local deterministic rendering does not require an API key. Image generation may depend on the selected model adapter, while the supplied mock provider supports the documented example pipeline.

## Limitations and notes

Supported platforms and templates are limited to the packs listed by the project. Additional platforms, templates, image-model adapters, brand packs, and a visual web studio are identified as roadmap work rather than current capabilities.

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

