Clerk Auth リモートMCPを ChatGPT にMCP接続する方法(設定手順)
Clerk のリモートMCPサーバーを ChatGPT に約1分でMCP接続。OAuth / 401 の問題は先に OAuth 2.1 デバッガーで確認できます。
Streamable HTTPhttps://mcp.clerk.com/mcp
Install in Cursor →
Or add to ~/.cursor/mcp.json:
{
"mcpServers": {
"clerk": {
"url": "https://mcp.clerk.com/mcp"
}
}
}claude mcp add --transport http clerk https://mcp.clerk.com/mcp
Install in VS Code →
Or add to .vscode/mcp.json:
{
"servers": {
"clerk": {
"type": "http",
"url": "https://mcp.clerk.com/mcp"
}
}
}- Open Settings → Connectors (Integrations) → Add Custom Connector.
- Paste the endpoint URL:
https://mcp.clerk.com/mcp - Complete the browser OAuth 2.1 login flow when prompted.
Bridge the remote endpoint into stdio with mcp-remote in claude_desktop_config.json:
{
"mcpServers": {
"clerk": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://mcp.clerk.com/mcp"
]
}
}
}Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"clerk": {
"serverUrl": "https://mcp.clerk.com/mcp"
}
}
}Add to ~/.kiro/settings/mcp.json (or .kiro/settings/mcp.json in your workspace), then reopen Kiro's Agent panel to pick up the server:
{
"mcpServers": {
"clerk": {
"url": "https://mcp.clerk.com/mcp"
}
}
}Add to ~/.codex/config.toml — Codex reads remote HTTP servers from [mcp_servers.*] tables:
[mcp_servers.clerk] url = "https://mcp.clerk.com/mcp"
Add to cline_mcp_settings.json (Cline → MCP Servers → Configure), or paste it via Cline's MCP marketplace file:
{
"mcpServers": {
"clerk": {
"type": "streamableHttp",
"url": "https://mcp.clerk.com/mcp"
}
}
}Add to ~/.gemini/settings.json under mcpServers — httpUrl for Streamable HTTP, url for legacy SSE:
{
"mcpServers": {
"clerk": {
"httpUrl": "https://mcp.clerk.com/mcp"
}
}
}接続手順
- 開発者モードを有効化 — ChatGPT → Settings → Connectors → Advanced で Developer Mode をオンにします。
- コネクタを追加 — 新規 Custom Connector を作成し、
https://mcp.clerk.com/mcpを MCP Server URL に入力します。 - 認証を完了 — 初回呼び出し時に Clerk の OAuth 認可画面が開きます。許可するとツールが有効になります。
- 検証 — オンライン Inspector に
https://mcp.clerk.com/mcpを貼り付け、initialize と tools/list を実行して接続を確認します。
🧰 ツール一覧(6)
| Tool | Safety | Description | Parameters |
|---|---|---|---|
| list_users ~49 tok | 🟢 Read | List users with search and filters. | query: string |
| get_user ~50 tok | 🟢 Read | Get a user's profile, emails and metadata. | userId*: string |
| update_user_metadata ~71 tok | 🟠 Write | Update public or unsafe metadata on a user. | userId*: stringmetadata*: object |
| list_organizations ~50 tok | 🟢 Read | List organizations in your instance. | query: string |
| get_organization_memberships ~56 tok | 🟢 Read | List members of an organization. | organizationId*: string |
| list_sessions ~49 tok | 🟢 Read | List active sessions for a user. | userId*: string |