Okta-MCP
A production-ready MCP server for Identity and Access Management with Okta integration, providing user and group management, audit logging, and permission guardrails.
README
MCP Server for IAM Solutions
A production-ready Model Context Protocol (MCP) Server for Identity and Access Management solutions. Currently supports Okta with an extensible architecture for Azure ENTRA ID, Google Workspace, and more.
Features
- 🔐 Okta Integration - Full user and group management
- 📝 Audit Logging - Real-time operation tracking
- 🛡️ Permission Guardrails - Three-tier access control (admin/operator/viewer)
- 💾 Local Database - SQLite for audit trails and user caching
- ⚡ Async Support - Built for performance
- 📊 Web Dashboard - Flask-based management UI
- 🔄 SCIM Support - SCIM 2.0 provisioning server
📁 Project Structure
MCP_Final/
├── README.md # This file
├── requirements.txt # Python dependencies
├── run_mcp.bat # Quick start script
│
├── config/ # 📋 Configuration files
│ ├── .env.example # Environment template
│ ├── tenants.yaml # Tenant configurations
│ └── tenants.yaml.example # Tenant template
│
├── docs/ # 📚 Documentation
│ ├── ARCHITECTURE.md # System architecture
│ └── NGROK_SETUP.md # Ngrok setup guide
│
├── scripts/ # 🔧 Utility scripts
│ ├── migrations/ # Database migrations
│ ├── testing/ # Test utilities
│ └── utils/ # General utilities
│
├── src/ # 🎯 Core MCP server
├── scim/ # 🔐 SCIM 2.0 server
├── dashboard/ # 📊 Web dashboard
└── data/ # 💾 Database files
Quick Start
1. Install Dependencies
pip install -r requirements.txt
2. Configure Environment
# Copy example environment file
cp config/.env.example .env
# Edit .env with your credentials
notepad .env
3. Configure Tenants
# Copy tenant example
cp config/tenants.yaml.example config/tenants.yaml
# Edit with your Okta details
notepad config/tenants.yaml
4. Initialize Database
python -m src.database.init
5. Run the Server
# Quick start
run_mcp.bat
# Or manually
python -m src.server
Configuration
Configuration files are located in the config/ directory. See config/README.md for details.
Environment Variables (.env)
| Variable | Description | Required |
|---|---|---|
OIDC_CLIENT_ID |
OAuth client ID | Yes |
OIDC_CLIENT_SECRET |
OAuth client secret | Yes |
OIDC_DISCOVERY_URL |
OIDC discovery endpoint | Yes |
SECRET_KEY |
Flask session secret | Yes |
DATABASE_URL |
SQLite database path | No (default: ./data/mcp_server.db) |
LOG_LEVEL |
Logging verbosity | No (default: INFO) |
Tenant Configuration (config/tenants.yaml)
Configure multiple Okta tenants. See config/README.md for format.
Available MCP Tools
User Management
list_okta_users- List all users with optional filtersget_okta_user- Get user by ID or emailcreate_okta_user- Create new userupdate_okta_user- Update user profiledelete_okta_user- Deactivate/delete user (admin only)suspend_okta_user/unsuspend_okta_user- Manage user status
Group Management
list_okta_groups- List all groupsget_okta_group- Get group detailscreate_okta_group- Create new groupdelete_okta_group- Delete group (admin only)list_group_members- List users in a groupadd_user_to_group/remove_user_from_group- Manage membership
Audit Tools
query_audit_logs- Search audit historyget_user_audit_trail- User-specific activityexport_audit_report- Generate reports
Permission Levels
| Level | Read | Create | Update | Delete |
|---|---|---|---|---|
| Viewer | ✅ | ❌ | ❌ | ❌ |
| Operator | ✅ | ✅ | ✅ | ❌ |
| Admin | ✅ | ✅ | ✅ | ✅ |
Claude Desktop Integration
Add to your Claude Desktop config (%APPDATA%\Claude\claude_desktop_config.json):
{
"mcpServers": {
"iam-okta": {
"command": "python",
"args": ["-m", "src.server"],
"cwd": "C:\\path\\to\\MCP_Final"
}
}
}
Components
Core MCP Server (src/)
Main Model Context Protocol server providing Okta integration tools.
SCIM Server (scim/)
SCIM 2.0 provisioning server for automated user/group management.
Dashboard (dashboard/)
Web-based management UI with user administration, audit logs, and monitoring. See dashboard/README.md.
Utilities & Scripts
All utility scripts are in the scripts/ directory:
- Migrations:
scripts/migrations/- Database migration scripts - Testing:
scripts/testing/- Test utilities - Utils:
scripts/utils/- General utilities
See scripts/README.md for details.
Documentation
Complete documentation is in the docs/ directory:
- ARCHITECTURE.md - System architecture
- NGROK_SETUP.md - Ngrok configuration
See docs/README.md for the full documentation index.
License
MIT License
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。