claude-ai-mcp-demo
MCP server that enables Claude to dynamically rebrand and restock a themeable micro-storefront, including content and look-and-feel control via MCP tools.
README
claude ai mcp demo
Pop-up shop in a box. A themeable micro-storefront that Claude can rebrand and restock end-to-end through MCP — same site, swappable identity. "Make this an artisanal coffee roaster" → palette, fonts, hero, and product list all flip live. Then "actually, make it a vintage record store" → it flips again.
Built to show, at internal demos like Digital AI Sharing, that an MCP server can drive a website's content AND its look-and-feel — not just CRUD a row in a CMS.
What it shows
- Content control — Products collection exposed over the official
@payloadcms/plugin-mcp, plus bulk tools (createManyProducts,updateManyProducts) with per-item transactions and partial success. - Look-and-feel control (planned, see Status) —
SiteSettingsfor theme tokens (palette, typography, brand) andPages/Sectionsfor hero/featured/footer blocks — all writable over MCP. - Safety rails — every MCP write lands as a draft (
forceDraftForMcpWriteshook) so a human can review before publish. MCP identity is a non-adminmcp-agentsrow, not a human admin. - Two connection paths — paste a static API key (Claude Code,
mcp-remote) OR connect via OAuth from Claude.ai web (WorkOS AuthKit as the authorization server).
Status
| Capability | State |
|---|---|
products collection over MCP |
✅ working |
| Bulk create/update tools with draft-on-write | ✅ working |
mcp-agents non-admin identity + per-key tool gating |
✅ working |
| Themeable storefront frontend | 🚧 placeholder page only |
SiteSettings theme tokens |
🚧 not yet |
Pages / Sections block library |
🚧 not yet |
| WorkOS OAuth for Claude.ai web | 🚧 env scaffolded, wiring WIP |
The themeable frontend and the site-config collections are the next chunk of work — that's the headline demo moment.
Setup
docker compose up -d # local Postgres on :5432
pnpm install
cp .env.example .env.local
# fill in PAYLOAD_SECRET — `openssl rand -hex 32`
# (WorkOS vars only needed for the Claude.ai web OAuth path)
pnpm dev
Open http://localhost:3000/admin, create the first admin, then:
- Create an
mcp-agentsrow (admin → MCP Agents). - Create an MCP API key (admin → MCP API Keys) bound to that agent.
- Tick the
createManyProducts/updateManyProductscheckboxes on the API-key row (custom tools are off-by-default). - Connect from an MCP client to
http://localhost:3000/api/mcpwith the API key as a bearer token.
Migrating from the older
mcp-products-demosetup? The DB was renamed (mcp_products_demo→claude_ai_mcp_demo). Rundocker compose down -vto nuke the old volume, thendocker compose up -dfor a fresh DB.
The demo moment (target)
Once the themeable frontend lands, the showcase prompt is something like:
"Rebrand this site as Ember & Oat, a small-batch coffee roaster. Warm earth-tone palette, serif headings, friendlier copy. Replace the products with 5 single-origin beans, prices $18–24, with tasting-note descriptions."
Claude calls a handful of MCP tools (update SiteSettings, replace Sections, bulk-create Products), the dev server picks up the drafts on next reload, the site is a coffee shop. Re-prompt with a different niche → it's something else.
Stack
- Next.js 16 (App Router) + React 19
- Payload CMS 3.85 with Postgres adapter
@payloadcms/plugin-mcp— Streamable HTTP at/api/mcp- WorkOS AuthKit (optional) — OAuth authorization server for Claude.ai web connections
- pnpm + Docker Compose for local Postgres
Layout
app/
(frontend)/ # public site — themeable storefront (WIP)
(payload)/ # admin UI + /api/mcp endpoint
collections/ # Admins, MCPAgents, Products (+ SiteSettings/Pages soon)
lib/
mcp-tools.ts # createManyProducts, updateManyProducts
categories.ts
payload.config.ts # plugin wiring, MCP_ENABLED kill switch
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.