Auth0 OAuth MCP Server
モデルコンテキストプロトコル(MCP)サーバー
これはMCPサーバーであり、ユーザーは最初に認証を受ける必要があります。認証が完了すると、MCPサーバーはユーザーに代わって保護されたAPIを呼び出すことができるようになります。
構成
トドスAPI
MCP サーバーを使用する前に、ここに記載されているように Todos API を展開する必要があります。
Auth0の設定
Auth0 ダッシュボードのアプリケーション セクションで新しいアプリケーションを作成します (タイプ:「通常の Web アプリケーション」)。
アプリケーションが作成されたら、ローカルで開発するときに、次の URL をコールバック URL として構成します。
http://localhost:8788/callbackKV名前空間を設定する
KV 名前空間を作成します:
wrangler kv:namespace create "OAUTH_KV"KV IDでWranglerファイルを更新する
Related MCP server: Remote MCP Server with GitHub OAuth
環境変数
この MCP サーバーでは、いくつかの環境変数を設定する必要があります。
設定 | 説明 |
| Auth0テナントのドメイン(例: |
| 作成したAuth0アプリケーションのクライアントID |
| 作成したAuth0アプリケーションのクライアントシークレット |
| Auth0ダッシュボードに登録したAPIの一意の識別子(例: |
| MCPサーバーが要求するスコープ。ここでは、基本プロファイル情報( |
| 環境設定 - ローカル開発のための |
| Todos API が実行されているベース URL |
発達
プロジェクトのルートに次の構造の.dev.varsファイルを作成します。
AUTH0_DOMAIN=yourdomain.us.auth0.com
AUTH0_CLIENT_ID=The Client ID of the application you created in Auth0
AUTH0_CLIENT_SECRET=The Client Secret of the application you created in Auth0
AUTH0_AUDIENCE=urn:todos-api
AUTH0_SCOPE=openid email profile offline_access read:todos
NODE_ENV=development
API_BASE_URL=http://localhost:8789MCPサーバーのテスト
MCP サーバーを起動するには、次のコマンドを使用できます。
npm run devMCP Inspector を使用すると、MCP サーバーに接続し、利用可能なツールの一覧を表示して呼び出すことができます。トランスポートタイプをsseに設定し、URL http://localhost:8788/sseに設定してください。
MCPサーバーをCloudflareにデプロイする
MCP サーバーを Cloudflare にデプロイするには、まず次のシークレットを設定する必要があります。
wrangler secret put AUTH0_DOMAIN
wrangler secret put AUTH0_CLIENT_ID
wrangler secret put AUTH0_CLIENT_SECRET
wrangler secret put AUTH0_AUDIENCE
wrangler secret put AUTH0_SCOPE
wrangler secret put API_BASE_URLシークレットが設定されたら、次のコマンドで API をデプロイできます。
npm run deployAuth0 ダッシュボードで、デプロイされた MCP サーバーの新しいコールバック URL も必ず追加してください。例:
https://mcp-auth0-oidc.<your-subdomain>.workers.dev/callbackこれをテストするには、Workers AI LLM Playground を使用できます。https ://playground.ai.cloudflare.com/にアクセスし、次の URL パターンを使用して左下にある MCP サーバーに接続します。
https://mcp-auth0-oidc.<your-subdomain>.workers.dev/sseこれにより、サインインできるポップアップが開き、その後、すべてのツールを使用できるようになります。
トラブルシューティング
MCP サーバーの設定中または使用中に問題が発生した場合には、次のトラブルシューティング手順を実行してください。
作業員のログを確認する
ダッシュボードのCloudflare Workersログにアクセスしてください
Auth0ダッシュボードログ
Auth0ダッシュボードのログセクションに移動します
認証の試行と失敗を確認する
よくある問題
認証に失敗した場合は、Auth0の設定とシークレットを確認してください。
接続の問題の場合は、Workerがデプロイされており、ドメインが正しいことを確認してください。
Auth0ですべてのコールバックURLが適切に設定されていることを確認します
API_BASE_URL がデプロイされた API エンドポイントと一致していることを確認します。
This server cannot be installed
Maintenance
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
- Flicense-qualityCmaintenanceA MCP server that requires user authentication via Auth0, allowing it to call protected APIs on behalf of authenticated users.
- Flicense-qualityDmaintenanceA Model Context Protocol server that supports remote connections and authenticates users via GitHub OAuth, allowing them to access tools based on their GitHub identity.
- Flicense-qualityDmaintenanceA Model Context Protocol (MCP) server with HTTP transport that implements JWT authentication, allowing secure tool execution and prompt handling with role-based access control.61
- Alicense-qualityCmaintenanceA Model Context Protocol server that enables remote connections with GitHub authentication, allowing users to build applications that leverage MCP tools with secure OAuth-based access control.GPL 3.0
Related MCP Connectors
MCP (Model Context Protocol) server for Appwrite
A Model Context Protocol server for Wix AI tools
MCP server for Argo RPG Platform — connects AI assistants to campaign data via OAuth2
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/pratham-svg/MCP-OAuth'
If you have feedback or need assistance with the MCP directory API, please join our Discord server