Okta MCP Server logo

Okta MCP Server

Community
fctr-id

The Okta MCP Server is a groundbreaking tool built by the team at Fctr that enables AI models to interact directly with your Okta environment using the Model Context Protocol (MCP). Built specifically for IAM engineers, security teams, and Okta administrators, it implements the MCP specification to help work with Okta enitities

Publisherfctr-id
Repositoryokta-mcp-server
LanguagePython
Forks
8
Stars
38
Available tools
0
Transport typestdio, streamable-http
Categories
LicenseApache-2.0
Links
  • Connect tools to AI workflows

    Okta MCP Server exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    38 stars and 8 forks from the linked repository.

🎉 What's New in v0.1.1-BETA - Enterprise-Grade Special Tools!

This release introduces powerful special tools that revolutionize daily Okta administration tasks:

🔥 NEW: Special Tools - Game Changers for Okta Admins

  • 🎯 Comprehensive Access Analysis: Helps answer the most frequent question okta admns face. Can user X access app Y?
  • 🛡️ Advanced Login Risk Assessment: Behavioral analysis with VPN/Tor detection and geographic impossibility checks which can help with suspicious reporting emails.

💡 Real-World Example - Access Analysis:

❓ Question: "Can user john@company.com access the application Salesforce?"

🤖 AI Response (30 seconds): "User John Smith can access Salesforce because: 
1) User is ACTIVE ✅
2) User is assigned via group 'Sales Team' ✅, 
3) Policy allows access with 2FA from corporate network or requires PUSH factor from external locations - user has PUSH enrolled ✅"

⏱️ Manual Process: Navigate Users → Find John → Check Status → Check App 
Assignments → Check Group Memberships → Check Salesforce Assignments → 
Review Access Policies → Check MFA Factors → Correlate Network Rules (10-15 min)

💡 Real-World Example - Login Risk Assessment:

❓ Question: "Is dan@company.com's recent login activity suspicious?"

🤖 AI Response (30 seconds): "LOW RISK - Dan exhibits excellent login 
security patterns: consistent geographic area, same residential ISP, 
stable device fingerprints, normal browser patterns, zero VPN/proxy 
usage, all Okta risk scores LOW ✅"

⏱️ Manual Process: System Logs → Filter User → Check Locations → Review 
IP Addresses → Cross-reference Network Zones → Analyze Device Patterns → 
Check Geographic Impossibility → Review Behavioral Flags (15+ min)

🏗️ Core Architecture

  • 🚀 FastMCP 2.0: Migrated from legacy MCP package to FastMCP 2.0 for cutting-edge protocol features
  • 🧹 Cleaner Code: Removed tool_registry.py dependency for simpler, more maintainable codebase
  • ⚡ Better Performance: Modern async patterns and optimized request handling

🛠️ Enhanced Tools

  • 📝 Complete Rewrite: All tools rewritten with better annotations and descriptions for AI understanding
  • 🛡️ Improved Validation: Enhanced error handling and input validation across all operations

🔐 Advanced Security

  • 🎫 Bearer Tokens: Full JWT bearer token support with jwks_uri validation
  • 🏢 Enterprise Auth: Support for enterprise authentication flows and scope-based access

🚀 Future-Ready

  • 🔌 Middleware Ready: Extensible middleware system for custom processing
  • 📡 Protocol Evolution: Access to latest MCP features as they're developed and standardized

📝 Note: CLI clients and AI sampling features have been moved to _Archived/ folder due to pydantic-ai dependency conflicts (security vulnerability ). See _Archived/README.md for details.

📋 Table of Contents

 

🔍 What is the Model Context Protocol?

⚠️ IMPORTANT: Security & Limitations

Please read this section carefully before using Okta MCP Server.

🔄 Data Flow & Privacy

When you make a request, the interaction happens directly between the LLM and the Okta MCP tools - the client application is no longer in the middle. All data returned by these tools (including complete user profiles, group memberships, etc.) is sent to and stored in the LLM's context during the entire transaction for that conversation.

Key Privacy Considerations:

  • The LLM (Claude, GPT, etc.) receives and processes all Okta data retrieved by the tools
  • This data remains in the LLM's context for the duration of the conversation
  • You must be comfortable with your Okta user data being processed by the LLM provider's systems
  • Before using these tools, ensure you're comfortable with Okta data being sent to the AI model's servers

