Remote MCP Server with WorkOS AuthKit
モデルコンテキストプロトコル(MCP)サーバー + WorkOS AuthKit
これは、リモート クライアントがWorkOS AuthKitを使用して接続および認証できるようにするModel Context Protocol (MCP)サーバーの例です。
AuthKit は、組織中心の認証モデルなどのユーザー管理機能をサポートしており、ユーザーと組織の権限に基づいてツールへのアクセスを制御できます。
はじめる
まず、 WorkOS ダッシュボードにサインインして WorkOS アカウントを作成します。
次に、MCPサーバーのコールバックURLを、リダイレクトURIとして***「リダイレクト***」→ ***「サインインコールバック」***に追加します。ローカルでテストしている場合はhttp://localhost:8788/callback 、デプロイされている場合は、デプロイされたワーカーのドメイン( /callbackパスと同じ)になります。
次に、 WORKOS_CLIENT_IDとWORKOS_CLIENT_SECRET環境変数を設定する必要があります。これらは、WorkOSダッシュボードのAPIキーから取得できます。
これらは、Cloudflare ダッシュボードまたはwrangler CLI を使用して設定できます。
$ npx wrangler secret put WORKOS_CLIENT_ID <your_workos_client_id>
$ npx wrangler secret put WORKOS_CLIENT_SECRET <your_workos_client_secret>注: 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