Is the Okta MCP server safe? What it can reach
What the Okta MCP server can read, write and delete, how it signs in, and how to limit it in Claude Code and Codex.
Okta publishes an open source MCP server that runs on your machine and manages an Okta org through the Admin Management APIs. It signs in with the device authorization flow or a private key JWT, and OKTA_SCOPES decides which tools exist at all. With manage scopes it can create users, change policies and delete apps, so start with read scopes only.
Who maintains it
| Implementation | Kind | Status |
|---|---|---|
| okta-mcp-server (Okta, open source) | Official | active |
It runs as a local process on your machine.
How it signs in
An Okta OAuth app signs in with the device authorization grant (browser) or a private key JWT (no browser, for Docker and automation). The server then acts with the Okta admin API scopes you list in OKTA_SCOPES, and nothing broader.
| Scope or permission | Access |
|---|---|
okta.users.read | read |
okta.users.manage | admin |
okta.groups.read | read |
okta.groups.manage | admin |
okta.apps.read | read |
okta.apps.manage | admin |
okta.policies.read | read |
okta.policies.manage | admin |
okta.deviceAssurance.read | read |
okta.deviceAssurance.manage | write |
okta.logs.read | read |
okta.brands.read | read |
okta.brands.manage | write |
okta.templates.read | read |
okta.templates.manage | write |
okta.domains.read | read |
okta.domains.manage | write |
okta.emailDomains.read | read |
okta.emailDomains.manage | write |
What its tools can do
| Kind | Tools |
|---|---|
| Read | list_users, get_user, get_user_profile_attributes, list_user_groups, list_groups, get_group, list_group_users, list_group_apps, list_applications, get_application, list_catalog_apps, get_catalog_app, list_policies, get_policy, list_policy_rules, get_policy_rule, list_device_assurance_policies, get_device_assurance_policy, get_logs, list_brands, get_brand, list_brand_domains, list_brand_themes, get_brand_theme, get_sign_in_page_resources, get_customized_sign_in_page, get_default_sign_in_page, get_preview_sign_in_page, list_sign_in_widget_versions, get_error_page_resources, get_customized_error_page, get_default_error_page, get_preview_error_page, get_sign_out_page_settings, list_email_templates, get_email_template, list_email_customizations, get_email_customization, get_email_customization_preview, get_email_default_content, get_email_default_content_preview, get_email_settings, list_custom_domains, get_custom_domain, list_email_domains, get_email_domain |
| Write | create_user, update_user, create_group, update_group, add_user_to_group, remove_user_from_group, create_application, update_application, activate_application, install_oin_app, create_policy, update_policy, activate_policy, create_policy_rule, update_policy_rule, activate_policy_rule, create_device_assurance_policy, replace_device_assurance_policy, create_brand, replace_brand, replace_brand_theme, upload_brand_theme_logo, upload_brand_theme_favicon, upload_brand_theme_background_image, replace_customized_sign_in_page, replace_preview_sign_in_page, replace_customized_error_page, replace_preview_error_page, replace_sign_out_page_settings, create_email_customization, replace_email_customization, replace_email_settings, create_custom_domain, replace_custom_domain, upsert_custom_domain_certificate, verify_custom_domain, create_email_domain, replace_email_domain, verify_email_domain |
| Can’t be undone | deactivate_user, delete_deactivated_user, delete_group, delete_application, deactivate_application, delete_policy, deactivate_policy, delete_policy_rule, deactivate_policy_rule, delete_device_assurance_policy, delete_brand, delete_brand_theme_logo, delete_brand_theme_favicon, delete_brand_theme_background_image, delete_customized_sign_in_page, delete_preview_sign_in_page, delete_customized_error_page, delete_preview_error_page, delete_email_customization, delete_all_email_customizations, send_test_email, delete_custom_domain, delete_email_domain |
Tools are registered only when their scope is in OKTA_SCOPES. A manage scope also enables the matching read tools. The README also mentions deprecated confirm_delete_group and confirm_delete_application fallback tools.
Built-in limits
| Option | What it does |
|---|---|
OKTA_SCOPES | Space-separated OAuth scopes. Tools without a matching scope are removed at startup. Use only okta.<resource>.read scopes for a read-only server. |
Confirmation prompts | Deletes and deactivations ask for confirmation through MCP elicitation. Clients without elicitation get a payload to relay to the user instead. |
Okta app grants | The Okta application’s API Scopes tab must grant each scope, so the Okta admin console is a second limit. |
The risks
- Okta holds identity for the whole company, so an injected instruction could deactivate or delete users, change sign-in policies or deactivate apps if manage scopes are on.
- Log data returned by get_logs and user profile fields can carry attacker-controlled text that tries to steer the agent into admin changes.
- The private key JWT in OKTA_PRIVATE_KEY is a long-lived admin credential, and the README’s Docker examples pass it as an environment variable.
- Device flow tokens are kept in the system keyring, and the README’s Docker example switches to a plaintext keyring file in a volume.
- User, group and log data returned by the read tools goes to your LLM provider.
Limit it in Claude Code
Add it from the documented launch settings, at local or user scope so a token never lands in a shared .mcp.json:
claude mcp add --env OKTA_ORG_URL=... --env OKTA_CLIENT_ID=... --env OKTA_SCOPES=... --env OKTA_PRIVATE_KEY=... --env OKTA_KEY_ID=... okta -- uvx okta-mcp-serverClaude Code names MCP tools mcp__okta__<tool>. Deny rules win over ask rules, and ask rules over allow rules. Put these in ~/.claude/settings.json or the project’s .claude/settings.json:
{
"permissions": {
"deny": [
"mcp__okta__delete_deactivated_user",
"mcp__okta__delete_group",
"mcp__okta__delete_application",
"mcp__okta__delete_policy",
"mcp__okta__delete_policy_rule",
"mcp__okta__delete_device_assurance_policy",
"mcp__okta__delete_brand",
"mcp__okta__delete_brand_theme_logo",
"mcp__okta__delete_brand_theme_favicon",
"mcp__okta__delete_brand_theme_background_image",
"mcp__okta__delete_customized_sign_in_page",
"mcp__okta__delete_preview_sign_in_page",
"mcp__okta__delete_customized_error_page",
"mcp__okta__delete_preview_error_page",
"mcp__okta__delete_email_customization",
"mcp__okta__delete_all_email_customizations",
"mcp__okta__delete_custom_domain",
"mcp__okta__delete_email_domain",
"mcp__okta__deactivate_user",
"mcp__okta__deactivate_policy",
"mcp__okta__deactivate_policy_rule",
"mcp__okta__deactivate_application"
],
"ask": [
"mcp__okta__create_user",
"mcp__okta__update_user",
"mcp__okta__create_group",
"mcp__okta__update_group",
"mcp__okta__add_user_to_group",
"mcp__okta__remove_user_from_group",
"mcp__okta__create_application",
"mcp__okta__update_application",
"mcp__okta__activate_application",
"mcp__okta__create_policy",
"mcp__okta__update_policy",
"mcp__okta__activate_policy",
"mcp__okta__create_policy_rule",
"mcp__okta__update_policy_rule",
"mcp__okta__activate_policy_rule",
"mcp__okta__send_test_email"
]
}
}Limit it in Codex
Codex reads MCP servers from ~/.codex/config.toml. disabled_tools removes tools, and enabled_tools keeps only the ones you list:
[mcp_servers.okta]
command = "uvx"
args = ["okta-mcp-server"]
env_vars = ["OKTA_ORG_URL", "OKTA_CLIENT_ID", "OKTA_SCOPES", "OKTA_PRIVATE_KEY", "OKTA_KEY_ID"]
disabled_tools = ["delete_deactivated_user", "delete_group", "delete_application", "delete_policy", "delete_policy_rule", "delete_device_assurance_policy", "delete_brand", "delete_brand_theme_logo", "delete_brand_theme_favicon", "delete_brand_theme_background_image", "delete_customized_sign_in_page", "delete_preview_sign_in_page", "delete_customized_error_page", "delete_preview_error_page", "delete_email_customization", "delete_all_email_customizations", "delete_custom_domain", "delete_email_domain", "deactivate_user", "deactivate_policy", "deactivate_policy_rule", "deactivate_application"]Checklist
- Set OKTA_SCOPES to read scopes only until you need a write.
- Use a dedicated Okta app, not a super admin’s credentials.
- Keep OKTA_PRIVATE_KEY out of config files you commit.
- Deny delete and deactivate tools in your client.
Checked against the vendor documentation on November 25, 2026. okta-mcp-server README · okta-mcp-server README (raw)
What Excellent covers
Excellent doesn’t inspect MCP servers themselves. Its free scan reads supported logs on the Mac (Claude Code, Codex, Grok Build, GitHub Copilot CLI, Gemini CLI and Qwen Code) and reports findings for review, so you can see what an agent did after a session. Run the free scan · See a sample report · How to vet any MCP server
Excellent Pro adds checks before supported actions. Claude Code can display an ask prompt. With Codex, an Excellent “ask” refuses the action and tells the agent to ask you. Pro is US-only for now. Agent coverage · Pricing