View as Markdown

Clerk Integration

Manage Clerk users, organizations, sessions, and authentication settings

The Clerk integration provides access to manage Clerk users, organizations, sessions, and authentication settings through the Integrate MCP server.

Installation

The Clerk integration is included with the SDK:

import { clerkIntegration } from "integrate-sdk/server";

Setup

Add Clerk to your server configuration. Provide credentials via environment variables or integration config:

import { createMCPServer, clerkIntegration } from "integrate-sdk/server";
 
export const { client: serverClient } = createMCPServer({
  apiKey: process.env.INTEGRATE_API_KEY,
  integrations: [
    clerkIntegration({
      // See configuration options below
    }),
  ],
});

Client-Side Usage

import { client } from "integrate-sdk";
 
const result = await client.clerk.listUsers({});
 
console.log(result);

Environment Variables

  • CLERK_API_KEY (when supported by this integration)

Configuration Options

export interface ClerkIntegrationOptions {
  /** Clerk secret key (defaults to CLERK_SECRET_KEY env var) */
  secretKey?: string;

Tools

clerk_list_users

List users

export interface ClerkListUsersParams {
    limit?: number;

clerk_get_user

Get user

export interface ClerkGetUserParams { user_id: string }

clerk_create_user

Create user

export interface ClerkCreateUserParams {
    payload?: string;

clerk_update_user

Update user

export interface ClerkUpdateUserParams { user_id: string;

clerk_delete_user

Delete user

export interface ClerkDeleteUserParams { user_id: string }

clerk_list_organizations

List organizations

export interface ClerkListOrganizationsParams {
    limit?: number;

clerk_get_organization

Get organization

export interface ClerkGetOrganizationParams { organization_id: string }

clerk_create_organization

Create organization

export interface ClerkCreateOrganizationParams {
    name: string;

clerk_update_organization

Update organization

export interface ClerkUpdateOrganizationParams {
    organization_id: string;

clerk_delete_organization

Delete organization

export interface ClerkDeleteOrganizationParams { organization_id: string }

clerk_list_sessions

List sessions

export interface ClerkListSessionsParams {
    limit?: number;

clerk_get_session

Get session

export interface ClerkGetSessionParams { session_id: string }

clerk_revoke_session

Revoke session

export interface ClerkRevokeSessionParams { session_id: string }

Notes

  • Category: Identity & Access
  • Authentication mode: API key