# Polyxd

Lets models build Polyxd UI documents, validates their structure, and renders live screens inside MCP-compatible clients.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 5
- Author: visualfart
- License: Apache-2.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/visualfart/polyxd/tree/HEAD/packages/mcp
- Updated: 2026-10-10
- HTML: https://affpapa.org/en/nevibecode/mcp/polyxd

## What it does

The server equips the host model with the Polyxd component specification through `polyxd_guide`. When the model writes screen layouts, `polyxd_validate` detects schema mistakes and returns JSON Pointer paths with actionable hints. Audits run via `polyxd_verify` without pulling in Playwright binaries.

For visual output, `polyxd_show` hands the document to a sandboxed iframe using the MCP Apps standard. The default design pack is `material3`, while `polyxd_packs` lets users inspect other supported themes. When you click a button or submit an action in the rendered screen, the frame dispatches a `ui/message` back to the model with form inputs and action metadata.

If your client lacks MCP Apps support, the server outputs a plain text summary instead of an interactive view. Any validation error blocks the screen from displaying until resolved.

## Requirements
- Needs: Node.js (commands run via npx)
- Remote server: `https://mcp.polyxd.com/mcp`

## Install

### Claude Code (native platform)

1. **Platform CLI: remote server**
```bash
claude mcp add --transport http mcp https://mcp.polyxd.com/mcp
```

2. **Platform CLI**
```bash
claude mcp add mcp -- npx -y @polyxd/mcp
```

### Codex

1. **Platform CLI: remote server**
```bash
codex mcp add mcp --url https://mcp.polyxd.com/mcp
```

2. **Platform CLI**
```bash
codex mcp add mcp -- npx -y @polyxd/mcp
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "mcp": {
            "url": "https://mcp.polyxd.com/mcp"
        }
    }
}
```
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "mcp": {
            "command": "npx",
            "args": [
                "-y",
                "@polyxd/mcp"
            ]
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "mcp": {
            "type": "http",
            "url": "https://mcp.polyxd.com/mcp"
        }
    }
}
```
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "mcp": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "@polyxd/mcp"
            ]
        }
    }
}
```

### Gemini CLI

1. **Platform CLI: remote server**
```bash
gemini mcp add -t http mcp https://mcp.polyxd.com/mcp
```

2. **Platform CLI**
```bash
gemini mcp add mcp npx -y @polyxd/mcp
```

## When to use it
- prototype interactive interfaces directly inside the agent chat
- validate Polyxd JSON layout against the component schema
- render screens across design system packs like material3
- pass button clicks and form inputs back to the model context

## Example prompts
- Read the Polyxd guide and build a user profile settings screen
- Validate this screen layout and fix pointer warnings
- Render the document using polyxd_show with the dark theme

## Similar
- [Front-End Checklist](https://affpapa.org/en/nevibecode/mcp/front-end-checklist.md) — MCP server · ★ 74569
- [tldraw](https://affpapa.org/en/nevibecode/mcp/tldraw.md) — MCP server · ★ 51104
- [Figma-Context-MCP](https://affpapa.org/en/nevibecode/mcp/figma-context-mcp.md) — MCP server · ★ 16073
- [mcp-server-chart](https://affpapa.org/en/nevibecode/mcp/mcp-server-chart.md) — MCP server · ★ 4406
- [Dembrandt](https://affpapa.org/en/nevibecode/mcp/dembrandt.md) — MCP server · ★ 3851
- [RevoGrid DataGrid MCP Pro](https://affpapa.org/en/nevibecode/mcp/revogrid-datagrid-mcp-pro.md) — MCP server · ★ 3451

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
