Stytch Auth リモートMCPを Claude Code にMCP接続する方法(設定手順)
Stytch のリモートMCPサーバーを Claude Code に約1分でMCP接続。OAuth / 401 の問題は先に OAuth 2.1 デバッガーで確認できます。
Streamable HTTPhttps://mcp.stytch.dev/mcp
Install in Cursor →
Or add to ~/.cursor/mcp.json:
{
"mcpServers": {
"stytch": {
"url": "https://mcp.stytch.dev/mcp"
}
}
}claude mcp add --transport http stytch https://mcp.stytch.dev/mcp
Install in VS Code →
Or add to .vscode/mcp.json:
{
"servers": {
"stytch": {
"type": "http",
"url": "https://mcp.stytch.dev/mcp"
}
}
}- Open Settings → Connectors (Integrations) → Add Custom Connector.
- Paste the endpoint URL:
https://mcp.stytch.dev/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": {
"stytch": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://mcp.stytch.dev/mcp"
]
}
}
}Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"stytch": {
"serverUrl": "https://mcp.stytch.dev/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": {
"stytch": {
"url": "https://mcp.stytch.dev/mcp"
}
}
}Add to ~/.codex/config.toml — Codex reads remote HTTP servers from [mcp_servers.*] tables:
[mcp_servers.stytch] url = "https://mcp.stytch.dev/mcp"
Add to cline_mcp_settings.json (Cline → MCP Servers → Configure), or paste it via Cline's MCP marketplace file:
{
"mcpServers": {
"stytch": {
"type": "streamableHttp",
"url": "https://mcp.stytch.dev/mcp"
}
}
}Add to ~/.gemini/settings.json under mcpServers — httpUrl for Streamable HTTP, url for legacy SSE:
{
"mcpServers": {
"stytch": {
"httpUrl": "https://mcp.stytch.dev/mcp"
}
}
}接続手順
- 追加コマンドを実行 —
claude mcp add --transport http stytchhttps://mcp.stytch.dev/mcp`` を実行します。 - 認証を完了 — 初回呼び出し時に Stytch の OAuth 認可画面が開きます。許可するとツールが有効になります。Claude Code 内で
/mcpを実行すると OAuth フローが開始されます。 - 状態を確認 —
claude mcp listで接続済みと表示されれば成功です。OAuth コールバックが失敗する場合はclaude mcp remove stytchで削除して再追加し、ブラウザからコールバック URL へ到達できるか確認してください。オンライン Inspector にhttps://mcp.stytch.dev/mcpを貼り付け、initialize と tools/list を実行して接続を確認します。
🧰 ツール一覧(6)
| Tool | Safety | Description | Parameters |
|---|---|---|---|
| search_users ~65 tok | 🟢 Read | Search users by email, phone or metadata. | query*: stringlimit: number |
| get_user ~50 tok | 🟢 Read | Get a user's identifiers and auth factors. | userId*: string |
| list_organizations ~46 tok | 🟢 Read | List B2B organizations. | query: string |
| get_organization_members ~56 tok | 🟢 Read | List members of a B2B organization. | organizationId*: string |
| create_member ~69 tok | 🟠 Write | Add a member to a B2B organization. | organizationId*: stringemail*: string |
| list_sessions ~61 tok | 🟢 Read | List sessions for a user or member. | userId: stringmemberId: string |