VisualSpec logo

VisualSpec

Creates structured visual specs, deterministic layouts, generated images, and constraint-based QA through MCP tools.

Install VisualSpec

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "visualspec": {
      "command": "npx",
      "args": [
        "-y",
        "@utkarshx27/visualspec"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Claude Code command
claude mcp add --transport stdio visualspec -- npx -y @utkarshx27/visualspec

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

The install command installed and started the server, which then stopped for configuration (such as an API key) that our sandbox does not have — expected for servers that connect to your account.

npx -y @utkarshx27/visualspec

No response to initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

VisualSpec MCP server turns natural-language visual briefs into structured VisualSpec YAML for image generation and deterministic composition. It validates specifications, renders typography and layout without an API key, and can run a full image-model and text-overlay pipeline. Use it when exact copy, platform dimensions, safe margins, and repeatable layout matter more than relying on an image model alone. The native stdio server works with coding assistants including Cursor, Claude Desktop, Claude Code, and Gemini CLI.

Use cases

  • Convert campaign briefs into validated visual specifications
  • Render social graphics with deterministic typography
  • Generate image assets with exact text overlays
  • Check safe margins and layout invariants
  • Repair localized typography or composition failures

Key features

  • Natural-language brief to VisualSpec YAML conversion
  • Schema validation for visual specifications
  • API-key-free deterministic rendering
  • Image generation with deterministic text overlays
  • Constraint-based visual QA
  • Localized typography and layout repair

Tools7

What VisualSpec lets your agent do. Expand a tool for its parameters.

Self-reported~123 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

15/15 checks healthy over the last 67d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 2d ago via OSV.dev · @utkarshx27/visualspec (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

npm downloads172Package downloads in the last 30 days.
Last commit2mo agoMost recent push to the default branch.
Install checkRunsOur sandbox started it; it then asked for an API key or config.
Tools exposed7Callable tools this server registers over MCP.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How VisualSpec works

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.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about VisualSpec

VisualSpec is an MCP server that connects AI coding assistants to structured visual-generation, rendering, and quality-assurance workflows. Its main tools convert briefs to YAML, validate specs, render deterministic layouts, generate images with text overlays, inspect constraints, repair layout issues, and list supported platform packs and templates.

Run `npx @utkarshx27/visualspec mcp` to launch it without a global install. You can also run `npx @utkarshx27/visualspec init`, install the package globally with npm, or build it from the repository after installing dependencies.

Yes, VisualSpec works with Cursor through its stdio MCP server. Launch it with `npx @utkarshx27/visualspec mcp` and configure the resulting local server in Cursor using the project’s MCP setup guidance.

Yes, deterministic rendering works without an API key. The render workflow handles local layout, typography, and background styling; full image generation uses an image-model adapter and may require the configuration needed by that provider.

VisualSpec supports Instagram, LinkedIn, and generic social formats. Its listed templates are Product Launch, Quote Card, and Stat Card, with platform-specific dimensions such as portrait, square, story, banner, and 16:9 formats where available.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewVisualSpec AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/visualspec?style=directory)](https://allmcps.com/mcp/visualspec)
HTML Embed
<a href="https://allmcps.com/mcp/visualspec"><img src="https://allmcps.com/api/badge/visualspec?style=directory" alt="VisualSpec on AllMCPs" /></a>