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
SonarCloud
Fetch SonarCloud issues related to pull requests.
QGIS
connects QGIS Desktop to Claude AI through the MCP. This integration enables prompt-assisted project creation, layer loading, code execution, and more.
AppSignal MCP
Integrate with the AppSignal monitoring API to query and fetch error and performance data.
CodeRabbit
Integrate with CodeRabbit AI for automated code reviews, pull request analysis, and report generation.
Vibetest Use
A browser-agent QA swarm with an MCP interface for testing AI-generated websites.
Last9
Seamlessly bring real-time production context—logs, metrics, and traces—into your local environment to auto-fix code faster.
Cygnus MCP Server
An MCP server demonstrating Cygnus tools for reading text files and invoking local APIs.
MCP Agentic AI Crash Course with Python
A comprehensive crash course on the Model Context Protocol (MCP), covering everything from basic concepts to building production-ready MCP servers and clients in Python.
Ionhour
Let AI agents monitor and manage your infrastructure through the Model Context Protocol. Query, create, and resolve — all in natural language.
Buildkite
Manage Buildkite pipelines and builds.