other
Clerk MCP Integration for OpenAI Agents SDK
Connect Clerk to OpenAI Agents SDK through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.
Connect Clerk to OpenAI Agents SDK
Attach KosmoKrator integration tools to OpenAI Agents SDK workflows through a local MCP gateway.
Start the KosmoKrator MCP gateway locally and point the OpenAI Agents SDK MCP tool at that process or wrapper. The gateway is local, scoped to this integration, and starts with
--write=deny so OpenAI Agents can inspect read-capable tools without receiving write access by default.
Clerk MCP Config for OpenAI Agents SDK
Use headless JSON commands for CI-style execution and MCP for agent tool discovery.
{
"mcpServers": {
"kosmokrator-clerk": {
"type": "stdio",
"command": "kosmo",
"args": [
"mcp:serve",
"--integration=clerk",
"--write=deny"
]
}
}
} Run the Gateway Manually
kosmokrator mcp:serve --integration=clerk --write=deny Why Use KosmoKrator Here
Expose only Clerk instead of a broad multi-service tool list.
Reuse credentials already configured for the KosmoKrator CLI and Lua runtime.
Start read-only, then opt into ask or allow for trusted workspaces.
Clerk Tools Visible to OpenAI Agents
OpenAI Agents sees stable MCP tool names generated from the Clerk integration catalog.
| MCP tool | Source function | Type | Description |
|---|---|---|---|
integration__clerk__clerk_list_users | clerk.clerk_list_users | Read | List users from Clerk with optional filtering and pagination. Returns user IDs, emails, names, and profile details. |
integration__clerk__clerk_get_user | clerk.clerk_get_user | Read | Retrieve a single Clerk user by their user ID. Returns full profile details including email, name, and metadata. |
integration__clerk__clerk_create_user | clerk.clerk_create_user | Write | Create a new user in Clerk. Requires at least one email address. Optionally set name, password, and username. |
integration__clerk__clerk_update_user | clerk.clerk_update_user | Write | Update an existing Clerk user's profile. Provide the user ID and fields to update. |
integration__clerk__clerk_delete_user | clerk.clerk_delete_user | Write | Delete a user from Clerk. This action is irreversible and will remove all associated data. |
integration__clerk__clerk_list_organizations | clerk.clerk_list_organizations | Read | List organizations from Clerk with optional filtering and pagination. Returns organization IDs, names, and metadata. |
integration__clerk__clerk_get_current_user | clerk.clerk_get_current_user | Read | Health check — verify Clerk API connectivity by fetching the first user. Returns a single user or empty result to confirm the API is reachable. |