Bring Authentication
to Mastra AI
Create your Vinkius account to connect Clerk to Mastra AI and start using all 8 AI tools in minutes. Fully managed, enterprise secure, and ready to use without writing a single line of code. No hosting, no server setup — just connect and start using.
Compatible with every major AI agent and IDE
What is the Clerk MCP Server?
Connect your Clerk account to any AI agent and take full control of your authentication and user management through natural conversation. Streamline how you monitor your user base and B2B organizations natively.
What you can do
- User Oversight — List and retrieve details for all users in your application, including metadata and status natively
- Session Intelligence — Access and monitor all active user sessions across your platforms flawlessly
- Organization Logistics — List and manage B2B organizations and their member rosters securely
- Invitation Tracking — Access and review all pending and completed user invitations flawlessly
- Allowlist Management — List identifiers like emails and domains on your authentication allowlist flawlessly
- Dashboard Visibility — Retrieve a high-level summary of user counts and system health directly within your workspace
How it works
- Subscribe to this server
- Enter your Clerk Secret Key (obtained from your dashboard API Keys)
- Start managing your authentication from Claude, Cursor, or any MCP-compatible client
Who is this for?
- Developers — monitor user signups and verify session status using natural language
- Customer Support — quickly look up user profiles and organization memberships without opening the dashboard
- Product Managers — audit invitation success rates and active user counts straight from their chat interface
- Operations Teams — verify authentication allowlists and system health
Built-in capabilities (8)
Retrieve a summary of user counts and system health
Get detailed information for a specific user
List all active user sessions
List identifiers (emails, domains) on the authentication allowlist
List all tracking clients (browser/device instances)
List all organizations (B2B) in the application
List all users in your Clerk application
List all pending and completed user invitations
Why Mastra AI?
Mastra's agent abstraction provides a clean separation between LLM logic and Clerk tool infrastructure. Connect 8 tools through Vinkius and use Mastra's built-in workflow engine to chain tool calls with conditional logic, retries, and parallel execution. deployable to any Node.js host in one command.
- —
Mastra's agent abstraction provides a clean separation between LLM logic and tool infrastructure. add Clerk without touching business code
- —
Built-in workflow engine chains MCP tool calls with conditional logic, retries, and parallel execution for complex automation
- —
TypeScript-native: full type inference for every Clerk tool response with IDE autocomplete and compile-time checks
- —
One-command deployment to any Node.js host. Vercel, Railway, Fly.io, or your own infrastructure
Clerk in Mastra AI
Why run Clerk with Vinkius?
The Clerk connection runs on our fully managed, secure cloud infrastructure. We handle the hosting, maintenance, and security so you don't have to deal with servers or code. All 8 tools are ready to work instantly without any complex setup.
You stay in complete control of your data. Your AI only accesses the information you approve, keeping your sensitive passwords and private details completely safe. Plus, with automatic optimizations, your AI works faster and more efficiently.

* Every connection is hosted and maintained by Vinkius. We handle the security, updates, and infrastructure so you don't have to write code or manage servers. See our infrastructure
Over 4,000 integrations ready for AI agents
Explore a vast library of pre-built integrations, optimized and ready to deploy.
Connect securely in under 30 seconds
Generate tokens to authenticate and link external services in a single step.
Complete visibility into every agent action
Audit live requests, latency, success rates, and active security compliance policies.
Optimize spending and track token ROI
Analyze real-time token consumption and cost metrics detailed by connection.




Explore our live AI Agents Analytics dashboard to see it all working
This dashboard is included when you connect Clerk using Vinkius. You will never be left in the dark about what your AI agents are doing with your tools.
Clerk and 4,000+ other AI tools. No hosting, no code, ready to use.
Professionals who connect Clerk to Mastra AI through Vinkius don't need to write code, manage servers, or worry about security. Everything is pre-configured, secure, and runs automatically in the background.
Raw MCP | Vinkius | |
|---|---|---|
| Ready-to-use MCPs | Find and configure each manually | 4,000+ MCPs ready to use |
| Connection Setup | Manual coding & server setup | 1-click instant connection |
| Server Hosting | You host it yourself (needs 24/7 uptime) | 100% hosted & managed by Vinkius |
| Security & Privacy | Stored in plaintext config files | Bank-grade encrypted vault |
| Activity Visibility | Blind execution (no logs or tracking) | Live dashboard with real-time logs |
| Cost Control | Runaway AI token spend risk | Automatic budget limits |
| Revoking Access | Must delete files or code to stop | 1-click disconnect button |
How Vinkius secures
Clerk for Mastra AI
Every request between Mastra AI and Clerk is protected by our secure gateway. We automatically keep your sensitive data private, prevent unauthorized access, and let you disconnect instantly at any time.
Frequently asked questions
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 does Mastra AI connect to MCP servers?
Create an MCPClient with the server URL and pass it to your agent. Mastra discovers all tools and makes them available with full TypeScript types.
Can Mastra agents use tools from multiple servers?
Yes. Pass multiple MCP clients to the agent constructor. Mastra merges all tool schemas and the agent can call any tool from any server.
Does Mastra support workflow orchestration?
Yes. Mastra has a built-in workflow engine that lets you chain MCP tool calls with branching logic, error handling, and parallel execution.
createMCPClient not exported
Install: npm install @mastra/mcp
Explore More MCP Servers
View all →
Kisi
10 toolsControl building access with cloud-managed smart locks, mobile credentials, and audit trails that replace traditional key cards.

FirstQuadrant Alternative
59 toolsOrchestrate AI-driven sales and marketing campaigns. Manage API keys, user registration, and campaign execution directly through your AI agent.

CTA
11 toolsAccess Chicago transit data via CTA — track L trains and buses in real-time, check arrivals, monitor service alerts, and plan trips from any AI agent.

IBGE Economia — CNAE Activities
5 toolsNavigate Brazil's entire economic taxonomy: 1,332 CNAE activity codes across 21 sectors, 87 divisions, 285 groups — the definitive resource for business classification, compliance, and market analysis.
