Remote MCP Server with WorkOS AuthKit
Servidor de protocolo de contexto de modelo (MCP) + WorkOS AuthKit
Este es un servidor de Protocolo de contexto de modelo (MCP) de ejemplo que permite a los clientes remotos conectarse y autenticarse mediante WorkOS AuthKit .
AuthKit admite funciones de gestión de usuarios, incluido un modelo de autenticación centrado en la organización que le permite controlar el acceso a las herramientas en función de los permisos del usuario y la organización.
Empezando
Primero, cree una cuenta WorkOS iniciando sesión en el Panel de WorkOS .
A continuación, agregue la URL de devolución de llamada del servidor MCP como una URI de redireccionamiento en Redirecciones -> Devolución de llamada de inicio de sesión . Si realiza pruebas locales, esta será http://localhost:8788/callback o, si está implementado, el dominio de su trabajador implementado con la misma ruta /callback .
A continuación, debe configurar las variables de entorno WORKOS_CLIENT_ID y WORKOS_CLIENT_SECRET . Estas se pueden obtener del panel de WorkOS, en la sección Claves API .
Puede configurarlos en el panel de Cloudflare o mediante la CLI wrangler :
$ npx wrangler secret put WORKOS_CLIENT_ID <your_workos_client_id>
$ npx wrangler secret put WORKOS_CLIENT_SECRET <your_workos_client_secret>Nota: El WORKOS_CLIENT_ID no es técnicamente un secreto, por lo que también puede configurarlo mediante el archivo de configuración wrangler.jsonc . Sin embargo, WORKOS_CLIENT_SECRET no es público y debe configurarse de forma segura en otro lugar.
¡Listo! Ahora puedes probar tu servidor MCP remoto con el ejemplo de prueba a continuación.
Related MCP server: Remote MCP AuthKit
Prueba de autenticación de MCP
Visita el área de juegos de inteligencia artificial de Cloudflare Workers e ingresa la URL de tu trabajador:
# Local
http://localhost:8788/sse
# Deployed
https://<your-worker-domain>/sseDespués de hacer clic en Conectar , será redirigido a su dominio WorkOS AuthKit, donde podrá iniciar sesión y regresar al área de juegos autenticado como usuario de WorkOS AuthKit.
En el código de demostración, la herramienta generateImage está protegida por el permiso image_generation . Puedes leer más sobre los permisos en AuthKit aquí . Intenta asignar un permiso con el slug image_generation a tu usuario para ver cómo se habilitan herramientas adicionales en el entorno de juego.
This server cannot be installed
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
- AlicenseNot gradedqualityNot gradedmaintenanceA lightweight MCP server allowing agents to interact with the WorkOS API for streamlined WorkOS operations through natural language commands.5
- FlicenseNot gradedqualityCmaintenanceEnables remote MCP server connections with WorkOS AuthKit authentication and user management. Supports organization-centric authentication and permission-based tool access control.
- FlicenseNot gradedqualityCmaintenanceEnables remote MCP client connections with WorkOS AuthKit authentication and organization-based permission controls. Demonstrates permission-gated tool access, such as image generation tools restricted by user permissions.
- FlicenseNot gradedqualityDmaintenanceA reference MCP server for Cloudflare Workers that provides remote connection support with integrated GitHub OAuth authentication. It enables developers to build and deploy authenticated remote tools with user-specific access controls and persistent state management.
Related MCP Connectors
An MCP server for Arcjet - the runtime security platform that ships with your AI code.
Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer
MCP server teaching AI agents to implement TideCloak: auth, E2EE, IGA, security analysis
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/sleepypandu/remote-mcp-authkit'
If you have feedback or need assistance with the MCP directory API, please join our Discord server