Remote MCP Server with WorkOS AuthKit
모델 컨텍스트 프로토콜(MCP) 서버 + WorkOS AuthKit
이는 원격 클라이언트가 WorkOS AuthKit을 사용하여 연결하고 인증할 수 있도록 하는 MCP(Model Context Protocol) 서버의 예입니다.
AuthKit은 사용자 및 조직 권한에 따라 도구 액세스를 제어할 수 있는 조직 중심 인증 모델을 포함한 사용자 관리 기능을 지원합니다.
시작하기
먼저 WorkOS 대시보드 에 로그인하여 WorkOS 계정을 만드세요.
다음으로, MCP 서버의 콜백 URL을 '리디렉션 ' -> '로그인 콜백' 아래에 '리디렉션 URI'로 추가합니다. 로컬에서 테스트하는 경우 http://localhost:8788/callback 되고, 배포된 경우 배포된 작업자의 도메인과 동일한 /callback 경로가 사용됩니다.
다음으로, WORKOS_CLIENT_ID 및 WORKOS_CLIENT_SECRET 환경 변수를 설정해야 합니다. 이 변수들은 WorkOS 대시보드의 API 키 에서 확인할 수 있습니다.
Cloudflare 대시보드나 wrangler CLI를 사용하여 설정할 수 있습니다.
지엑스피1
참고: WORKOS_CLIENT_ID 는 기술적으로 비밀이 아니므로 wrangler.jsonc 설정 파일을 통해 설정할 수도 있습니다. 하지만 WORKOS_CLIENT_SECRET 공개되지 않으므로 다른 곳에 안전하게 설정해야 합니다.
이제 끝났습니다! 아래 예시 플레이그라운드를 사용하여 원격 MCP 서버를 테스트해 보세요.
Related MCP server: Remote MCP AuthKit
MCP 인증 테스트
Cloudflare Workers AI 플레이그라운드를 방문하여 작업자의 URL을 입력하세요.
# Local
http://localhost:8788/sse
# Deployed
https://<your-worker-domain>/sse연결을 클릭하면 WorkOS AuthKit 도메인으로 리디렉션되어 로그인하고 WorkOS AuthKit 사용자로 인증된 상태로 플레이그라운드로 돌아갈 수 있습니다.
데모 코드에서 generateImage 도구는 image_generation 권한 뒤에 숨겨져 있습니다. AuthKit의 권한에 대한 자세한 내용은 여기를 참조 하세요. image_generation 슬러그를 사용하여 사용자에게 권한을 할당하여 플레이그라운드에서 추가 도구를 어떻게 사용할 수 있는지 확인해 보세요.
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