Okta MCP server for AI agents

Live

API KEY

IDENTITY MANAGEMENT

Developer Tools

Okta gives your agent identity administration in your Okta org: look up users, groups, and apps, review group membership and MFA factors, read System Log events, and create, suspend, and deactivate users.

  • Per-user credentials: each call uses the actual user's API key, never a shared bot.
  • Encrypted per-tenant vault: AES-256, resolved at request time, never in LLM context.
  • Scoped before every call: pre-call scope check, 90-day SIEM-exportable audit chain.
Okta
agent · Acme Q3
Run
Show failed sign-ins for jane@example.com today.
S
okta_system_log_events_list
880ms
Identity agent
Pulled today's System Log events for the user and listed the failed sign-ins with their time and outcome.
Sources: Okta System Log, 1 user
okta
6 events
18:29
Message Claude...

Tools your identity management agent reaches for on Okta, scoped per user.

CALL ANY TOOL
23 tools for identity management in Okta: look up users, groups, and apps, read System Log events, create and update users and groups, and suspend or deactivate users.
okta_app_get
Get app
Get one Okta application by ID. Returns id, name, label, status, signOnMode, features, settings and credentials settings. Use okta_app_get when you know the app ID. Use okta_apps_list to find it.
Parameters
Name
Type
Required
Description
app_id
string
Required
Okta application ID (starts with 0oa). Get it from okta_apps_list. Example: 0oa1a2b3c4d5e6f7g8h9
okta_app_groups_list
List app groups
okta_app_users_list
List app users
okta_apps_list
List apps
okta_group_create
Create group
okta_group_get
Get group
okta_group_member_add
Add group member
okta_group_member_remove
Remove group member
okta_group_members_list
List group members
okta_group_update
Update group
okta_groups_list
List groups
okta_system_log_events_list
List system log events
okta_user_activate
Activate user
okta_user_app_links_list
List user app links
okta_user_create
Create user
okta_user_deactivate
Deactivate user
okta_user_factors_list
List user factors
okta_user_get
Get user
okta_user_groups_list
List user groups
okta_user_suspend
User suspend
okta_user_unsuspend
User unsuspend
okta_user_update
Update user
okta_users_list
List users
Build your Agent
Same auth pattern across LangChain, OpenAI, Anthropic, and Google ADK.
Python · LlamaIndex
import { ScalekitClient } from "@scalekit-sdk/node";
import { createReactAgent } from "@langchain/langgraph/prebuilt";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

// Okta tools scoped to this user
const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["okta"], toolNames: [
    "okta_user_get",
    "okta_user_groups_list",
    "okta_system_log_events_list"] },
  pageSize: 100,
});

const agent = createReactAgent({ llm, tools });
await agent.invoke({ messages: [{ role: "user", content: "Look up jane@example.com, list her groups, and show her sign-in events from today" }] });
import OpenAI from "openai";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const openai = new OpenAI();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["okta"] }, pageSize: 100,
});

const res = await openai.chat.completions.create({
  model: "gpt-5",
  messages: [{ role: "user", content: "Look up jane@example.com, list her groups, and show her sign-in events from today" }],
  tools,
});

// Execute the tool call with the user's vaulted Okta API key
await sk.tools.executeTool(res.choices[0].message.tool_calls[0], "user_123");
import Anthropic from "@anthropic-ai/sdk";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const anthropic = new Anthropic();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["okta"] }, pageSize: 100,
});

const msg = await anthropic.messages.create({
  model: "claude-sonnet-5",
  max_tokens: 1024,
  messages: [{ role: "user", content: "Look up jane@example.com, list her groups, and show her sign-in events from today" }],
  tools,
});

// Tool call runs with the user's vaulted Okta API key
await sk.tools.executeTool(msg.content, "user_123");
import { Agent } from "@google/adk/agents";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["okta"] }, pageSize: 100,
});

const agent = new Agent({
  name: "identity_agent",
  model: "gemini-2.5-pro",
  instruction: "Okta tools scoped to this user",
  tools,
});

