How to integrate WorkOS MCP with Hermes

Connect Hermes to WorkOS MCP. Sync new users from okta directory, create invitation links for pending users, and more using natural language, with authentication handled for you.

WorkOS logoWorkOS
Api Key

WorkOS is an enterprise identity and user management API for directory sync, connections, invitations, and users. Use it to centralize SSO, provisioning, and directory synchronization across providers.

29 Tools

Introduction

Hermes is a 24/7 autonomous agent that lives on your computer or server — it remembers what it learns and evolves as your usage grows.

This guide explains the easiest and most robust way to connect your WorkOS account to Hermes. You can do this through either Composio Connect CLI or Composio Connect MCP. For personal use we recommend the CLI, but you won't go wrong with MCP either.

Also integrate WorkOS with

What is Composio Connect?

Composio Connect is a consumer offering that lets anyone plug 1,500+ applications directly into their agent harness — including Hermes. It can:

  • Search and load tools from relevant toolkits on-demand, reducing context usage.
  • Chain multiple tools to accomplish complex workflows via a remote workbench, without excessive back-and-forth with the LLM.
  • Manage app authentication end-to-end with zero manual overhead.

Integrating WorkOS with Hermes

Using Composio Connect CLI

1. Install the Composio CLI

Run the install script directly, or paste https://composio.dev/hermes into your Hermes chat box to have it installed for you.

bash
curl -fsSL https://composio.dev/install | bash
Hermes authenticating with Composio

2. Authenticate

Once the CLI is installed, ask Hermes to authenticate with Composio.

3. Connect to WorkOS

Ask your agent to connect to WorkOS, or simply request any WorkOS-related task. Hermes will prompt you to authenticate and authorize access.

4. Done. You're all set with a new WorkOS connection.


Using Composio Connect MCP

1. Get your MCP URL and API Key

Go to dashboard.composio.dev and copy your Connect MCP URL and API key.

Copy MCP URL and API key from Composio dashboard

2. Open the Hermes config file

bash
nano ~/.hermes/config.yaml

3. Add the Composio Connect MCP server

bash
mcp_servers:
  composio:
    url: "https://connect.composio.dev/mcp"
    headers:
      x-consumer-api-key: "YOUR_COMPOSIO_API_KEY"
    connect_timeout: 60
    timeout: 180

Save with Ctrl + O, Enter, then exit with Ctrl + X.

4. Restart your Hermes agent

Once restarted, ask your agent to connect to WorkOS or request any WorkOS-related task. It will prompt you to authenticate and authorize access.

5. Done!

What is the WorkOS MCP server, and what's possible with it?

The WorkOS MCP server is an implementation of the Model Context Protocol that connects your AI agent and assistants like Claude, Cursor, etc directly to your WorkOS account. It provides structured and secure access to your organizations, users, memberships, invitations, connections, and directories, so your agent can manage users, organize access, send invitations, review connections, and inspect directory data on your behalf.

  • Organization management: Have your agent create, review, update, list, or delete organizations based on your instructions.
  • User and membership administration: Let the agent create, find, update, or delete users, grant organization membership, change assigned roles, adjust membership status, or remove access.
  • Invitation management: Direct your agent to send invitations, check their status, list invitations by organization or recipient, resend pending invitations, or revoke them.
  • Directory Sync insights: Instruct your agent to review connected directories and retrieve directory users and groups, including user attributes, roles, and group details available in WorkOS.
  • Connection discovery: Have your agent find and review your SSO and OAuth connections by organization, domain, connection type, or name.

Way Forward

With WorkOS connected, Hermes can now act on your behalf whenever it detects a relevant task or you ask it to.

From here, you can extend Hermes further:

  • Connect more apps: Calendar, Slack, Notion, Linear, and hundreds of others are available through the same Composio Connect setup. Each new integration compounds what Hermes can do for you.
  • Build workflows across tools: Once multiple apps are connected, Hermes can chain actions together — turn an email into a calendar invite, a Slack message into a Linear ticket, or a meeting note into a follow-up draft.
  • Let it learn your patterns: The more you use Hermes, the better it gets at anticipating how you'd handle recurring tasks. Give it feedback on drafts and decisions, and it will adapt.

