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
Servidores relacionados
Scout Monitoring MCP
patrocinadorPut performance and error data directly in the hands of your AI assistant.
Alpha Vantage MCP Server
patrocinadorAccess financial market data: realtime & historical stock, ETF, options, forex, crypto, commodities, fundamentals, technical indicators, & more
webrtcperf
WebRtcPerf is an open-source tool designed for testing WebRTC services with multiple concurrent client connections, measuring the most important RTC statistics and collecting them in an easy way.
Agent Forge
A platform for creating and managing AI agents with specific personalities and simulating their responses. Requires a DeepSeek API key.
MCP Inspector
A developer tool for testing and debugging MCP servers.
Perfetto
Turn natural language into powerful Perfetto trace analysis. Quickly explain jank, diagnose ANRs, spot CPU hot threads, uncover lock contention, and find memory leaks.
JSONPlaceholder
A free public REST API for testing and prototyping, powered by JSONPlaceholder.
Rust Docs MCP Server
Query up-to-date documentation for Rust crates.
Security Audit Tool
Audits npm package dependencies for security vulnerabilities with real-time checks against a remote npm registry.
MCP Server
A framework for AI-powered command execution and a plugin-based tool system. It can be run as a standalone service or embedded in other projects to expose a consistent API for invoking tools and managing tasks.
Metal MCP Server
Search Metal Framework documentation and generate code.
mcp-agent-kit
a complete and intuitive SDK for building MCP Servers, MCP Agents, and LLM integrations (OpenAI, Claude, Gemini) with minimal effort. It abstracts all the complexity of the MCP protocol, provides an intelligent agent with automatic model routing, and includes a universal client for external APIs all through a single, simple, and powerful interface. Perfect for chatbots, enterprise automation, internal system integrations, and rapid development of MCP-based ecosystems.