Skip to main content
At AWS re:Invent? We're in Las Vegas Nov 30 – Dec 2. Let's meet in person. Let's meet.Pick a time

Set up the Okta MCP server (Hosted)

The Okta MCP server gives AI agents access to your Okta organization: user lifecycle management, group membership, application provisioning, policy management, and system log retrieval. This guide covers both ways the connector signs in to Okta, with the Okta setup and the Mintive (formerly MintMCP) install for each.

Prerequisites​

  • A Mintive admin account
  • An Okta organization with super administrator access

Choose how users sign in​

The connector offers two sign-in methods, and you pick one when installing.

MethodWho the agent acts asSet up in Okta
Service accountOne shared Okta API Services app, for everyoneAn API Services app with a key pair, scopes, and an admin role
OAuthEach user's own Okta account, with their own admin roleAn OIDC web app for Mintive

Use OAuth when people should only do what their own Okta admin role allows, and when Okta's System Log should show the real user. Use the service account when you want one fixed set of permissions for every agent.

Set up Okta and add the server to Mintive​

Pick a method below. Each tab sets up the Okta side first, then installs the connector in Mintive.

The connector authenticates to Okta with Private Key JWT, a headless flow with no browser sign-in, so every Mintive user shares one API Services app in Okta.

Create an Okta API service app​

  1. Sign in to your Okta Admin Console.

  2. Go to Applications > Applications.

  3. Click Create App Integration.

  4. Select API Services and click Next.

    Create a new app integration dialog with API Services selected as the sign-in method
  5. Enter a name such as Mintive and click Save.

Generate a key pair​

  1. On your new app's General tab, find the Client Credentials section and click Edit.

  2. Set Client authentication to Public key / Private key.

    Client Credentials section with client authentication set to Public key / Private key
  3. Under Public keys, click Edit, then select Save keys in Okta.

  4. Click Add key > Generate new key.

  5. Select PEM format, then click Copy to clipboard and save the copied text. This is your private key (OKTA_PRIVATE_KEY), and Okta does not show it again after you dismiss the dialog.

    Add a public key dialog showing the generated key pair with the PEM private key to copy
  6. Click Done, then Save.

After saving, the Public keys section lists the new key as Active with a KID (Key ID). Copy this value to enter as OKTA_KEY_ID.

Client Credentials set to Public key / Private key with an active public key and its KID in the Public keys section

Disable DPoP​

DPoP (Demonstrating Proof of Possession) is not compatible with headless service-app flows.

  1. In General Settings, click Edit.

  2. Uncheck Require Demonstrating Proof of Possession (DPoP) header in token requests.

  3. Click Save.

    General Settings with the Require DPoP header in token requests checkbox unchecked

Grant API scopes​

  1. Go to the Okta API Scopes tab on your app.

  2. Click Grant for each scope your team needs. At minimum, grant okta.users.read and okta.groups.read. API scopes lists what each one allows.

    Okta API Scopes tab listing granted scopes such as okta.users.read and okta.groups.manage

Grant an admin role​

Okta also requires the service app to hold an admin role, because scopes alone aren't enough. Without a role, read calls still succeed but return empty results (listing users comes back with nothing), and write calls fail with 403. Grant a role that matches the scopes you assigned.

  1. Go to the Admin roles tab on your app. A new app shows No admin privileges assigned.

    Admin roles tab showing no admin privileges assigned to the app
  2. Click Edit assignments.

  3. Under Role, select the role the connector needs:

    Scopes grantedRole to assign
    Read-only (*.read)Read-only Administrator
    Read and write (*.manage)Organization Administrator, or a scoped custom role if your Okta org supports it
    Assignment dialog with Read-only Administrator selected as the role for the app
  4. Click Add assignment if it isn't already added, then click Save changes.