await agent.run("Look up jane@example.com, list her groups, and show her sign-in events from today");
Try these prompts
Copy any prompt into your agent. Each maps directly to a Okta tool. Click to copy, paste into your agent, done.
Users
Copy the prompt
Copied
Find the Okta user jane@example.com.
Copy the prompt
Copied
Which groups is Jane a member of?
Copy the prompt
Copied
List the MFA factors enrolled for Jane.
Groups and apps
Copy the prompt
Copied
List the members of the Engineering group.
Copy the prompt
Copied
Which users are assigned to the Salesforce app?
Copy the prompt
Copied
Add Jane to the Engineering group.
Audit and lifecycle
Copy the prompt
Copied
Show System Log events for sign-ins in the last hour.
Copy the prompt
Copied
Suspend this user so they cannot sign in.
Copy the prompt
Copied
Create a user for the new hire starting Monday.
SEE HOW AUTH WORKS
Each user connects their own Okta API key once, and Scalekit sends it with every call. Keys stay vaulted, every call is scope checked, and every action is logged.
1
Authorize
Your user connects
Okta
once. We tie it to their identity and the access they approved, with no shared bot account and no org-wide access
Who:
user ‘A’
when:
Once per user
access:
Limited to user
2
Store
Their
Okta
credential lives in a vault scoped to them. User A's data is never reachable by an agent acting for user B, even on the same connection
vault:
encrypted
scope:
per-user
tenants:
isolated
3
Resolve
When your agent calls a
Okta
tool, we fetch the right credential server-side. It never touches your agent, never appears in the LLM context, never shows up in your logs
speed:
~40ms
check:
before every call
seen by:
nobody
4
Audit
Every
Okta
tool call is logged: who triggered it, which tool ran, what came back. 90 days of history, tied to the user who authorized it
history:
90 days
export:
SIEM-ready
logged:
every call
Test other agents
See the same per-user auth pattern across other developer tools connectors.
Engineering Teams
DevOps assistant agent
Polls GitHub for failing checks and stale PRs, opens Linear issues for the ones that need work, and posts a daily digest to Slack. It acts as the engineer, not a shared service account.
Test other agents
See the same per-user auth pattern across other developer tools connectors.
ENGINEERING
DevOps assistant agent
Poll GitHub for failing checks and stale pull requests, open Linear issues for the ones that need work, and digest to Slack.
Why Scalekit
Secure your agent's access. Connectors ship in minutes
01.
Shared tokens break per-user analytics
A shared Okta API key looks fine in a demo. In production every user change looks like one service account, and you cannot tell which user triggered it. Scalekit resolves the credential of the actual user who triggered the agent, never a shared bot.
// shared key
audit → bot_service_account

// scalekit
audit → user_abc ✓
02.
Authentication is not authorization
03.
Multi-tenancy is architectural
04.
Okta today. Ten connectors tomorrow.
“Our agents act across Salesforce, Gong, Google Drive, and more, on behalf of every customer. Scalekit behind the scenes meant we can keep adding tools without ever rebuilding how credentials or tool calling work.”
Venu Madhav Kattagoni
Head of Engineering / Von
FAQs
Frequently Asked Questions
Does the agent access Okta as the user or through a shared key?
As the user. Each user connects their own Okta API key once, and Scalekit sends it with every call. Audit logs attribute every user and group change to that user, not a shared service account.
Where is the Okta API key stored?
In Scalekit's managed AES-256 token vault, namespaced per tenant. To rotate it, the user reconnects with a new API key. Revocation is a single dashboard action. Credentials never appear in prompts, logs, or LLM context.
Can I limit what the agent does in Okta?
Yes. Filter by tool name in listScopedTools to expose only what you want, for example the user, group, and System Log read tools without okta_user_deactivate, which removes a user from all assigned apps, or okta_user_suspend. Scalekit also enforces scope checks before every API call.
What happens when a user revokes Okta access?
The connection is invalidated on the next tool call. Subsequent requests for that user fail closed with a clear error. Other users in the tenant remain unaffected. The event is logged for audit.
Can the agent read the Okta System Log?
Yes. okta_system_log_events_list returns System Log events such as sign-ins, MFA challenges, admin changes, and app access within a time range. You can narrow it with since, until, filter, or q.
Start in your coding agent
Up and running in one command
Install the Scalekit skill in your editor of choice. Connector, auth, tools, prompt, all wired up
Claude Code REPL
/plugin marketplace add scalekit-inc/claude-code-authstack
/plugin install agentkit@scalekit-auth-stack
Cursor Code REPL
# ~/.cursor/mcp.json
{
""mcpServers"": {
""okta"": {
""url"": ""https://mcp.scalekit.com/okta"",
""headers"": { ""Authorization"": ""Bearer $SCALEKIT_TOKEN"" }
}
}
}
Codex Code REPL
# ~/.codex/config.toml
[mcp_servers.okta]
url = ""https://mcp.scalekit.com/okta""
auth_env = ""SCALEKIT_TOKEN""
Copilot Code REPL
# .vscode/mcp.json
{
""servers"": {
""okta"": {
""url"": ""https://mcp.scalekit.com/okta"",
""type"": ""http""
}
}
}