📊 Context Window Limitations

MCP is designed for lightweight workflows similar to Zapier, not bulk data operations.

Recommendation: Limit requests to fewer than 100 entities per transaction. Avoid operations that require fetching large datasets or multiple API calls.

Examples:

❌ Avoid these types of requests:

  • "Fetch all 10,000 users from our Okta tenant and analyze their login patterns"
  • "Find users who do not have Okta Verify enrolled as a factor"

✅ Better approaches:

  • "Get the most recently created 20 users"
  • "Find users who haven't logged in for 90+ days, limit to first 50 results"

💡 For larger data sets and complex queries: Consider using the Okta AI Agent for larger queries and data sets, The agent is being enhanced with similar "actionable" features to handle larger datasets and more complex scenarios in the very near future.

🚨 HTTP Transport Security Warning

The HTTP transport modes (both Streamable HTTP and SSE) have significant security risks:

  • They open unauthenticated HTTP servers with full access to your Okta tenant
  • No authentication or authorization is provided
  • Anyone who can reach the network port can issue commands to your Okta environment
  • EXTREMELY DANGEROUS when using remote HTTP access via mcp-remote

Best Practice: Only use the STDIO transport method (default mode) unless you have specific security controls in place and understand the risks.

🛠️ Available Tools

The Okta MCP Server currently provides the following tools:

🔥 Special Tools - Enterprise Admin Accelerators

Access Analysis & Troubleshooting

  • analyze_user_app_access - Complete user application access evaluation with policy analysis (replaces 10-15 minutes of manual Okta Admin Console navigation)

Security & Risk Assessment

  • analyze_login_risk - Comprehensive login behavior analysis with VPN/Tor detection and geographic impossibility checks (answers "Is this user compromised?" instantly)

⚡ Why These Matter: The two most common questions Okta admins face daily are "Why can't user X access application Y?" and "Is this login activity suspicious?". These special tools instantly provide comprehensive answers that would otherwise require extensive manual investigation across multiple Okta admin screens, policy reviews, and log analysis - transforming 15+ minute investigations into 30-second AI-powered insights.

📊 Standard Tools

User Management

  • list_okta_users - Retrieve users with filtering, search, and pagination options
  • get_okta_user - Get detailed information about a specific user by ID or login
  • list_okta_user_groups - List all groups that a specific user belongs to
  • list_okta_user_applications - List all application links (assigned applications) for a specific user
  • list_okta_user_factors - List all authentication factors enrolled for a specific user

Group Operations

  • list_okta_groups - Retrieve groups with filtering, search, and pagination options
  • get_okta_group - Get detailed information about a specific group
  • list_okta_group_members - List all members of a specific group
  • list_okta_assigned_applications_for_group - List all applications assigned to a specific group

Application Management

  • list_okta_applications - Retrieve applications with filtering, search, and pagination options
  • list_okta_application_users - List all users assigned to a specific application
  • list_okta_application_group_assignments - List all groups assigned to a specific application

Policy & Network Management

  • list_okta_policy_rules - List all rules for a specific policy with detailed conditions and actions
  • get_okta_policy_rule - Get detailed information about a specific policy rule
  • list_okta_network_zones - List all network zones with IP ranges and configuration details

System Log Events

  • get_okta_event_logs - Retrieve Okta system log events with time-based filtering and search options

Date & Time Utilities

  • get_current_time - Get current UTC time in ISO 8601 format
  • parse_relative_time - Convert natural language time expressions to ISO 8601 format

Additional tools for applications, factors, policies, and more advanced operations are on the roadmap and will be added in future releases.

🚀 Quick Start

Prerequisites

✅ Python 3.8+ installed on your machine
✅ Okta tenant with appropriate API access
✅ An MCP-compatible AI client (Claude Desktop, Microsoft Copilot Studio, etc.)

⚠️ Important Model Compatibility Note:
Not all AI models work with this MCP server. Testing has only been performed with:

  • GPT-4.0
  • Claude 3.7 Sonnet
  • Google-2.5-pro

You must use latest model versions that explicitly support tool calling/function calling capabilities. Older models or models without tool calling support will not be able to interact with the Okta MCP Server.

