Previews
The 'figma_prototype' prompt turns Figma designs, screenshots, or layout specs into high-fidelity live web prototypes that are deployed as previews.
Uses Google Account sign-in to authenticate the MCP server; runs a browser-based Google login flow (or accepts a copied Google session token) to store credentials locally and authorize tool calls against the user's preview projects.
Prototype generation pulls in Google Fonts to style the generated live previews.
Prototype generation uses Lucide icons when building high-fidelity preview UIs.
Prototype generation sources Unsplash images to fill in imagery in generated previews.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Universal Model Context Protocol (MCP) Setup for Previews
Previews provides a universal Model Context Protocol (MCP) server supporting:
Local Stdio Transport: Standard stdio subprocess bridge (
npx preview-mcp) for all AI coding environments, IDEs, and CLI tools.Remote Transports: Direct SSE (
/mcp/sse) and HTTP JSON-RPC (/mcp) hosted on Cloudflare Workers edge for remote agents, cloud runtimes, and webhook integrations.
Authentication is powered entirely by your Google Account, reusing the existing session flow without custom token tables or passwords.
1. Zero-Friction Desktop Setup (Claude Desktop, Cursor, Windsurf)
To configure your desktop AI apps and authenticate with Google in one single step, run:
npx preview-mcp setupThis auto-detects installed desktop apps (such as Claude Desktop and Cursor), writes or updates their MCP configurations safely, and launches the browser to sign in with your Google Account.
To target a specific app:
npx preview-mcp setup claude # Configure Claude Desktop
npx preview-mcp setup cursor # Configure Cursor
npx preview-mcp setup all # Configure all detected clientsRelated MCP server: Gemini-Cloud-Agent-MCP
2. Quick Authentication & Re-authentication (Google Login)
Run this command anytime to sign in or re-authenticate:
npx preview-mcp login(Or alias npx preview-mcp reauthenticate)
This opens your browser to sign in with Google. Once verified, credentials are automatically saved to ~/.preview/config.json.
Alternatively, if you're already logged into the Previews web dashboard, click "MCP / AI Agents" in the top navigation bar to copy your Google session token directly.
3. Manual Agent & IDE Configurations
All tools support the standard MCP JSON configuration format.
Antigravity / Gemini Code Assist
Add to your project's .gemini/settings.json or workspace MCP configuration:
{
"mcpServers": {
"preview": {
"command": "npx",
"args": ["-y", "preview-mcp"],
"env": {
"PREVIEWS_BASE_URL": "https://previews.kartikarora.me"
}
}
}
}Or connect directly to the remote SSE endpoint without a local Node.js process:
{
"mcpServers": {
"preview": {
"url": "https://previews.kartikarora.me/mcp",
"headers": {
"Authorization": "Bearer YOUR_GOOGLE_SESSION_TOKEN"
}
}
}
}Cursor (.cursor/mcp.json or Settings → MCP)
{
"mcpServers": {
"preview": {
"command": "npx",
"args": ["-y", "preview-mcp"],
"env": {
"PREVIEWS_BASE_URL": "https://previews.kartikarora.me"
}
}
}
}OpenAI Codex / ChatGPT Desktop
Add to your client configuration:
{
"mcpServers": {
"preview": {
"command": "npx",
"args": ["-y", "preview-mcp"],
"env": {
"PREVIEWS_BASE_URL": "https://previews.kartikarora.me"
}
}
}
}Windsurf (~/.codeium/windsurf/mcp_config.json)
{
"mcpServers": {
"preview": {
"command": "npx",
"args": ["-y", "preview-mcp"],
"env": {
"PREVIEWS_BASE_URL": "https://previews.kartikarora.me"
}
}
}
}Claude Desktop (claude_desktop_config.json)
Run npx preview-mcp setup to automatically configure Claude Desktop.
Or configure manually in:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"preview": {
"command": "npx",
"args": ["-y", "preview-mcp"],
"env": {
"PREVIEWS_BASE_URL": "https://previews.kartikarora.me"
}
}
}
}Claude Plugin (Claude Code & Claude Desktop)
Install Previews as a native Claude plugin directly from GitHub:
claude plugin add kartikarora/preview-mcp(Or clone https://github.com/kartikarora/preview-mcp into your Claude plugins directory)
Claude Code (.mcp.json or CLI)
Claude Code supports both standard HTTP transport with native Authenticate / Re-authenticate prompts, and local stdio:
# Direct HTTP transport with OAuth discovery:
claude mcp add --transport http preview https://previews.kartikarora.me/mcp
# Or stdio CLI transport:
claude mcp add preview -- npx -y preview-mcpInside your Claude Code session, type /mcp and select Authenticate or Re-authenticate to sign in directly with Google in your browser.
Zed Editor (~/.config/zed/settings.json)
{
"experimental.features": {
"model_context_protocol": true
},
"context_servers": {
"preview": {
"command": {
"path": "npx",
"args": ["-y", "preview-mcp"]
}
}
}
}3. Remote Cloud Agents (Direct Network / SSE)
For automated cloud agents (Antigravity, Gemini, OpenAI Codex, LangChain, LlamaIndex, Anthropic SDK, or custom scripts), no Node.js process is required. Connect directly over HTTP:
SSE Endpoint:
https://previews.kartikarora.me/mcpHTTP POST Endpoint:
https://previews.kartikarora.me/mcpHeader:
Authorization: Bearer <GOOGLE_SESSION_TOKEN>(Or query parameter
?token=<GOOGLE_SESSION_TOKEN>on SSE connection)
4. Available MCP Tools
Tool | Description |
| Check status or get instructions to authenticate/re-authenticate with Google. |
| Deploy v1 preview. Autonomously deployed when building web UI; returns live URL. |
| Deploy new version (v2, v3, etc.) on the same URL for rapid voice iteration. |
| Get plain-text unified diff between any two versions (e.g. |
| List active preview projects owned by the authenticated Google user. |
| Inspect project details, status, files, and versions. |
| Set, update, or remove password protection. |
| Delete preview project and clean up R2 storage. |
5. Prototyping & Voice Workflow Prompts
Previews exposes MCP Prompts for zero-friction prototyping:
Prompt | Description |
| Transforms Figma designs, screenshots, or layout specs into high-fidelity live web prototypes with Google Fonts, Lucide icons, and Unsplash images. |
| Applies conversational voice feedback ("yapping into the mic") to an existing preview project without changing its URL. |
This server cannot be deployed
Maintenance
Related MCP Connectors
Deploy AI-generated HTML/CSS/JS to instant public HTTPS URLs from any MCP-compatible agent.
Hosted MCP for creating, checking, deploying, and hosting static sites for AI agents.
Publish websites with a small backend (KV, SQLite, files). MCP for AI agents.
Create, edit, preview, and deploy full-stack web apps to a live URL from any MCP client.
Related MCP Servers
- AlicenseNot gradedqualityAmaintenanceEnables AI clients to securely operate isolated coding workspaces with file, command, Git, and deployment tools via authenticated remote MCP.96MIT
- FlicenseNot gradedqualityCmaintenanceEnables AI agents to operate a persistent Linux sandbox in the cloud, running commands, managing files, using Git, and publishing artifacts through a Streamable HTTP MCP endpoint.-
- FlicenseNot gradedqualityAmaintenanceEnables web-based AI chat clients to securely operate a local machine through one OAuth-gated MCP endpoint, exposing governed tools for file read/write/edit, whitelisted shell commands, search, Git, SQLite, browser automation, DevTools, background tasks, localhost fetches, clipboard, notifications, ports, and Postman. It lets users build and edit projects, inspect databases and local APIs, drive browser workflows, and manage long-running jobs from a browser or mobile device without granting unrestricted shell access.-
- AlicenseNot gradedqualityAmaintenanceEnables web AI clients and local IDEs to securely operate a local machine through an OAuth-gated MCP endpoint, with governed tools for files, shell, search, Git, SQLite, browser automation, DevTools, background tasks, localhost services, clipboard, notifications, ports, Postman, and AIObox windows.MIT