{"id":28946234,"url":"https://github.com/workos/mcp.shop","last_synced_at":"2025-07-23T04:04:47.419Z","repository":{"id":298863230,"uuid":"979033840","full_name":"workos/mcp.shop","owner":"workos","description":"mcp.shop storefront/app for MCP Night","archived":false,"fork":false,"pushed_at":"2025-07-03T22:28:43.000Z","size":18090,"stargazers_count":58,"open_issues_count":3,"forks_count":7,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-07-22T01:44:15.690Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://mcp.shop","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/workos.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-05-06T22:31:51.000Z","updated_at":"2025-07-20T09:47:51.000Z","dependencies_parsed_at":"2025-06-13T10:10:18.551Z","dependency_job_id":null,"html_url":"https://github.com/workos/mcp.shop","commit_stats":null,"previous_names":["workos/mcp.shop"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/workos/mcp.shop","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/workos%2Fmcp.shop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/workos%2Fmcp.shop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/workos%2Fmcp.shop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/workos%2Fmcp.shop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/workos","download_url":"https://codeload.github.com/workos/mcp.shop/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/workos%2Fmcp.shop/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266614326,"owners_count":23956348,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-23T08:05:16.374Z","updated_at":"2025-07-23T04:04:47.408Z","avatar_url":"https://github.com/workos.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ch1 align=\"center\"\u003emcp.shop\u003c/h1\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  The world's first MCP-based web shop, built with WorkOS AuthKit and Next.js mcp-adaptor.\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://mcp.shop/\"\u003eLive Demo\u003c/a\u003e • \u003ca href=\"#overview\"\u003eOverview\u003c/a\u003e • \u003ca href=\"#architecture\"\u003eArchitecture\u003c/a\u003e • \u003ca href=\"#prerequisites\"\u003ePrerequisites\u003c/a\u003e • \u003ca href=\"#setup\"\u003eSetup\u003c/a\u003e\n\u003c/p\u003e\n\n## Overview\n\nThis project demonstrates how to use AuthKit with MCP to create a secure web shop where users can:\n\n- Connect to an MCP server\n- Authenticate via AuthKit\n- Order t-shirts using MCP tools\n- View order details (admin users only)\n\n## Architecture\n\nThe application is built on:\n\n- [Next.js B2B Starter Kit](https://workos.com/blog/nextjs-b2b-starter-kit) for the website\n- [Vercel MCP Adapter](https://github.com/vercel/mcp-adapter) for MCP integration\n- [WorkOS AuthKit with MCP](https://workos.com/docs/user-management/mcp) for authentication\n\nKey components:\n\n- Authentication logic: `lib/with-authkit.ts`\n- Client registration: `app/.well-known/`\n- MCP implementation: `app/[transport]/route.ts`\n\n## Prerequisites\n\n- Node.js (latest LTS version recommended)\n- WorkOS account with AuthKit configured\n- Redis service (e.g., Upstash)\n\n## Setup\n\n1. Clone the repository\n2. Install dependencies:\n\n   ```bash\n   pnpm install\n   ```\n\n3. Configure environment variables:\n\n   Create a `.env.local` file in the root directory with the following variables:\n\n   ```env\n   # WorkOS Configuration\n   AUTHKIT_DOMAIN=your-authkit-domain\n   WORKOS_API_KEY=your-workos-api-key\n   WORKOS_CLIENT_ID=your-workos-client-id\n\n   # Redis Configuration (Upstash)\n   KV_REST_API_URL=your-upstash-url\n   KV_REST_API_TOKEN=your-upstash-token\n   ```\n\n   \u003e **Note:** You can find your WorkOS credentials in the [WorkOS dashboard](https://workos.com/docs/user-management/vanilla/nodejs/1-configure-your-project). Make sure to set your redirect URI in the dashboard.\n\n4. Start the development server:\n\n   ```bash\n   pnpm dev\n   ```\n\n   The application will be available at:\n\n   - Website: [http://localhost:3000](http://localhost:3000)\n   - MCP Server: `/mcp`\n\n## Connecting to MCP\n\nTo connect your chat client to the development server, add the following configuration to your MCP config file (e.g., `.cursor/mcp.json`):\n\n```json\n{\n  \"mcpServers\": {\n    \"mcp.shop\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"mcp-remote\", \"http://localhost:3000/mcp\"]\n    }\n  }\n}\n```\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fworkos%2Fmcp.shop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fworkos%2Fmcp.shop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fworkos%2Fmcp.shop/lists"}