🧠 Supported AI Providers

The Okta MCP Server supports multiple AI providers through its flexible configuration system. This allows you to connect to various large language models based on your specific needs and existing access.

Currently Supported Providers:

ProviderEnvironment VariableDescription
OpenAIAI_PROVIDER=openaiConnect to OpenAI API with models like GPT-4o. Requires an OpenAI API key.
Azure OpenAIAI_PROVIDER=azure_openaiUse Azure-hosted OpenAI models with enhanced security and compliance features.
AnthropicAI_PROVIDER=anthropicConnect to Anthropic's Claude models (primarily tested with Claude 3.7 Sonnet).
Google Vertex AIAI_PROVIDER=vertex_aiUse Google's Gemini models via Vertex AI. Requires Google Cloud service account.
OpenAI CompatibleAI_PROVIDER=openai_compatibleConnect to any OpenAI API-compatible endpoint, such as Fireworks.ai, Ollama, or other providers that implement the OpenAI API specification.

Installation

bash
# Clone the repository
git clone https://github.com/fctr-id/okta-mcp-server.git
cd okta-mcp-server

# Create and activate a virtual environment
python -m venv venv
source venv/bin/activate  # On Windows use: venv\Scripts\activate

# Install dependencies
pip install -r requirements.txt

⚠️ NOTICE: If you clone this repository anew or pull updates, always make sure to re-run pip install -r requirements.txt to ensure all dependencies are up-to-date.

Configuration & Usage

Create a config file with your Okta settings:

📝 Note: Standalone CLI clients have been archived. For MCP host integration (Claude Desktop, VS Code, etc.), use the server directly with the JSON configuration below.

Supported Transports and Launching

The Okta MCP Server supports multiple transport protocols:

1. Standard I/O (STDIO) - Recommended

  • Security: ✅ Direct communication through standard input/output streams
  • Use case: Ideal for desktop AI assistants like Claude Desktop
  • Performance: ✅ Lightweight and efficient
  • Configuration: For Claude Desktop, add to claude_desktop_config.json:
    json
    {
      "mcpServers": {
        "okta-mcp-server": {
          "command": "DIR/okta-mcp-server/venv/Scripts/python",
          "args": [
            "DIR/okta-mcp-server/main.py"
          ],
          "env": {
            "OKTA_CLIENT_ORGURL": "https://dev-1606.okta.com",
            "OKTA_API_TOKEN": "OKTA_API_TOKEN"
          }
        }
      }
    }
    Replace DIR with your absolute directory path and OKTA_API_TOKEN with your actual token

2. Streamable HTTP Transport - Modern & Current Standard

Current Standard - Modern HTTP-based transport with advanced features:

  • Features: ✅ Real-time event streaming, session management, resumability support
  • Performance: ✅ Better scalability and connection handling
  • Use case: Modern web applications and clients supporting HTTP streaming
  • Security: ⚠️ Local HTTP server - secure in controlled environments

Starting the Streamable HTTP Server:

bash
# Start server with explicit risk acknowledgment
python main.py --http --iunderstandtherisks

# Server will start on http://localhost:3000/mcp
# Connect using streamable HTTP compatible clients

Features:

  • ✅ Real-time streaming - Live progress updates during operations
  • ✅ Session management - Maintains connection state
  • ✅ Event streaming - Server-Sent Events for real-time notifications
  • ✅ Better error handling - Detailed error responses
  • ✅ Modern protocol - Based on latest MCP specifications

3. Remote HTTP Access - High Risk Advanced Use Only

⚠️ EXTREMELY DANGEROUS - READ CAREFULLY

For MCP clients that don't natively support remote connections, you can use mcp-remote via NPX:

Prerequisites:

  • Node.js and NPM installed
  • Okta MCP Server running in HTTP mode

Setup:

bash
# 1. Install mcp-remote globally
npm install -g @anthropic/mcp-remote

# 2. Start your Okta MCP Server in HTTP mode
python main.py --http --iunderstandtherisks

# 3. Configure your MCP client (e.g., Claude Desktop)

Claude Desktop Configuration:

