# Clerk MCP for AI Agents AI Agent Connect

> Clerk MCP lets you manage your entire authentication system through a chat interface. You can manage users, track active sessions, handle B2B organizations, and monitor invitations without leaving your AI client. It connects directly to your Clerk account to give your agent full visibility into your app's user base.

## Overview
- **Category:** developer-tools
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_7XnA6xuWB72v1UnIZ6TzAv9H72ZIelbzJwxTqPmA/ai-agent-connect
- **Tags:** authentication, user-management, sso, multi-factor-auth, session-handling, user-profiles

## Description

Instead of jumping between different tabs to see who's logged in or who's waiting for an invite, you can just ask your agent to do the heavy lifting. This Connector connects your Clerk account to your AI client so you can handle the routine stuff of identity management through a simple conversation. You'll be able to pull up specific user profiles, see which organizations are active, and check your allowlists in seconds. It takes the friction out of admin tasks, whether you're troubleshooting a login issue or auditing your B2B member rosters. Since Vinkius hosts this Connector, you can plug it into your existing workflow and get started immediately. You get a clear view of your system health and user counts without having to navigate complex dashboard menus. It's about getting answers and making changes to your auth settings as fast as you can think of them.

## Tools

### create_auth_invitation
Send an invitation

### create_auth_organization
Create an organization

### get_auth_user_details
Get user details

### list_auth_invitations
List invitations

### list_auth_organizations
List organizations

### list_auth_users
List all users

## Prompt Examples

**Prompt:** 
```
List all users in Clerk.
```

**Response:** 
```
Retrieving your user list... I found 150 total users. The most recent signup was John Doe (john@example.com) yesterday. Would you like to see more details?
```

**Prompt:** 
```
Show me the dashboard summary for my auth system.
```

**Response:** 
```
Analyzing auth dashboard... You have 150 total users, 12 active sessions right now, and 5 pending invitations. The system health is optimal.
```

**Prompt:** 
```
Check the status of invitation ID 'inv_12345'.
```

**Response:** 
```
Checking invitation inv_12345... This invitation was sent to sarah@example.com and is currently 'Pending'. It has not been accepted yet.
```

## Capabilities

### Pull user profiles
Get detailed information for specific users to troubleshoot account issues.

### Monitor active sessions
See who is currently online across all your platforms in real time.

### Manage B2B organizations
List and handle organization rosters for your B2B customers.

### Track invitations
Review all pending and completed user invitations in one place.

### Audit allowlists
Check which emails and domains are currently on your authentication allowlist.

### Get system health summaries
See a high-level overview of your user counts and general system status.

## Use Cases

### Support Ticket Triage
A support rep gets a user ID and asks the agent to pull the profile to see if they're in an organization.

### Security Audit
An admin asks the agent to list all active sessions to find suspicious logins from unusual locations.

### B2B Onboarding
A manager asks the agent to list all organizations to see which companies are currently signed up.

### Growth Tracking
A product lead asks for a dashboard summary to see the total user count and system health for a weekly meeting.

## Benefits

- Stop jumping between tabs by using list_clerk_users to see your entire user base in one view.
- Quickly resolve support tickets by pulling specific account data with get_user_auth_details.
- Monitor your platform's traffic in real time using list_active_sessions to spot anomalies.
- Handle B2B onboarding faster by managing member rosters through list_clerk_organizations.
- Stay on top of your growth by reviewing list_sent_invitations to see who's actually joining.
- Keep your security tight by auditing your list_auth_allowlist directly through your agent.

## How It Works

The bottom line is you get a direct line of communication to your Clerk auth data without leaving your chat window.

1. Subscribe to the Clerk MCP on Vinkius.
2. Paste your Clerk Secret Key from your dashboard into the configuration.
3. Ask your agent to list users or check sessions to start managing your auth data.

## Frequently Asked Questions

**Can I use the Clerk MCP to manage my B2B organizations?**
Yes, you can list and manage your organizations and their member rosters directly through your AI client.

**How do I check active user sessions with Clerk?**
Just ask your agent to list active sessions, and it will show you every current session across your platforms.

**Can this Connector help with user support?**
It's great for support. You can pull detailed user profiles and auth details to help users with login issues quickly.

**Does the Clerk MCP show my system health?**
Yes, you can get a high-level summary of your user counts and overall system health with a single request.

**Can I see pending invitations?**
You can list all pending and completed invitations to see who's on the way to join your app.

**Is there a way to check my auth allowlist?**
You can ask the agent to list your allowlist to see which emails and domains are permitted.

**Can I see how many users are currently logged in?**
Yes! Use the `list_active_sessions` tool. The agent will return a list of all current sessions, allowing you to gauge real-time platform activity.

**How do I check if a specific user belongs to an organization?**
Use the `list_clerk_organizations` tool to find the organization and then review its members, or use `get_user_auth_details` to see the user's specific organization memberships.

**Where do I find my Clerk Secret Key?**
Log in to your Clerk Dashboard, select your application, and navigate to **API Keys**. You can find your Secret Key starting with `sk_` there.

**How do I find my Clerk Secret Key?**
Log in to the [**Clerk Dashboard**](https://dashboard.clerk.com/), select your application, and navigate to **API Keys** in the sidebar.

**Can I manage organizations via AI?**
Yes! The `create_auth_organization` and `list_auth_organizations` tools allow your agent to manage B2B tenants and teams programmatically.

**How do I send a user invitation?**
Use the `create_auth_invitation` tool and provide the recipient's email address. You can also specify an optional redirect URL for the signup flow.