> ## 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/)を作成しておきます。
  * 少なくとも 1 つのサポート対象の MCP クライアント (たとえば [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](/docs/ja-jp/get-started/auth0-mcp-server) をインストールし、よく使われている複数の [MCP クライアント](https://modelcontextprotocol.io/clients) と連携することで、チームやユーザーの活用の幅を広げましょう。

<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="/docs/ja-jp/glossary?term=OAuth+2.0">OAuth 2.0</Tooltip> のデバイス<Tooltip tip="OAuth 2.0: 認可プロトコルとワークフローを定義する認可フレームワーク。" cta="用語集を見る" href="/docs/ja-jp/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 が認識するよう、Cursor を再起動します。
2. Cursor で **設定 > MCP** を開き、**MCP Servers** の一覧に **Auth0** が表示されていることを確認します。
3. Cursor との会話を開始し、Auth0 テナントの管理についてサポートを依頼します。

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

1. 新しくインストールした Auth0 MCP Server を Windsurf で認識させるため、Windsurf を再起動します。
2. Windsurf で **Windsurf 設定 > 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 サーバーが実行中であることを確認します。

   ```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">
  #### MCPクライアントログのデバッグ
</div>

Claude Desktopで詳細なMCPクライアントログを取得できます：

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

Auth0 MCP Server をデバッグモードで実行すると、MCP サーバーの詳細なログを取得できます:

```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](/docs/ja-jp/get-started/auth0-mcp-server/auth0-mcp-tools-reference)にアクセスしてAuth0 MCP Serverの全機能を確認するか、実践的な例やユースケースについてはAuth0 Model Context Protocol Server Guidesをご覧ください。