json
{
  "mcpServers": {
    "okta-mcp-server": {
      "command": "npx",
      "args": [
        "mcp-remote",
        "http://localhost:3000/mcp"
      ],
      "env": {
        "OKTA_CLIENT_ORGURL": "https://dev-1606.okta.com",
        "OKTA_API_TOKEN": "your_actual_api_token"
      }
    }
  }
}

🚨 CRITICAL SECURITY WARNINGS:

  • NEVER use in production environments
  • NEVER expose the HTTP port (3000) to public networks
  • ANYONE with network access can control your Okta tenant
  • No authentication or authorization protection
  • All Okta operations are exposed without restrictions
  • Use only in isolated, secure development environments
  • Consider this approach only if STDIO transport is absolutely not feasible

When might you need this approach:

  • Testing MCP integrations that require HTTP transport
  • Specific client applications that can't use STDIO
  • Development scenarios requiring HTTP debugging
  • NEVER for production or shared environments

4. Server-Sent Events (SSE) - Deprecated

⚠️ DEPRECATED: SSE transport is deprecated and not recommended for new implementations.

bash
# Run in SSE mode (requires explicit risk acknowledgment)
python main.py --sse --iunderstandtherisks
  • Use case: Legacy MCP clients that specifically require SSE (not recommended)
  • Security: ⚠️ Same HTTP security risks as Streamable HTTP
  • Recommendation: Use Streamable HTTP transport instead for all new implementations

5. Docker Deployment

The Okta MCP Server provides Docker images for all transport types, offering containerized deployment options.

Running Docker Containers

STDIO Transport (Recommended): For Claude Desktop or other MCP clients, configure to use the Docker container:

json
{
  "mcpServers": {
    "okta-mcp-server": {
      "command": "docker",
      "args": [
        "run", "-i", "--rm",
        "-e", "OKTA_CLIENT_ORGURL",
        "-e", "OKTA_API_TOKEN",
        "fctrid/okta-mcp-server:stdio"
      ],
      "env": {
        "OKTA_CLIENT_ORGURL": "https://your-org.okta.com",
        "OKTA_API_TOKEN": "your_api_token"
      }
    }
  }
}

Streamable HTTP Transport (Current Standard):

bash
# Start the HTTP container
docker run -d --name okta-mcp-http \
  -p 3000:3000 \
  -e OKTA_API_TOKEN=your_api_token \
  -e OKTA_CLIENT_ORGURL=https://your-org.okta.com \
  fctrid/okta-mcp-server:http

# Configure your MCP client to connect to http://localhost:3000/mcp

SSE Transport (Deprecated - Not Recommended):

bash
# Start the SSE container (deprecated)
docker run -d --name okta-mcp-sse \
  -p 3000:3000 \
  -e OKTA_API_TOKEN=your_api_token \
  -e OKTA_CLIENT_ORGURL=https://your-org.okta.com \
  fctrid/okta-mcp-server:sse

# Configure your MCP client to connect to http://localhost:3000/sse

Building Images Locally:

bash
# Build all variants
docker build --target stdio -t okta-mcp-server:stdio .
docker build --target http -t okta-mcp-server:http .
docker build --target sse -t okta-mcp-server:sse .

⚠️ Good to Know

Beta Release 🧪

  • Completely rewritten architecture with FastMCP 2.0
  • Enhanced stability and performance compared to previous alpha releases
  • Comprehensive tool system with improved AI integration
  • More suitable for development and testing environments
  • Production readiness being evaluated with enhanced security features

Security First 🛡️

  • Designed for least-privilege operation
  • Default read-only access to Okta resources
  • Future write operations will require explicit approval flows

Current Limitations 🔍

  • Starting with a limited set of read-only tools for users and groups
  • Planning to expand API coverage rapidly in upcoming releases
  • Some complex Okta relationships not yet exposed
  • Performance with very large Okta instances not yet optimized
  • Requires direct network access to Okta API endpoints

🗺️ Roadmap

v0.1.0-BETA - Current (MAJOR ARCHITECTURAL OVERHAUL!)

  • Complete migration to FastMCP 2.0 architecture
  • Comprehensive rewrite of all tools with enhanced annotations
  • New unified CLI client supporting multiple transports
  • Eliminated tool_registry.py dependency for cleaner codebase
  • Advanced bearer token support with jwks_uri validation
  • Significantly enhanced error handling and validation
  • Performance optimizations and modern async patterns

