PreviewsMCP

obj-p/PreviewsMCP
★ 5 stars Swift 💻 Code/Dev Tools Updated today
Render and interact with SwiftUI previews outside of Xcode. CLI and MCP server for AI-driven UI development.
View on GitHub →

Quick Install

Copy the config for your editor. Some servers may need additional setup — check the README.

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "previewsmcp": {
      "command": "npx",
      "args": [
        "-y",
        "obj-p/PreviewsMCP"
      ]
    }
  }
}

README Excerpt

<p align="center"> <img src="assets/icon.svg" width="128" height="128" alt="PreviewsMCP icon"> </p> <h1 align="center">PreviewsMCP</h1> <p align="center"> A standalone SwiftUI preview host for humans and AI agents.<br> Run, snapshot, and interact with <code>#Preview</code> blocks from the command line or over <a href="https://modelcontextprotocol.io/">MCP</a> — no Xcode process required.

Topics

ios-simulatormcpswiftswiftuixcode