mcp.shop

mcp.shop

An MCP-based web shop server that enables users to authenticate and order t-shirts through MCP tools. Features secure authentication with WorkOS AuthKit and admin functionality for viewing order details.

Category
Visit Server

README

<p align="center"> <h1 align="center">mcp.shop</h1> </p>

<p align="center"> The world's first MCP-based web shop, built with WorkOS AuthKit and Next.js mcp-adaptor. </p>

<p align="center"> <a href="https://mcp.shop/">Live Demo</a> • <a href="#overview">Overview</a> • <a href="#architecture">Architecture</a> • <a href="#prerequisites">Prerequisites</a> • <a href="#setup">Setup</a> </p>

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

Prerequisites

  • Node.js (latest LTS version recommended)
  • WorkOS account with AuthKit configured
  • Redis service (e.g., Upstash)

Setup

  1. Clone the repository

  2. Install dependencies:

    pnpm install
    
  3. Configure environment variables:

    Copy .env.example to .env.local and set each environment variable appropriately.

    Note:

    • You can find your WorkOS credentials in the WorkOS dashboard.
    • Make sure to set your redirect URI (http://localhost:3000/callback for local development or https://<deployed-url>/callback for production) in the dashboard.
    • Make sure you have enabled Dynamic Client Registration on the dashboard. It should be under Developer -> Application -> Configuration page on the dashboard
  4. Start the development server:

    pnpm dev
    

    The application will be available at:

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"]
    }
  }
}

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

MIT

Recommended Servers

playwright-mcp

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.

Official
Featured
TypeScript
Magic Component Platform (MCP)

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.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

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.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

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.

Official
Featured
TypeScript
Kagi MCP Server

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.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

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.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured