---
canonical_url: "https://docs.composio.dev/toolkits/workos_mcp"
markdown_url: "https://docs.composio.dev/toolkits/workos_mcp.md"
product: "platform"
version: null
last_updated: null
---

# WorkOS MCP

Query and manage WorkOS organizations, users, directories, SSO connections and other account resources through WorkOS's hosted MCP server.

- **Category:** model context protocol
- **Auth:** DCR_OAUTH
- **Composio-managed OAuth available?** No
- **Tools:** 5
- **Triggers:** 0
- **Slug:** `WORKOS_MCP`
- **Version:** 00000000_00

## Tools

### List operations

**Slug:** `WORKOS_MCP_LIST_OPERATIONS`

Discover the WorkOS operations available through the query and mutate tools. Without arguments, returns the full index of operation names — call it once and reuse the result. Pass filter to narrow the index by keyword (operation name or description). Pass operation for that operation’s parameters and input types, or type to fully expand a specific input/enum type by name. Call whoami to see available environments and their IDs.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `type` | string | No | An input or enum type name (e.g. one named in an operation’s parameters) to fully expand — use this to resolve deeply nested input shapes without triggering an error. |
| `filter` | string | No | Case-insensitive keyword to narrow the index by operation name or description, e.g. "branding", "sso", "organization". |
| `operation` | string | No | An operation name from the index to get its parameters and input types. |

### Mutate

**Slug:** `WORKOS_MCP_MUTATE`

Run a mutation against your WorkOS account by name. Mutations change real data in the targeted environment. Call list_operations first to discover available operations and their parameters. Pass environment_id to choose the environment (whoami returns your available environments); when the operation declares an environmentId parameter it is applied automatically, so you don’t pass it twice. Without environment_id, operations that don’t require one run against a sandbox environment. Destructive operations (permanent deletes) and billing changes require a confirmation token — the first call returns the impact plus a single-use "confirmation_token" and does not execute; pass the token back with the same arguments to proceed.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `operation` | string | Yes | The mutation name from list_operations, e.g. 'createOrganization'. |
| `variables` | object | No | Parameters for the operation, keyed by name (without the $). See list_operations for each operation’s parameters. |
| `environment_id` | string | No | The WorkOS environment to operate in (returned by whoami). Defaults to a sandbox environment. When the operation declares an environmentId parameter, this value is applied to it automatically. |
| `confirmation_token` | string | No | Single-use token issued by a prior call to this operation (a permanent deletion or a billing change). Pass it back with the same arguments to execute. Ignored by operations that don’t require confirmation. |

### Query

**Slug:** `WORKOS_MCP_QUERY`

Run a query against your WorkOS account by name. Call list_operations first to discover available operations and their parameters. Pass environment_id to choose the environment (whoami returns your available environments); when the operation declares an environmentId parameter it is applied automatically, so you don’t pass it twice. Without environment_id, operations that don’t require one run against a sandbox environment.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `operation` | string | Yes | The query name from list_operations, e.g. 'organizations'. |
| `variables` | object | No | Parameters for the operation, keyed by name (without the $). See list_operations for each operation’s parameters. |
| `environment_id` | string | No | The WorkOS environment to operate in (returned by whoami). Defaults to a sandbox environment. When the operation declares an environmentId parameter, this value is applied to it automatically. |

### Submit feedback

**Slug:** `WORKOS_MCP_SUBMIT_FEEDBACK`

Report a WorkOS MCP bug, missing capability, or confusing behavior to the WorkOS team. Include what you tried, what you expected, what happened, and any workaround. Send one concise report per distinct issue, even if you recovered. Omit credentials, personal data, and full request or response payloads. This sends feedback to WorkOS; it does not open a support case or fix the issue.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `message` | string | Yes | A concise issue report with expected and actual behavior. No secrets or personal data. |
| `operation` | string | No | The affected MCP tool or WorkOS operation, if known. |

### Whoami

**Slug:** `WORKOS_MCP_WHOAMI`

Return the identity, role, and capability posture of the authenticated caller. Includes the team, a description of what the role can and cannot do, and the available environments grouped by project, each with its ID and OAuth client ID. Environment names repeat across projects, so identify an environment by its client ID (match the WORKOS_CLIENT_ID in the app’s config) or by its project, not by name. Use the returned environment IDs as the environment_id argument for query and mutate calls.
