Labsco
workos logo

mcp.shop

โ˜… 103

from workos

A web shop built with MCP, WorkOS AuthKit, and Next.js.

๐Ÿ”ฅโœ“ VerifiedFreeAdvanced setup

mcp.shop

The world's first MCP-based web shop, built with WorkOS AuthKit and Next.js mcp-adaptor.

Live Demo โ€ข Overview โ€ข Architecture โ€ข Prerequisites โ€ข Setup

Overview

This project demonstrates how to use AuthKit with MCP to create a secure web shop where users can:

  • Connect to an MCP server
  • Authenticate via AuthKit
  • Order t-shirts using MCP tools
  • View order details (admin users only)

Architecture

The application is built on:

Key components:

  • Authentication logic: lib/with-authkit.ts
  • Client registration: app/.well-known/
  • MCP implementation: app/[transport]/route.ts

Connecting to MCP

To connect your chat client to the development server, add the following configuration to your MCP config file (e.g., .cursor/mcp.json):

{
  "mcpServers": {
    "mcp.shop": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "http://localhost:3000/mcp"]
    }
  }
}