# site-prompt

MCP server for Claude Code that extracts website elements and turns them into exact build prompts.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 27 repo stars
- Author: johntony1
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/johntony1/site-prompt
- Updated: 2026-11-06
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/site-prompt

## What it does

The server inspects any live page or selected component to capture precise measurements, colors, typography, and motion details. It works with Node 22+ and a local Chrome browser without external apps.

Interactive pick mode operates inside your browser via remote debugging. Results are saved locally, shown in chat, and copied to the clipboard for agent coding workflows.

## Requirements
- Needs: Node.js (commands run via npx)
- Environment variables: `SITE_PROMPT_WAIT`, `SITE_PROMPT_TELEMETRY` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add --env SITE_PROMPT_WAIT=<SITE_PROMPT_WAIT> --env SITE_PROMPT_TELEMETRY=<SITE_PROMPT_TELEMETRY> --transport stdio site-prompt -- npx -y site-prompt
```
Replace <…> with your own values

### Codex

**Platform CLI**
```bash
codex mcp add site-prompt --env SITE_PROMPT_WAIT=<SITE_PROMPT_WAIT> --env SITE_PROMPT_TELEMETRY=<SITE_PROMPT_TELEMETRY> -- npx -y site-prompt
```
Replace <…> with your own values

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "site-prompt": {
            "command": "npx",
            "args": [
                "-y",
                "site-prompt"
            ],
            "env": {
                "SITE_PROMPT_WAIT": "<SITE_PROMPT_WAIT>",
                "SITE_PROMPT_TELEMETRY": "<SITE_PROMPT_TELEMETRY>"
            }
        }
    }
}
```
Replace <…> with your own values

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "site-prompt": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "site-prompt"
            ],
            "env": {
                "SITE_PROMPT_WAIT": "<SITE_PROMPT_WAIT>",
                "SITE_PROMPT_TELEMETRY": "<SITE_PROMPT_TELEMETRY>"
            }
        }
    }
}
```
Replace <…> with your own values

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add -e SITE_PROMPT_WAIT=<SITE_PROMPT_WAIT> -e SITE_PROMPT_TELEMETRY=<SITE_PROMPT_TELEMETRY> site-prompt npx -y site-prompt
```
Replace <…> with your own values

## When to use it
- inspect website component styles and dimensions
- extract exact build prompts from a live page
- check rebuild accuracy against the original site
- break down interface layers and animations

## Example prompts
- /site-prompt pick https://linear.app
- add this section to my page
- break down this component

## Similar
- [site-reels](https://affpapa.org/en/nevibecode/skills/site-reels.md) — skill · ★ 91 repo stars
- [browser-tools](https://affpapa.org/en/nevibecode/skills/browser-tools.md) — skill · 479 installs
- [site-md](https://affpapa.org/en/nevibecode/skills/site-md.md) — skill · 5200 installs
- [site-studio](https://affpapa.org/en/nevibecode/plugins/site-studio.md) — plugin · ★ 41430 repo stars
- [webmcp](https://affpapa.org/en/nevibecode/skills/webmcp.md) — skill · 564 installs
- [chrome-devtools](https://affpapa.org/en/nevibecode/skills/chrome-devtools.md) — skill · 15258 installs

---
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