If you run into trouble or want to share what you've built, join the community or check out the Docs for deeper configuration options.

TOOLS

Supported Tools

Every WorkOS action and event your agent gets out of the box.

Create Organization

Create a WorkOS organization in the connected environment.

Create Organization Membership

Grant an AuthKit user active membership in an organization.

Create User

Create a passwordless AuthKit user record in the connected WorkOS environment.

Delete Organization

Permanently delete a WorkOS organization.

Delete Organization Membership

Permanently remove an organization membership and its access.

Delete User

Permanently delete an AuthKit user.

Get Connection

Get one WorkOS connection by ID.

Get Directory

Get one WorkOS Directory Sync directory by ID.

Get Directory Group

Get one WorkOS Directory Sync group by its exact group ID.

Get Directory User

Get one WorkOS Directory Sync user by exact ID, including identity-provider attributes, roles, and any groups returned by WorkOS.

Get Invitation

Get WorkOS AuthKit invitation status and metadata by invitation ID without exposing acceptance credentials.

Get Organization

Get one WorkOS organization by its WorkOS ID or external ID.

Get Organization Membership

Get one WorkOS AuthKit organization membership by ID.

Get User

Get one WorkOS AuthKit user by WorkOS ID or external ID.

List Connections

List one page of WorkOS SSO and OAuth connections, optionally filtered by connection type, domain, organization, or name.

List Directories

List one page of WorkOS Directory Sync directories, optionally filtered by organization, directory name, or domain.

List Directory Groups

List one page of WorkOS Directory Sync groups for a directory, a directory user, or both.

List Directory Users

List one page of WorkOS Directory Sync users for a directory or group, optionally filtering a directory by exact identity-provider ID or primary email.

List Invitations

List one page of WorkOS AuthKit invitations by organization or exact recipient email without exposing acceptance credentials.

List Organization Memberships

List one page of WorkOS AuthKit organization memberships for a specific organization or user, optionally including inactive or pending memberships.

List Organizations

List one page of WorkOS organizations, optionally filtered by domain or organization name.

List Users

List one page of WorkOS AuthKit users, optionally filtered by organization or exact email address.

Resend Invitation

Send another real invitation email to the existing recipient of a pending WorkOS AuthKit invitation.

Revoke Invitation

Revoke a pending AuthKit invitation so it can no longer be accepted.

Send Invitation

Create an AuthKit invitation and immediately send a real invitation email to the recipient.

Set Organization Membership Status

Activate or deactivate a WorkOS organization membership without deleting it.

Update Organization

Update selected properties of an existing WorkOS organization.

Update Organization Membership Roles

Replace the role assignment on an existing WorkOS organization membership.

Update User

Update selected profile fields on an AuthKit user without invoking email delivery flows.

FAQ

Frequently asked questions

With a standalone WorkOS MCP server, the agents and LLMs can only access a fixed set of WorkOS tools tied to that server. However, with the Composio Tool Router, agents can dynamically load tools from WorkOS and many other apps based on the task at hand, all through a single MCP endpoint.

Yes, you can. Hermes fully supports MCP integration. You get structured tool calling, message history handling, and model orchestration while Tool Router takes care of discovering and serving the right WorkOS tools.

Yes, absolutely. You can configure which WorkOS scopes and actions are allowed when connecting your account to Composio. You can also bring your own OAuth credentials or API configuration so you keep full control over what the agent can do.

All sensitive data such as tokens, keys, and configuration is fully encrypted at rest and in transit. Composio is SOC 2 Type 2 compliant and follows strict security practices so your WorkOS data and credentials are handled as safely as possible.

Start with WorkOS.It takes 30 seconds.

Managed auth, hosted MCP servers, and every WorkOS tool your agent needs.Free to start.

Start building