Cover image
Try Now
2025-04-14

3 years

Works with Finder

0

Github Watches

0

Github Forks

0

Github Stars

Model Context Protocol (MCP) Server + WorkOS AuthKit

This is an example Model Context Protocol (MCP) server that allows remote clients to connect and authenticate using WorkOS AuthKit.

AuthKit supports user management features including an organization-centric authentication model allowing you to control tool access based on user and organization permissions.

Getting Started

First to create a WorkOS account by signing into the WorkOS Dashboard.

Next, add the MCP server's callback URL as a Redirect URI under Redirects -> Sign in callback. If you are testing locally, this will be http://localhost:8788/callback, or if deployed, the domain of your deployed worker with the same /callback path.

Next, you must set the WORKOS_CLIENT_ID and WORKOS_CLIENT_SECRET environment variables. These can be obtained from the WorkOS Dashboard under API Keys.

You can set these in the Cloudflare dashboard or using the wrangler CLI:

$ npx wrangler secret put WORKOS_CLIENT_ID <your_workos_client_id>
$ npx wrangler secret put WORKOS_CLIENT_SECRET <your_workos_client_secret>

Note: The WORKOS_CLIENT_ID isn't technically a secret and so you may also choose to set it via your wrangler.jsonc configuration file. But WORKOS_CLIENT_SECRET is not public and should be securely set elsewhere.

And that's it! You can now test out your remote MCP server using the example playground below.

Testing MCP Authentication

Visit the Cloudflare Workers AI playground and enter the URL of your worker:

# Local
http://localhost:8788/sse

# Deployed
https://<your-worker-domain>/sse

After clicking Connect, you'll be redirected to your WorkOS AuthKit domain, where you can sign-in, and be returned to the playground authenticated as a WorkOS AuthKit user.

In the demo code, the generateImage tool is gated behind the image_generation permission. You can read more about Permissions in AuthKit here. Try assigning a permission with the image_generation slug to your user to see how it enables additional tools in the playground.

相关推荐

  • av
  • Ejecute sin esfuerzo LLM Backends, API, frontends y servicios con un solo comando.

  • 1Panel-dev
  • 🔥 1Panel proporciona una interfaz web intuitiva y un servidor MCP para administrar sitios web, archivos, contenedores, bases de datos y LLM en un servidor de Linux.

  • WangRongsheng
  • 🧑‍🚀 全世界最好的 llM 资料总结(数据处理、模型训练、模型部署、 O1 模型、 MCP 、小语言模型、视觉语言模型) | Resumen de los mejores recursos del mundo.

  • rulego
  • ⛓️Rulego es un marco de motor de regla de orquestación de componentes de alta generación de alto rendimiento, de alto rendimiento y de alto rendimiento para GO.

  • sigoden
  • Cree fácilmente herramientas y agentes de LLM utilizando funciones Plain Bash/JavaScript/Python.

  • hkr04
  • SDK liviano C ++ MCP (Protocolo de contexto del modelo)

  • RockChinQ
  • 😎简单易用、🧩丰富生态 - 大模型原生即时通信机器人平台 | 适配 Qq / 微信(企业微信、个人微信) / 飞书 / 钉钉 / Discord / Telegram / Slack 等平台 | 支持 Chatgpt 、 Deepseek 、 DiFy 、 Claude 、 Gemini 、 Xai 、 PPIO 、 Ollama 、 LM Studio 、阿里云百炼、火山方舟、 Siliconflow 、 Qwen 、 Moonshot 、 Chatglm 、 SillyTraven 、 MCP 等 LLM 的机器人 / Agente | Plataforma de bots de mensajería instantánea basada en LLM, admite Discord, Telegram, WeChat, Lark, Dingtalk, QQ, Slack

  • dmayboroda
  • Trapo conversacional local con contenedores configurables

  • evilsocket
  • El kit de desarrollo de agentes simples.

  • modelscope
  • Iniciar aplicaciones de múltiples agentes empoderadas con Building LLM de manera más fácil.

    Reviews

    3.4 (5)
    Avatar
    user_ai3dMoq4
    2025-04-24

    I've been using the workos-mcp-demo application by tobinsouth and I must say it has significantly improved my workflow. The simplicity and efficiency of this tool are remarkable, making my tasks much more manageable. Highly recommended for anyone looking to streamline their work processes.

    Avatar
    user_KVEKutL9
    2025-04-24

    I've been using workos-mcp-demo for a while now and it's been a game changer for my workflow. Created by tobinsouth, this tool is intuitive and powerful. It starts up smoothly and the welcome information is clear and helpful. Highly recommend for anyone looking to streamline their operations!

    Avatar
    user_fXZZN8K1
    2025-04-24

    As a dedicated user of the mcp application, I highly recommend the "workos-mcp-demo" by tobinsouth. This product offers an impressive demonstration of managing operations seamlessly, and its intuitive design makes it easy to navigate. Whether you're a seasoned professional or a newcomer, you'll find this tool to be incredibly valuable.

    Avatar
    user_Igl17HQZ
    2025-04-24

    I recently tried the workos-mcp-demo by tobinsouth, and it's an impressive tool for streamlining workflows! The user interface is intuitive, making it easy to navigate and utilize its powerful features. It's evident that a lot of thought went into the design and functionality. I highly recommend it for anyone looking to enhance their productivity with a reliable MCP application.

    Avatar
    user_J3IDd8Oh
    2025-04-24

    I've been using workos-mcp-demo by tobinsouth for a while now, and it has greatly improved my workflow efficiency. The intuitive interface and robust functionality make it an indispensable tool in my software toolkit. Highly recommend for anyone looking to streamline their operations!