Add the connector in Mintive​

  1. Go to app.mintmcp.com/vmcps?tab=manage-store.

  2. Find Okta (Hosted) in the list and click to install it.

  3. Select Service account as the sign-in method and enter these values:

    FieldValue
    Okta Org URL (OKTA_ORG_URL)Your Okta org URL, e.g. https://acme.okta.com
    Okta Scopes (OKTA_SCOPES)The scopes you granted, space-separated. Defaults to okta.users.read okta.groups.read
    Okta Client ID (OKTA_CLIENT_ID)Client ID from the app's General tab
    Okta Key ID (kid) (OKTA_KEY_ID)KID shown next to the public key on the General tab
    Okta Private Key (PEM) (OKTA_PRIVATE_KEY)The full PEM private key, including the -----BEGIN PRIVATE KEY----- and -----END PRIVATE KEY----- lines
  4. Click Save.

API scopes​

Both methods use the same Okta API scopes. Start with the read scopes and add manage scopes only where the connector needs to write.

ScopeCapabilities granted
okta.users.readRead users and profile attributes
okta.users.manageCreate, update, and deactivate users
okta.groups.readList groups and their memberships
okta.groups.manageCreate, update, delete groups; manage group membership
okta.apps.readList and read application integrations
okta.apps.manageCreate, update, activate, and delete applications
okta.policies.readRead sign-on, password, and MFA policies
okta.policies.manageCreate, update, and delete policies and policy rules
okta.logs.readRead system log events
okta.brands.readRead brand themes and email templates
okta.brands.manageModify brand themes, sign-in pages, and error pages
okta.templates.readRead email template customizations
okta.templates.manageCreate and modify email customizations
okta.deviceAssurance.readRead device assurance policies
okta.deviceAssurance.manageCreate and manage device assurance policies
okta.domains.readRead custom domains
okta.domains.manageAdd, verify, and delete custom domains

Security considerations​

Grant only the scopes your team needs with either method, and avoid manage scopes unless write access is required.

Service account​

  • The private key grants API access to every Okta operation the service app is authorized for, so treat it like a password and do not store it outside Mintive.
  • All Mintive users share the same service app connection, so actions are performed as the service app instead of as individual Okta users. Scope the permissions accordingly.
  • To rotate the key, generate a new key pair in Okta, update the Mintive connector, then delete the old public key from the service app.

OAuth​

  • Each user acts with their own Okta admin role, and Okta's System Log shows the real user.
  • The connector stores no Okta credentials, because Mintive holds each user's tokens.
  • The app's Assignments in Okta decide who can connect.

Troubleshooting​

Service account​

  • invalid_client on token requests: the Key ID or private key doesn't match the public key saved in Okta. Confirm OKTA_KEY_ID matches the KID shown next to the public key, and that OKTA_PRIVATE_KEY is the full PEM including the header and footer lines.
  • invalid_dpop_proof or DPoP-related errors: DPoP is still enabled on the app. Uncheck Require Demonstrating Proof of Possession (DPoP) header in token requests under General Settings.
  • Empty results from read calls (e.g. listing users returns nothing): the scope is granted but the app has no admin role, so reads return empty instead of erroring. Assign Read-only Administrator on the Admin roles tab.
  • 403 on write operations: the app has read access but no role that allows writes. Assign Organization Administrator (or a scoped custom role) for manage scopes.
  • invalid_scope: a scope in OKTA_SCOPES hasn't been granted on the Okta API Scopes tab. Grant it, or remove it from the connector config.

OAuth​

  • needs an 'Authorization: Bearer <token>' header: the user hasn't connected Okta yet, or the connector isn't sending their token. Have the user connect Okta from Mintive.
  • Write tools fail with "empty response" after you add a manage scope: the user's token was issued before the scope was granted. Add the scope to both scope fields, then have the user disconnect and reconnect Okta.
  • 403 on write operations: the signed-in user's Okta admin role doesn't allow the change. Assign that user a role that does.
  • Signs in as the wrong Okta user: the browser reused an existing Okta session. Disconnect Okta in Mintive, sign out of Okta (or use a private window), and connect again.

Next steps​