> ## Documentation Index
> Fetch the complete documentation index at: https://translations.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> Auth0 Model Context Protocol (MCP) Server を AI クライアントと統合します。

# Auth0 Model Context Protocol (MCP) Server の利用を開始する

<Card title="開始する前に">
  * システムに [Node.js v18 以降](https://nodejs.org/en/download) をインストールします。
  * 管理権限を持つ有効な [Auth0 アカウント](https://auth0.com/)を作成します。
  * サポートされている MCP クライアントを少なくとも 1 つインストールします (例: [Claude Desktop](https://claude.ai/download)、[Cursor](https://www.cursor.com/downloads)、[Windsurf](https://www.windsurf.com/editor)) 。
</Card>

[Auth0 Model Context Protocol (MCP) Server](/ja/docs/get-started/auth0-mcp-server) をインストールし、広く利用されている複数の [MCP クライアント](https://modelcontextprotocol.io/clients) と連携することで、チームやユーザーが AI をより活用できるようになります。

<div id="installation-and-configuration">
  ## インストールと設定
</div>

ターミナルで次のいずれかのコマンドを実行して、Auth0 MCP Server をインストールします。

<div id="for-claude-desktop-default">
  ### Claude Desktop の場合 (デフォルト)
</div>

```bash lines theme={null}
npx @auth0/auth0-mcp-server init
```

<div id="for-cursor">
  ### Cursor を使用する場合
</div>

```bash lines theme={null}
npx @auth0/auth0-mcp-server init --client cursor
```

<div id="for-windsurf">
  ### Windsurf を使用する場合
</div>

```bash lines theme={null}
npx @auth0/auth0-mcp-server init --client windsurf
```

<div id="other-mcp-clients">
  ### その他の MCP クライアント
</div>

Auth0 MCP Server を他の MCP クライアントで使用するには、この設定をクライアントに手動で追加し、変更を反映するために再起動してください。

```json lines theme={null}
{
  "mcpServers": {
    "auth0": {
      "command": "npx",
      "args": ["-y", "@auth0/auth0-mcp-server", "run"],
      "capabilities": ["tools"],
      "env": {
        "DEBUG": "auth0-mcp"
      }
    }
  }
}
```

<div id="authenticate-with-auth0">
  ## Auth0 で認証する
</div>

<Tooltip tip="OAuth 2.0: 認可プロトコルとワークフローを定義する認可フレームワーク。" cta="用語集を見る" href="/ja/docs/glossary?term=OAuth+2.0">OAuth 2.0</Tooltip> のデバイス<Tooltip tip="OAuth 2.0: 認可プロトコルとワークフローを定義する認可フレームワーク。" cta="用語集を見る" href="/ja/docs/glossary?term=authorization+flow">認可フロー</Tooltip>を開始するために、ブラウザーが自動的に開きます。Auth0 アカウントにログインし、要求された権限を承認してください。

<Callout icon="file-lines" color="#0EA5E9" iconType="regular">
  認証情報はシステムのキーチェーンに安全に保存されます。必要に応じて、キーチェーン管理ツールで保存を確認できます。
</Callout>

<div id="verify-your-integration">
  ## 統合を確認する
</div>

<div id="claude-desktop">
  ### Claude Desktop
</div>

1. 新しくインストールしたAuth0 MCP Serverを認識させるため、Claude Desktopを再起動します。
2. Claude Desktopで**Tools**アイコンをクリックし、Auth0のツール (例: `auth0_create_action` や `auth0_delete_application`) が**Available MCP Tools**リストに表示されていることを確認します。
3. Claude Desktopとの会話を開始し、Auth0テナントの管理についてサポートを依頼します。

<div id="cursor">
  ### Cursor
</div>

1. 新しくインストールしたAuth0 MCP Serverを認識させるため、Cursorを再起動します。
2. Cursorで**Settings > MCP**を開き、**MCP Servers**の一覧に**Auth0**が表示されていることを確認します。
3. Cursorとの会話を開始し、Auth0テナントの管理についてサポートを求めます。

<div id="windsurf">
  ### Windsurf
</div>

1. 新しくインストールした Auth0 MCP Server が認識されるように、Windsurf を再起動します。
2. Windsurf で **Windsurf Settings > Cascade** を開き、**Model Context Protocol (MCP) Servers** の一覧に **Auth0** が表示されていることを確認します。
3. Windsurf との会話を開始し、Auth0 テナントの管理についてサポートを依頼します。

<div id="common-troubleshooting-steps">
  ## 一般的なトラブルシューティング手順
</div>

<Callout icon="file-lines" color="#0EA5E9" iconType="regular">
  接続に関する問題の多くは、Auth0 MCP Server を設定して MCP クライアントを再起動することで解決できます。
</Callout>

<div id="get-command-line-help">
  #### コマンドラインヘルプを表示する:
</div>

次のコマンドを使用して、サポートされているコマンドの一覧と使用例を表示します:

```bash lines theme={null}
npx @auth0/auth0-mcp-server help
```

<div id="authentication-issues">
  #### 認証に関する問題
</div>

Auth0テナントで適切な権限が設定されていることを確認し、以下を使用して再初期化してみてください。

```bash lines theme={null}
npx @auth0/auth0-mcp-server init
```

<div id="connection-failures">
  #### 接続の失敗:
</div>

1. 次のコマンドを実行して、MCP Server が動作中であることを確認します。

   ```ps lines theme={null}
   ps aux | grep auth0-mcp
   ```

2. サーバーが動作中であることを確認したら、AI クライアントを再起動します。

<div id="claude-cant-connect-to-the-server-error">
  #### Claude がサーバーに接続できない場合:
</div>

1. インストール後に Claude Desktop を再起動します。
2. 次のコマンドでサーバーが実行中であることを確認します。

   ```ps lines theme={null}
   ps aux | grep auth0-mcp
   ```

<div id="api-errors">
  #### API エラー:
</div>

Auth0 トークンの権限と有効期限を確認してください。詳細なログを確認するには、デバッグ モードを有効にしてください (以下を参照) 。

<div id="debug-configuration-issues">
  ## 設定の問題をデバッグする
</div>

<div id="enable-debug-mode">
  #### デバッグモードを有効にする
</div>

詳細なログを表示するには、デバッグモードを有効にしてください。

```bash lines theme={null}
export DEBUG=auth0-mcp
```

<div id="debug-client-logs">
  #### クライアントログのデバッグ
</div>

Claude Desktop で詳細な MCP クライアントログを取得するには、次の手順に従います:

```bash lines theme={null}
# リアルタイムでログを追跡する
tail -n 20 -F ~/Library/Logs/Claude/mcp*.log
```

Auth0 MCP Server をデバッグモードで実行して、MCP Server の詳細なログを取得します。

```bash lines theme={null}
DEBUG=auth0-mcp npx @auth0/auth0-mcp-server run
```

<div id="advanced-debugging-using-mcp-inspector">
  #### MCP Inspector を使用した詳細なデバッグ
</div>

より高度なトラブルシューティングには、MCP Inspector を使用します。

```bash wrap lines theme={null}
npx @modelcontextprotocol/inspector -e DEBUG='auth0-mcp' @auth0/auth0-mcp-server run__text in bold__
```

<div id="next-steps">
  ## 次のステップ
</div>

[Auth0 Model Context Protocol (MCP) Server Tools Reference](/ja/docs/get-started/auth0-mcp-server/auth0-mcp-tools-reference) にアクセスして Auth0 MCP Server の機能を詳しく確認するか、実践的な例やユースケースについては Auth0 Model Context Protocol Server Guides を参照してください。
