The Okta MCP Server enables Claude to interact with Okta's user management system, providing comprehensive user and group management capabilities along with onboarding automation. This tool allows Claude to retrieve user information, manage groups, and automate onboarding processes through direct integration with Okta's API.
dev-123456.okta.com
)Install dependencies:
npm install
Configure Claude Desktop:
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 including ID, status, personal information, and employment details.
Example prompts:
Lists users from Okta with optional filtering:
Example prompts:
Manage user statuses in Okta:
Example prompts:
Get a user's last login location:
Example prompt:
View groups in your Okta organization:
Example prompts:
Perform group management operations:
Example prompts:
Manage user membership in groups:
Example prompts:
Import multiple users from CSV data:
Example prompt:
Assign users to groups based on attributes:
Example prompt:
Provision application access for users:
Example prompt:
Run a full onboarding process:
Example prompt:
When using bulk import or onboarding workflow tools, your CSV should include:
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
Required fields:
firstName
lastName
email
Optional fields:
department
title
mobilePhone
Tools not appearing in Claude:
tail -f ~/Library/Logs/Claude/mcp*.log
Authentication Errors:
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
Verify these variables in your configuration:
OKTA_ORG_URL
: Complete URL (e.g., "https://dev-123456.okta.com")OKTA_API_TOKEN
: Valid API tokenThere 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 > MCP and click "Add new global MCP server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"cursor-rules-mcp": {
"command": "npx",
"args": [
"-y",
"cursor-rules-mcp"
]
}
}
}
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 explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.