This MCP server connects Claude to Okta's user management system, enabling comprehensive user and group management with onboarding automation capabilities. It acts as a bridge that allows Claude to interact with Okta's API for managing users and groups.
dev-123456.okta.com
)Install dependencies:
npm install
Open your Claude Desktop configuration file:
For MacOS:
code ~/Library/Application\ Support/Claude/claude_desktop_config.json
For Windows:
code %AppData%\Claude\claude_desktop_config.json
Add or update the configuration:
{
"mcpServers": {
"okta": {
"command": "node",
"args": [
"PATH_TO_PROJECT_DIRECTORY/dist/index.js"
],
"env": {
"OKTA_ORG_URL": "https://your-domain.okta.com",
"OKTA_API_TOKEN": "your-api-token"
}
}
}
}
Save the file and restart Claude Desktop.
Retrieves detailed user information from Okta, including user details, account dates, personal information, employment details, contact information, address, and preferences.
Search users by any profile attribute with advanced filtering:
eq
(exact match) - Works for all attributessw
(starts with) - Works for all attributesew
(ends with) - Works for most attributesco
(contains) - Works for some attributes (firstName, lastName, email)pr
(present/exists) - Works for all attributesLists users from Okta with optional filtering and pagination, supporting SCIM filter expressions, free-form text search, sorting options, and pagination.
Activates a user in Okta with option to send activation email.
Suspends a user in Okta.
Unsuspends a previously suspended user in Okta.
Deletes a user from Okta (note: user must be deactivated first).
Retrieves the last known location and login information for a user from Okta system logs.
Lists user groups from Okta with optional filtering and pagination.
Creates a new group in Okta with a name and optional description.
Retrieves detailed information about a specific group.
Deletes a group from Okta.
Assigns a user to a group in Okta.
Removes a user from a group in Okta.
Lists all users in a specific group with pagination support.
Imports multiple users from a CSV string, creating user accounts, with optional activation and email notifications.
Assigns multiple users to groups based on attribute mappings.
Provisions application access for multiple users.
Runs a complete onboarding workflow for multiple users from CSV data.
Tools not appearing in Claude:
tail -f ~/Library/Logs/Claude/mcp*.log
Authentication Errors:
Search Issues:
For MacOS/Linux:
tail -n 20 -f ~/Library/Logs/Claude/mcp*.log
For Windows:
Get-Content -Path "$env:AppData\Claude\Logs\mcp*.log" -Wait -Tail 20
When using the bulk import or onboarding workflow tools, your CSV should include these headers:
firstName
(required)lastName
(required)email
(required)department
(optional)title
(optional)mobilePhone
(optional)Example:
firstName,lastName,email,department,title,mobilePhone
John,Doe,[email protected],Engineering,Senior Developer,+1-555-123-4567
Jane,Smith,[email protected],Marketing,Director,+1-555-987-6543
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "okta" '{"command":"node","args":["PATH_TO_PROJECT_DIRECTORY/dist/index.js"],"env":{"OKTA_ORG_URL":"https://your-domain.okta.com","OKTA_API_TOKEN":"your-api-token"}}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"okta": {
"command": "node",
"args": [
"PATH_TO_PROJECT_DIRECTORY/dist/index.js"
],
"env": {
"OKTA_ORG_URL": "https://your-domain.okta.com",
"OKTA_API_TOKEN": "your-api-token"
}
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"okta": {
"command": "node",
"args": [
"PATH_TO_PROJECT_DIRECTORY/dist/index.js"
],
"env": {
"OKTA_ORG_URL": "https://your-domain.okta.com",
"OKTA_API_TOKEN": "your-api-token"
}
}
}
}
3. Restart Claude Desktop for the changes to take effect