shopify-mcp-webapp
Governed Shopify MCP webapp for OAuth onboarding, Hydra consent, team access, Business Skills, and audited AI workflows.
Next.js webapp for ShopMCP, a governed Shopify MCP platform that connects Claude to Shopify through secure OAuth onboarding, per-user consent, merchant isolation, approval-gated writes, and auditable workflows. Live demo: shopify-mcp-webapp.vercel.app ShopMCP is built for merchants who want AI-assisted Shopify operations without giving an AI client broad, unchecked store access. The webapp handles the human and admin side of the system:
Summary extracted from the README.
ShopMCP Webapp
Next.js webapp for ShopMCP, a governed Shopify MCP platform that connects Claude to Shopify through secure OAuth onboarding, per-user consent, merchant isolation, approval-gated writes, and auditable workflows.
Live demo: shopify-mcp-webapp.vercel.app
Product Summary
ShopMCP is built for merchants who want AI-assisted Shopify operations without giving an AI client broad, unchecked store access. The webapp handles the human and admin side of the system:
- Shopify OAuth install and token exchange.
- Supabase identity, teams, invites, roles, and merchant membership.
- Hydra login and consent screens for MCP authorization.
- Dashboard views for connector setup, credentials, team access, activity, and Business Skills.
- Business Skills console for reusable workflows, staged action review, and execution history.
The paired Go connector owns the MCP server, Shopify tool execution, encrypted credential storage, staged writes, audit logging, rate limits, and circuit breakers.
Connector repository: shopify-mcp-connector
Screenshots
| Team console | Settings console |
|---|---|
![]() |
![]() |
Architecture
flowchart LR
Merchant["Merchant / team member"] --> Webapp["Next.js webapp"]
Webapp --> Supabase["Supabase Auth + Postgres"]
Webapp --> Shopify["Shopify OAuth"]
Webapp --> Hydra["Hydra login + consent"]
Webapp --> Connector["Go connector internal API"]
Claude["Claude / MCP client"] --> ConnectorMCP["Go connector /mcp"]
ConnectorMCP --> ShopifyAPI["Shopify Admin API"]
ConnectorMCP --> Audit["Audit log + staged actions"]
ConnectorMCP --> Redis["Redis rate limits"]
Key Features
- Shopify onboarding: validates Shopify callback HMACs, exchanges OAuth codes, resolves shop ownership, and registers credentials through the Go connector.
- Secure identity model: Supabase-backed login, password reset, email verification, team invites, and merchant membership checks.
- MCP consent: Hydra login and consent pages inject merchant context into issued tokens for the connector.
- Team console: owners can manage members, invitations, and access state.
- Activity dashboard: merchant-scoped audit views for connector activity and user actions.
- Business Skills console: configure reusable merchant workflows, compiled deterministic operations, run history, staged actions, and execution outcomes.
- Operational safety: rate-limited auth/OAuth/consent flows, server-only service-role access, and internal connector calls protected by shared service auth.
- Documentation site: Fumadocs-powered docs for setup, security, and connector behavior.
Tech Stack
- Frontend: Next.js App Router, React, TypeScript, Tailwind CSS, shadcn/ui
- Auth/data: Supabase Auth, Supabase Postgres, Row Level Security tests
- Connector auth: Hydra OAuth/OIDC login and consent integration
- Commerce: Shopify OAuth, Shopify webhook handling
- Infra: Vercel, Upstash Redis, Sentry
- Quality: ESLint, TypeScript, Vitest, Playwright, GitHub Actions
Repository Map
app/ Next.js routes, dashboards, auth, Shopify callback, MCP consent
components/ Marketing, dashboard, shell, and UI components
lib/auth/ Session and merchant context helpers
lib/shopify/ OAuth, callback, connector credential registration
lib/mcp/ Consent evaluation and approval actions
lib/business-skills/ Dashboard data loading and workflow actions
lib/activity/ Audit log loading
lib/security/ Rate limiting and crypto helpers
supabase/ Supabase local config and migrations
tests/ Vitest coverage for RLS, consent, provisioning, dashboards
public/ Screenshots and demo media
Local Development
Use 8081 for the webapp in local development. The Go connector's Hydra config and the Shopify redirect URL are pinned to this port.
npm install
cp .env.example .env.local
npm run dev -- --hostname 0.0.0.0 --port 8081
Open http://localhost:8081.
Required local URL settings:
APP_URL=http://localhost:8081
SHOPIFY_REDIRECT_URI=http://localhost:8081/shopify/callback
MCP_SERVER_URL=http://localhost:8080/mcp
MCP_SERVER_RESOURCE_URL=http://localhost:8080/mcp
The Shopify Dev Dashboard app must include this redirect URL:
http://localhost:8081/shopify/callback
Hydra login and consent URLs in the Go connector stack must point at:
http://localhost:8081/mcp-login
http://localhost:8081/mcp-consent
Checks
npm run lint
npm run typecheck
npm run test
npm run build
Why This Project Matters
Most AI demos stop at a prompt or a chat UI. ShopMCP focuses on the production layer around AI tool use: authorization, consent, tenant isolation, auditability, staged writes, workflow reuse, and failure containment.
That makes the project closer to an enterprise AI integration layer than a simple chatbot wrapper.

