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.
| Method | Who the agent acts as | Set up in Okta |
|---|---|---|
| Service account | One shared Okta API Services app, for everyone | An API Services app with a key pair, scopes, and an admin role |
| OAuth | Each user's own Okta account, with their own admin role | An 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.
- Service account
- OAuth
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
-
Sign in to your Okta Admin Console.
-
Go to Applications > Applications.
-
Click Create App Integration.
-
Select API Services and click Next.
-
Enter a name such as
Mintiveand click Save.
Generate a key pair
-
On your new app's General tab, find the Client Credentials section and click Edit.
-
Set Client authentication to Public key / Private key.
-
Under Public keys, click Edit, then select Save keys in Okta.
-
Click Add key > Generate new key.
-
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.
-
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.

Disable DPoP
DPoP (Demonstrating Proof of Possession) is not compatible with headless service-app flows.
-
In General Settings, click Edit.
-
Uncheck Require Demonstrating Proof of Possession (DPoP) header in token requests.
-
Click Save.
Grant API scopes
-
Go to the Okta API Scopes tab on your app.
-
Click Grant for each scope your team needs. At minimum, grant
okta.users.readandokta.groups.read. API scopes lists what each one allows.
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.
-
Go to the Admin roles tab on your app. A new app shows No admin privileges assigned.
-
Click Edit assignments.
-
Under Role, select the role the connector needs:
Scopes granted Role 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
-
Click Add assignment if it isn't already added, then click Save changes.
Add the connector in Mintive
-
Find Okta (Hosted) in the list and click to install it.
-
Select Service account as the sign-in method and enter these values:
Field Value Okta Org URL ( OKTA_ORG_URL)Your Okta org URL, e.g. https://acme.okta.comOkta Scopes ( OKTA_SCOPES)The scopes you granted, space-separated. Defaults to okta.users.read okta.groups.readOkta 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 -
Click Save.
Each user signs in to Okta the first time they use the connector, and every call runs with that user's Okta admin role. An Okta admin registers Mintive as an OIDC app once, and there is no key pair or app admin role to manage.
Create an Okta OIDC app
-
Sign in to your Okta Admin Console.
-
Go to Applications > Applications, then click Create App Integration.
-
Select OIDC - OpenID Connect as the sign-in method and Web Application as the application type, then click Next.
-
Enter an App integration name such as
Mintive. -
Leave Proof of possession unchecked, keep Authorization Code and Refresh Token selected under Grant type, and leave Client Credentials unchecked.
-
In Sign-in redirect URIs, enter the callback for your Mintive region:
Mintive region Redirect URI US https://app.mintmcp.com/oauth/callbackEU https://eu.mintmcp.com/oauth/callback -
Under Assignments, choose who can connect, then click Save.
-
Copy the Client ID and Client secret from the General tab.
Grant API scopes
- Go to the Okta API Scopes tab on your app.
- Click Grant for each scope your team needs. At minimum, grant
okta.users.readandokta.groups.read. API scopes lists what each one allows.
The token never grants more than the signed-in user's own Okta admin role, so a user with Read-only Administrator gets 403 on write tools even when a manage scope is granted.
Add the connector in Mintive
-
Find Okta (Hosted) in the list and click to install it.
-
Select OAuth as the sign-in method and enter these values:
Field Value Authorization URL Replace {your-okta-domain}with your Okta domain, e.g.https://acme.okta.com/oauth2/v1/authorizeToken URL Replace {your-okta-domain}the same way, e.g.https://acme.okta.com/oauth2/v1/tokenClient ID Client ID from the app's General tab Client secret Client secret from the app's General tab Scopes Keep openid,profileandoffline_access, and list theokta.*scopes you grantedOkta Org URL Your Okta org URL, e.g. https://acme.okta.comOkta Scopes The same okta.*scopes, space-separated. They decide which tools are listedUse each user's Okta sign-in Keep user -
Click Save.
The connector starts without contacting Okta, and each user is asked to sign in to Okta the first time they use it. After you grant a new scope, add it to both scope fields, and each user disconnects and reconnects Okta to get a token that carries it.
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.
| Scope | Capabilities granted |
|---|---|
okta.users.read | Read users and profile attributes |
okta.users.manage | Create, update, and deactivate users |
okta.groups.read | List groups and their memberships |
okta.groups.manage | Create, update, delete groups; manage group membership |
okta.apps.read | List and read application integrations |
okta.apps.manage | Create, update, activate, and delete applications |
okta.policies.read | Read sign-on, password, and MFA policies |
okta.policies.manage | Create, update, and delete policies and policy rules |
okta.logs.read | Read system log events |
okta.brands.read | Read brand themes and email templates |
okta.brands.manage | Modify brand themes, sign-in pages, and error pages |
okta.templates.read | Read email template customizations |
okta.templates.manage | Create and modify email customizations |
okta.deviceAssurance.read | Read device assurance policies |
okta.deviceAssurance.manage | Create and manage device assurance policies |
okta.domains.read | Read custom domains |
okta.domains.manage | Add, 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_clienton token requests: the Key ID or private key doesn't match the public key saved in Okta. ConfirmOKTA_KEY_IDmatches the KID shown next to the public key, and thatOKTA_PRIVATE_KEYis the full PEM including the header and footer lines.invalid_dpop_proofor 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.
403on write operations: the app has read access but no role that allows writes. Assign Organization Administrator (or a scoped custom role) formanagescopes.invalid_scope: a scope inOKTA_SCOPEShasn'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
managescope: 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. 403on 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
- Tool customization: control which Okta tools are exposed to users
- MCP gateway administration: manage access and permissions