
authentik-mcp
Authentik MCP provides seamless integration with Authentik's API, supporting both full-featured and diagnostic modes. These enable secure, automated user, group, and system management through MCP-compatible tools.
README
Authentik MCP Servers
A collection of Model Context Protocol (MCP) servers for Authentik API integration, available in both Python and Node.js implementations.
Overview
This repository contains four MCP servers for integrating with Authentik:
Full-Featured Servers
- authentik-mcp (Python) - Complete Authentik API integration with full CRUD capabilities
- authentik-mcp (Node.js) - TypeScript implementation with complete API access
Diagnostic-Only Servers
- authentik-diag-mcp (Python) - Read-only diagnostic and monitoring capabilities
- authentik-diag-mcp (Node.js) - TypeScript implementation for diagnostics and monitoring
MCP Integration & Usage
This repository is designed for seamless integration with the Model Context Protocol (MCP) ecosystem. These servers are intended to be run and managed by MCP-compatible tools (such as VS Code extensions, automation platforms, or orchestration systems) rather than directly via the command line.
How to Use with MCP
- Install the desired package(s):
- For full API access:
authentik-mcp
- For diagnostics/monitoring:
authentik-diag-mcp
- For full API access:
- Configure your MCP tool or platform to point to the installed server binary (e.g.,
authentik-mcp
orauthentik-diag-mcp
) and provide the required Authentik API token and base URL as arguments or environment variables. - Do not run these servers directly via CLI. Instead, let your MCP-compatible tool manage their lifecycle and communication.
- Interact with Authentik through the MCP tool interface, which will expose all available resources and tools for automation, monitoring, and diagnostics.
Example: VS Code Github Copilot MCP Extension
GitHub Copilot Workspace (settings.json) – Python (uvx):
"mcp": {
"servers": {
"authentik": {
"command": "uvx",
"args": [
"authentik-diag-mcp",
"--base-url", "https://your-authentik-instance",
"--token", "your-api-token"
]
}
}
}
GitHub Copilot Workspace (settings.json) – Node.js (npx):
"mcp": {
"servers": {
"authentik": {
"command": "npx",
"args": [
"@cdmx/authentik-diag-mcp",
"--base-url", "https://your-authentik-instance",
"--token", "your-api-token"
]
}
}
}
Claude Desktop (claude_desktop_config.json) – Python (uvx):
{
"mcpServers": {
"authentik": {
"command": "uvx",
"args": [
"authentik-diag-mcp",
"--base-url",
"https://your-authentik-instance",
"--token",
"your-api-token"
]
}
}
}
Claude Desktop (claude_desktop_config.json) – Node.js (npx):
{
"mcpServers": {
"authentik": {
"command": "npx",
"args": [
"@cdmx/authentik-diag-mcp",
"--base-url",
"https://your-authentik-instance",
"--token",
"your-api-token"
]
}
}
}
Quick Start
Python Packages
Note: These packages are not intended for direct CLI use. Integrate them with your MCP-compatible tool or platform as described above.
Node.js Packages
Note: These packages are not intended for direct CLI use. Integrate them with your MCP-compatible tool or platform as described above.
Full API Access
Managed by your MCP tool. No direct CLI usage required.
Diagnostic Only
Managed by your MCP tool. No direct CLI usage required.
Features Comparison
Feature | Full MCP | Diagnostic MCP |
---|---|---|
User Management (CRUD) | ✅ | ❌ (Read-only) |
Group Management (CRUD) | ✅ | ❌ (Read-only) |
Application Management (CRUD) | ✅ | ❌ (Read-only) |
Event Monitoring | ✅ | ✅ |
User Information | ✅ | ✅ (Read-only) |
Group Information | ✅ | ✅ (Read-only) |
Application Status | ✅ | ✅ (Read-only) |
Flow Management | ✅ | ✅ (Read-only) |
Provider Management | ✅ | ✅ (Read-only) |
Token Management | ✅ | ❌ |
System Health Monitoring | ✅ | ✅ |
Audit Trail Analysis | ✅ | ✅ |
API Token Setup
For Full Access (authentik-mcp)
- Log in to Authentik as an administrator
- Navigate to Directory > Tokens
- Create a new token with full API permissions
- Copy the token for use with the full MCP server
For Diagnostic Access (authentik-diag-mcp)
- Log in to Authentik as an administrator
- Navigate to Directory > Tokens
- Create a new token with minimal read-only permissions
- Copy the token for use with the diagnostic MCP server
Available Tools
Full MCP Server Tools
User Management
authentik_list_users
- List users with filteringauthentik_get_user
- Get user detailsauthentik_create_user
- Create new userauthentik_update_user
- Update existing userauthentik_delete_user
- Delete user
Group Management
authentik_list_groups
- List groupsauthentik_get_group
- Get group detailsauthentik_create_group
- Create new groupauthentik_update_group
- Update existing groupauthentik_delete_group
- Delete group
Application Management
authentik_list_applications
- List applicationsauthentik_get_application
- Get application detailsauthentik_create_application
- Create new applicationauthentik_update_application
- Update existing applicationauthentik_delete_application
- Delete application
Event Monitoring
authentik_list_events
- List system eventsauthentik_get_event
- Get event details
Flow Management
authentik_list_flows
- List authentication flowsauthentik_get_flow
- Get flow details
Provider Management
authentik_list_providers
- List providersauthentik_get_provider
- Get provider details
Token Management
authentik_list_tokens
- List API tokensauthentik_create_token
- Create new token
Diagnostic MCP Server Tools
Event Monitoring
authentik_list_events
- List system events with filteringauthentik_get_event
- Get detailed event informationauthentik_search_events
- Search events by criteriaauthentik_get_user_events
- Get user-specific events
User Information (Read-Only)
authentik_get_user_info
- Get user informationauthentik_list_users_info
- List users for diagnosticsauthentik_get_user_events
- Get user event history
Group Information (Read-Only)
authentik_get_group_info
- Get group informationauthentik_list_groups_info
- List groups for diagnosticsauthentik_get_group_members
- Get group members
System Health
authentik_get_system_config
- Get system configurationauthentik_get_version_info
- Get version information
Application/Flow/Provider Status (Read-Only)
authentik_get_application_status
- Check application statusauthentik_list_applications_status
- List application statusesauthentik_get_flow_status
- Check flow statusauthentik_list_flows_status
- List flow statusesauthentik_get_provider_status
- Check provider statusauthentik_list_providers_status
- List provider statuses
Use Cases
Full MCP Server
- User Management: Create, update, and manage user accounts
- Group Administration: Organize users into groups with appropriate permissions
- Application Setup: Configure and deploy new applications
- Flow Configuration: Set up and customize authentication flows
- System Administration: Complete system management and configuration
Diagnostic MCP Server
- Security Monitoring: Track authentication events and security incidents
- Performance Analysis: Monitor system performance and user experience
- Compliance Reporting: Generate audit reports and compliance documentation
- Troubleshooting: Diagnose authentication and access issues
- Health Monitoring: Monitor system health and configuration drift
Security Best Practices
Token Management
- Use dedicated tokens for each server type
- Rotate tokens regularly
- Apply principle of least privilege
- Monitor token usage
Environment Security
- Always use HTTPS in production
- Verify SSL certificates
- Use environment variables for sensitive data
- Implement proper access controls
Monitoring
- Enable audit logging
- Monitor API usage patterns
- Set up alerting for suspicious activities
- Regular security reviews
Development
Building All Packages
chmod +x build.sh
./build.sh
Publishing All Packages
chmod +x publish.sh
./publish.sh
Development Setup
Python Development
cd python/authentik-mcp # or authentik-diag-mcp
uv sync
uv run authentik-mcp --base-url http://localhost:9000 --token your-token
Node.js Development
cd nodejs/authentik-mcp # or authentik-diag-mcp
npm install
npm run dev -- --base-url http://localhost:9000 --token your-token
Requirements
Python
- Python 3.10 or higher
- uv package manager (recommended)
Node.js
- Node.js 18.0.0 or higher
General
- Valid Authentik API token with appropriate permissions
- npm or yarn
Project Structure
authentik-mcp/
├── python/
│ ├── authentik-mcp/ # Full Python MCP server
│ └── authentik-diag-mcp/ # Diagnostic Python MCP server
├── nodejs/
│ ├── authentik-mcp/ # Full Node.js MCP server
│ └── authentik-diag-mcp/ # Diagnostic Node.js MCP server
├── build.sh # Build all packages
├── publish.sh # Publish all packages
└── README.md # This file
License
MIT License - see individual package LICENSE files for details.
Support
Contributing
We welcome contributions! Please see our Contributing Guide for details.
Changelog
See individual package CHANGELOG.md files for version history and changes.
推荐服务器

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 模型以安全和受控的方式获取实时的网络信息。