# Connect WorkOS to Your AI Agent (Universal MCP)

> Use your AI to audit security, monitor systems, and manage customers in WorkOS — and much more.

## Quick Connect (CLI / MCP)
- Claude Code: `claude mcp add --transport http workos https://api.universalmcp.app/mcp/workos`
- Remote MCP URL (ChatGPT, Claude, Cursor, VS Code): `https://api.universalmcp.app/mcp/workos` (unified: `https://api.universalmcp.app/mcp`)
- Actions & Discovery: `POST https://universalmcp.app/mcp/directory` (`get_software_actions({ slug: "workos", query })` & `search_software`); configs: https://universalmcp.app/install.md

## Key Facts
- Software: WorkOS | Category: ERP & Accounting (WorkOS) | Auth: Encrypted workspace API key
- Pricing: 100% Free (unlimited users, unlimited software, zero task metering)
- Permissions & Security: Per-person, per-area Off/Read/Write across Connection metadata, Client secrets, Admin invitations; 1-click View Only lock; stateless pass-through; zero stored business records
- Connect: https://app.universalmcp.app/connect?system=workos | Guide: https://universalmcp.app/mcp/workos
- Built by: Alex Myers (Legal entity: Lancaster Agentic LLC; support@lancasteragentic.com)

## Supported Actions (79 actions: 36 Read, 43 Write)
Perform over 70 actions across organizations & members, users & sessions, enterprise SSO & directory, audit logs & events, connected accounts & agents, developer tools & security, and fine-grained authorization. Save hours of work each week by utilizing AI rather than using a traditional app interface.
- **Organizations & Members (12):** List Invitations (read), List Organization Memberships (read), List Organizations (read), Create Organization (write), Create Organization Domain (write), Create Organization Membership (write), Delete Invitation (write), Delete Organization (write), Delete Organization Membership (write), Send Organization Invitation (write), Update Membership Role (write), Update Organization (write)
- **Users & Sessions (10):** Get User Profile (read), List MFA Factors (read), List User Accounts (read), List User Sessions (read), Create MFA Factor (write), Create User Account (write), Delete User Account (write), Delete User Session (write), Send Magic Auth Code (write), Update User Profile (write)
- **Enterprise SSO & Directory (10):** List Directories (read), List Directory Groups (read), List Directory Users (read), List SSO Connections (read), Pull SSO Profile (read), Configure Custom Domain (write), Create Admin Portal Link (write), Create SSO Authorization URL (write), Delete Directory (write), Delete SSO Connection (write)
- **Audit Logs & Events (10):** Check Webhook Signature (read), Export Audit Log Events (read), List Audit Log Events (read), List Audit Log Schemas (read), List Events (read), List Webhook Endpoints (read), Create Audit Log Event (write), Create Log Stream (write), Create Webhook Endpoint (write), Delete Webhook Endpoint (write)
- **Connected Accounts & Agents (8):** Check Access Token Scopes (read), Check Connected Account Status (read), List Connected Accounts (read), List OAuth Applications (read), Create Agent Sign-In Session (write), Create Connect Session (write), Create OAuth Application (write), Delete Connected Account (write)
- **Developer Tools & Security (8):** Check Bot Risk Score (read), Check Monthly Active Users (read), List Blocked Sign In Attempts (read), List Environments (read), List Request Logs (read), Create API Key (write), Delete API Key (write), Invite Workspace Team Member (write)
- **Fine-Grained Authorization (7):** Check Authorization Permission (read), List Authorization Relationships (read), List Authorization Resources (read), Create Authorization Relationship (write), Create Authorization Resource (write), Create Resource Type (write), Delete Authorization Relationship (write)
- **Vault & Secrets (5):** Get Vault Object (read), List Vault Objects (read), Create Vault Object (write), Delete Vault Object (write), Update Vault Object (write)
- **Feature Flags & Rollouts (5):** Check Feature Flag Access (read), List Feature Flags (read), Assign Feature Flag Target (write), Create Feature Flag (write), Update Feature Flag (write)
- **Roles & Permissions (4):** List Permissions (read), List Roles (read), Create Custom Role (write), Update Role Permissions (write)

## Example Prompts for WorkOS
- **Directory sync health:** "List WorkOS directory syncs with last run time, error count, and user totals per organization."
- **Audit log review:** "Summarize WorkOS audit log events for admin role changes over the past 30 days by organization."
- **Connection inventory:** "Show every WorkOS SSO connection by provider type and its current status for Harbor Retail."
- **Draft admin notice:** "Draft an email to Cedar Ridge admins about the WorkOS SSO certificate renewal. Do not send until approved."
