mcp.shop
A web shop built with MCP, WorkOS AuthKit, and Next.js.
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:
- Next.js B2B Starter Kit for the website
- Vercel MCP Adapter for MCP integration
- WorkOS AuthKit with MCP for authentication
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
-
Clone the repository
-
Install dependencies:
pnpm install -
Configure environment variables:
Copy
.env.exampleto.env.localand 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/callbackfor local development orhttps://<deployed-url>/callbackfor 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
-
Start the development server:
pnpm devThe application will be available at:
- Website: http://localhost:3000
- MCP Server:
/mcp
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
相關伺服器
Scout Monitoring MCP
贊助Put performance and error data directly in the hands of your AI assistant.
Alpha Vantage MCP Server
贊助Access financial market data: realtime & historical stock, ETF, options, forex, crypto, commodities, fundamentals, technical indicators, & more
Limetest
A lightweight, AI-powered end-to-end testing framework for CI workflows. Requires an OpenAI API key.
Context7
Provides up-to-date, version-specific documentation and code examples for libraries directly into your prompt.
FastMCP
A fast, Pythonic framework for building MCP servers and clients.
Holy Bio MCP
A unified framework for bioinformatics research, integrating multiple specialized MCP servers for longevity and bioinformatics.
Linkinator
A Model Context Protocol (MCP) server that provides link checking capabilities using linkinator. This allows AI assistants like Claude to scan webpages and local files for broken links.
Godot RAG
Provides Godot documentation to a RAG model using a vector database.
Code Understanding
Analyzes local and remote GitHub repositories to provide code understanding and context generation, including structure analysis, file identification, and semantic mapping.
Apidog tests MCP
Adds possibility to work with testing management via MCP
Feishu MCP Server
An MCP server with built-in Feishu OAuth authentication, deployable on Cloudflare Workers.
Cursor Talk to Figma MCP
Integrates Cursor AI with Figma to read and programmatically modify designs.