mcp.shop
A web shop built with MCP, WorkOS AuthKit, and Next.js.
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
Related Servers
Autodev Codebase
A platform-agnostic code analysis library with semantic search capabilities and MCP server support.
Stackzero Labs MCP
A server for generating Stackzero Labs UI components.
Learn MCP
A sample project for learning MCP development, featuring a calculator for math operations and a prompt flow server for various templates.
Node Omnibus MCP Server
An MCP server providing advanced Node.js development tooling and automation.
Rust Docs MCP Server
Query up-to-date documentation for Rust crates.
MCP Expr Lang
MCP Expr-Lang provides a seamless integration between Claude AI and the powerful expr-lang expression evaluation engine.
UnityNaturalMCP
An MCP server implementation for the Unity game engine that enables a natural user experience.
Remote MCP Server (Authless)
An example of a remote MCP server deployable on Cloudflare Workers, featuring customizable tools and no authentication.
Dify MCP Server
A TypeScript-based server that integrates the Dify AI application platform with the MCP Client.
MCP-S Gateway
A secure, open-source OAuth gateway for MCP authentication.