Skip to main content
Glama

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)

Related MCP server: FakeStore MCP

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

A
license - permissive license
-
quality - not tested
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • F
    license
    -
    quality
    C
    maintenance
    An example MCP server that allows remote clients to connect and authenticate using WorkOS AuthKit, providing organization-centric authentication with permission-based access control for tools.
    2
  • F
    license
    -
    quality
    D
    maintenance
    A Model Context Protocol server that enables AI assistants to interact with a complete e-commerce application, providing authentication, product browsing, and shopping cart management through standardized MCP tools.
  • F
    license
    -
    quality
    -
    maintenance
    Enables remote MCP client connections with WorkOS AuthKit authentication and organization-based permission control. Demonstrates how to gate tool access based on user permissions, including features like image generation behind specific authorization checks.

View all related MCP servers

Related MCP Connectors

  • An MCP server for Arcjet - the runtime security platform that ships with your AI code.

  • Official remote MCP server for Color Me Shop.

  • MCP (Model Context Protocol) server for Appwrite

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/doodlydan/mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server