v0.3.0 - Previous

  • Streamable HTTP transport support
  • Real-time event streaming
  • Session management and resumability
  • Enhanced client applications

Future plans include:

  • Complete user lifecycle operations
  • Application assignment management
  • Group membership operations
  • Factor enrollment and verification
  • Policy and rule management
  • Approval workflows for sensitive operations
  • Multi-channel approval options (web, email, Slack)
  • Audit logging and compliance reporting
  • System log integration
  • Security insights generation
  • Multi-tenant support
  • Role-based access control

🆘 Need Help?

Before raising an issue, check:

  1. 📝 Server configuration
  2. 🔑 Okta API permissions
  3. 🔌 MCP client compatibility
  4. 📊 Server logs

Still having problems? Open an issue on GitHub or email support@fctr.io (response times may vary)

💡 Feature Requests & Ideas

Have an idea or suggestion? Open a feature request on GitHub!

👥 Contributors

Interested in contributing? We'd love to have you! Contact info@fctr.io for collaboration opportunities.

⚖️ Legal Stuff

Check out License.md for the fine print.


🌟 © 2025 Fctr Identity. All rights reserved. Made with ❤️ for the Okta and AI communities.

Installation

TypingMind
{
  "mcpServers": {
    "fctr-id-okta-mcp-server": {
      "command": "python",
      "args": [
        "okta_mcp_server.py"
      ]
    }
  }
}

Use Okta MCP Server MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once Okta MCP Server is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. You can run MCP locally on your device or connect to a remote MCP server URL.

Option 1: Use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add Okta MCP Server as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the Okta MCP Server MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "fctr-id-okta-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the Okta MCP Server MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the Okta MCP Server MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use Okta MCP Server to help me with this task?
Okta MCP Server
Sure. I read it.
Here is what I found using Okta MCP Server.

Option 2: Add an MCP server URL

Use this when Okta MCP Server is already hosted remotely or your team wants one shared connector that multiple users can access.

1

Open MCP connectors

In TypingMind, go to Plugins, open MCP connectors, then choose Add URL.

  1. Open TypingMind in your browser.
  2. Go to Plugins.
  3. Open MCP connectors.
  4. Click Add URL.
TypingMind Add Custom MCP Server URL form
2

Paste the server URL

Enter the MCP server URL from the provider in the Server URL field. Add a connection name, description, icon, custom HTTP headers, or OAuth client settings if the server requires them.

  1. Paste the MCP server URL from the provider into the Server URL field.
  2. Enter a connection name for Okta MCP Server.
  3. Add a description and icon if you want it to be easier to identify.
  4. Add custom HTTP headers or OAuth client details if the server requires authentication.
3

Create the connection

Click Create connection, then return to the Plugins list and confirm the new MCP connection is active.

  1. Click Create connection.
  2. Return to the MCP connectors list.
  3. Confirm the Okta MCP Server connection appears as active.
  4. Refresh the plugin list if the connection does not appear immediately.
4

Switch models without reconnecting

Start a chat with your preferred model, enable the Okta MCP Server tools from Plugins, and switch to another model whenever needed. The MCP connection stays available to the TypingMind workspace.

  1. Start a new chat in TypingMind.
  2. Select the AI model you want to use.
  3. Enable the Okta MCP Server tools from Plugins.
  4. Ask the model to use the tool when needed.
  5. Switch to another AI model and reuse the same MCP connection.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use Okta MCP Server to help me with this task?
Okta MCP Server
Sure. I read it.
Here is what I found using Okta MCP Server.

Frequently asked questions

What is the Okta MCP Server MCP server used for?

Okta MCP Server is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use Okta MCP Server MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use Okta MCP Server with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use Okta MCP Server MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With Okta MCP Server connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect Okta MCP Server MCP to TypingMind?

Okta MCP Server can be connected in TypingMind with the local MCP connector or by adding a remote MCP server URL. Use the local connector when the server needs access to files, apps, or private resources on your device, and use a server URL when the MCP server is hosted remotely.

What tools does Okta MCP Server MCP provide in TypingMind?

Okta MCP Server exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use Okta MCP Server MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If Okta MCP Server requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