Bring Sso
to Mastra AI
Create your Vinkius account to connect WorkOS to Mastra AI and start using all 10 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 WorkOS MCP Server?
Connect your WorkOS account to any AI agent and manage your enterprise identity infrastructure through natural conversation.
What you can do
- Organization Management — Browse and list all enterprise organizations (tenants), create new records, and manage authorized domains
- SSO Monitoring — List and audit active Single Sign-On (SSO) connections (SAML, OIDC) configured for your enterprise customers
- Directory Sync — Monitor active HRIS and SCIM directory instances and retrieve deep details on sync status and provider types
- Roster Management — Retrieve the complete list of users and organizational groups synced from external directories directly from your agent
- Audit Compliance — Stream and retrieve audit log events for any organization to monitor security and compliance activities
- Tenant Insights — Quickly find unique organization, connection, and directory IDs required for enterprise feature configuration
- Connectivity Health — Verify the status and metadata of SSO links and directory connections to ensure uptime
How it works
- Subscribe to this server
- Enter your WorkOS API Key
- Start managing your enterprise features through Claude, Cursor, or any MCP-compatible client
No more manual navigation through the WorkOS dashboard to check a directory sync status. Your AI agent becomes your enterprise identity administrator.
Who is this for?
- Enterprise Engineers — monitor SSO connection health and troubleshoot directory sync issues through simple chat commands
- Product Managers — audit the list of organizations and verified domains for roadmap and launch planning
- Security & Compliance Teams — retrieve audit logs and monitor user groups for access control verification
- Support Teams — quickly lookup organization details and user rosters to provide rapid technical assistance
Built-in capabilities (10)
Provide the name and a list of authorized domains. Creates a new organization record
Returns a stream of events tracked in the organization. Retrieves audit log events for an organization
g. Okta, Azure AD) of a directory ID. Retrieves metadata for a specific directory instance
Retrieves details for a specific organization
Retrieves details for a specific SSO connection
Lists all active Directory Sync instances
Lists all groups synced from a directory
Lists all users synced from a directory
Lists all active SSO connections
Lists all organizations in the WorkOS account
Why Mastra AI?
Mastra's agent abstraction provides a clean separation between LLM logic and WorkOS tool infrastructure. Connect 10 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 WorkOS 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 WorkOS 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
WorkOS in Mastra AI
Why run WorkOS with Vinkius?
The WorkOS 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 10 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 WorkOS using Vinkius. You will never be left in the dark about what your AI agents are doing with your tools.
WorkOS and 4,000+ other AI tools. No hosting, no code, ready to use.
Professionals who connect WorkOS 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
WorkOS for Mastra AI
Every request between Mastra AI and WorkOS 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 check the sync status of a specific company directory through the agent?
Yes. The get_directory_details tool allows your AI agent to retrieve the current sync status and metadata for any specific directory ID, helping you monitor whether employees are being correctly provisioned.
How do I see which users belong to a specific synced group?
You can use the list_directory_users tool and filter by the directory ID to see the full roster. For group-level information, use the list_directory_groups tool to see organizational units imported from the identity provider.
Is it possible to retrieve security audit logs via chat?
Absolutely. The get_audit_log_events tool retrieves a stream of events for any specific organization ID, giving you instant access to compliance-related activities directly through your conversation.
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 →
Customer.io
10 toolsEquip your AI agent to manage customer engagement, trigger automated campaigns, and track messaging metrics via the Customer.io API.

UUID Generator API
2 toolsGenerate unique identifiers — audit UUIDs and versions via AI.

LangGraph Cloud (Stateful AI Agents)
10 toolsOrchestrate stateful AI agents via LangGraph Cloud — manage assistants, monitor conversation threads, and handle human-in-the-loop overrides.

Workday
9 toolsManage workers, payroll data, org structures, and HR workflows on Workday — the enterprise HCM platform.
