Skip to content

Menu

Okta MCP Server logo

Okta MCP Server

Published

At a glance

GitHub repository
okta/okta-mcp-server
Watch out for
It is an admin tool: write scopes let an agent create, change, deactivate and delete users, apps and policies in a live Okta org.

The Okta MCP Server is Okta's own open source server, published in the okta/okta-mcp-server repository under the Apache 2.0 license and on PyPI as okta-mcp-server. The README marks it as generally available. It wraps Okta's Admin Management APIs through the Okta Python SDK so an agent can manage users, groups, applications, policies, branding and logs in an Okta org.

It is a Python 3.13+ server that runs locally over stdio, either from Docker, from a uv checkout of the source, or straight from PyPI with uvx or pipx.

Two design choices stand out. Tools load based on the OAuth scopes in OKTA_SCOPES, so an app granted only read scopes never exposes write tools to the model. And destructive calls such as deletes and deactivations ask the user to confirm through MCP elicitation, with a fallback for clients that lack it.

How it connects

Your AI app

An assistant or agent that supports MCP

Okta MCP Server

Runs as

  • Python (uv / pip)
  • Docker

Gives the agent

  • Users
  • Groups
  • Applications
  • Policies and device assurance
  • System logs
  • Branding and pages

Okta

Signs in with

  • OAuth / browser sign-in
Your AI app talks to Okta MCP Server over the Model Context Protocol, and the server carries out the work. Built from the setup and capability sections on this page.

What it can do

Users
list_users, get_user, create_user, update_user, deactivate_user, delete_deactivated_user, list_user_groups and get_user_profile_attributes. create_user can stage a user without sending an activation email.
Groups
list_groups, get_group, create_group, update_group and delete_group, plus list_group_users, list_group_apps, add_user_to_group and remove_user_from_group for memberships and assignments.
Applications
list_applications, get_application, create_application, update_application, activate_application, deactivate_application and delete_application, plus list_catalog_apps, get_catalog_app and install_oin_app for the OIN catalog.
Policies and device assurance
list_policies, get_policy, create_policy, update_policy and their rule equivalents such as create_policy_rule, along with list_device_assurance_policies and create_device_assurance_policy.
System logs
get_logs retrieves the org's system log, which covers questions like recent failed sign-ins. It needs the okta.logs.read scope.
Branding and pages
list_brands, replace_brand_theme, upload_brand_theme_logo, get_customized_sign_in_page and replace_preview_sign_in_page manage brands, themes and custom sign-in and error pages.

Setting it up

First create an app integration in your Okta org. For interactive use, pick OIDC Native Application with the Device Authorization grant; for browserless use, create an API Services app with Public key / Private key client authentication, DPoP disabled, a key pair whose Key ID you copy, and an admin role assigned. Grant the Okta API scopes you need (for example okta.users.read, okta.groups.manage). The simplest install is from PyPI: in claude_desktop_config.json add an mcpServers entry named okta-mcp-server with "command": "uvx", "args": ["okta-mcp-server"] and env values for OKTA_ORG_URL, OKTA_CLIENT_ID and OKTA_SCOPES, adding OKTA_PRIVATE_KEY and OKTA_KEY_ID for Private Key JWT. VS Code uses the same command under mcp.servers with promptString inputs for those values. You can pin a release with args like [email protected]. Docker is the other documented path: clone the repo, copy .env.example to .env, run docker-compose up -d and point the client at the container. Restart the client and ask it to show the users in your org to confirm.

Where each client keeps its MCP config file, and the JSON it expects (cheat sheet)

Where it helps

  • Onboard a new hire by creating the user and adding them to the right groups with create_user and add_user_to_group.
  • Investigate failed sign-ins over the past day by querying get_logs.
  • Audit which applications a group can reach using list_group_apps, or which groups a person belongs to with list_user_groups.
  • Offboard a leaver with deactivate_user, then remove the account later with delete_deactivated_user after confirming the prompt.
  • Tighten password or MFA rules by reviewing list_policy_rules and updating a rule with update_policy_rule.

Limitations and things to watch

  • It is an admin tool: write scopes let an agent create, change, deactivate and delete users, apps and policies in a live Okta org.
  • Only tools matching the scopes in OKTA_SCOPES are registered, and those scopes must also be granted to the Okta app, so missing tools usually mean a missing scope.
  • Private Key JWT setup requires disabling DPoP on the app and assigning it an admin role, and the private key has to be stored in the client config or environment.
  • It needs Python 3.13 or newer unless you run it in Docker.
  • Confirmation for destructive actions relies on MCP elicitation, and clients without it get the server's fallback behaviour instead of a native prompt.

Sources

Written from the project's own documentation, checked November 2026.

How we research: where our facts come from, how often we re-check them, and why no one can pay for a review or a verdict.

Reviews and commentsShow

Reviews

Sign in to leave a review.

Loading reviews…

Comments

Sign in to leave a comment.

Loading comments…