
Authentik MCP Server
io.github.Samik081由 GitHub 账号 Samik081 发布v0.9.0更新于 Nov 12, 2026
Manage Authentik through AI assistants
概览
让 AI 助手读写 Authentik 身份认证平台的 MCP 服务器,可管理用户、组、应用、流程、策略与提供商。
- 可以做什么
- 列出、查看、创建、更新和删除用户、组、应用、权限项、令牌与品牌
- 管理流程、阶段、策略、属性映射、提供商、OAuth2 与 RBAC 对象
- 管理企业终端设备、设备访问组、绑定关系与各类连接器
- 查看和管理证书密钥对,包括查看私钥
- 读取系统设置、版本与任务信息,并触发系统任务
- 按类别筛选暴露的工具,或将全部工具限制为只读
- 适用场景
- 适合自行运维 Authentik 实例的管理员,希望用自然语言查询或修改身份对象而无需在管理界面中逐项操作,或希望对用户、应用与设备做只读监控。
- 运行要求
- 以 Node.js 进程通过 npx 本地运行,或以 Docker 镜像运行,也可自建 HTTP 端点。需要 AUTHENTIK_URL 指向实例,以及具备足够权限的 AUTHENTIK_TOKEN API 令牌;启动时会校验连接。可选变量用于控制访问层级、类别、工具白名单/黑名单及 HTTP 传输设置。
安装
在 SourceWeft 中
- 打开 控制台中的 Authentik MCP Server,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
[npm version] [Docker image] [License: MIT] [Node.js Version]
MCP Authentik
MCP server for Authentik identity management. Manage users, groups, applications, flows, policies, providers, and more through natural language in Cursor, Claude Code, and Claude Desktop.
Features
- 297 tools across 22 categories covering the complete Authentik API
- Read-only mode via
AUTHENTIK_ACCESS_TIER=read-onlyfor safe monitoring - Category filtering via
AUTHENTIK_CATEGORIESto expose only the tools you need - Type-safe SDK client via
@goauthentik/api - Docker images for
linux/amd64andlinux/arm64on GHCR - Remote MCP via HTTP transport (
MCP_TRANSPORT=http) using the Streamable HTTP protocol - TypeScript/ESM with full type safety
API Compatibility
Built for Authentik 2026.5.
Quick Start
Run the server directly with npx:
The server validates your Authentik connection on startup and fails immediately with a clear error if credentials are missing or invalid.
Docker
Run with Docker (stdio transport, same as npx):
To run as a remote MCP server with HTTP transport:
The MCP endpoint is available at http://localhost:3000 and a health check at http://localhost:3000/health.
Security: the HTTP transport has no authentication -- anyone who can reach the port can call every enabled tool. Keep it on loopback or a trusted network, or put it behind an authenticating reverse proxy. Outside Docker the server binds to
127.0.0.1by default and only accepts requests whoseHost/Originis a loopback name (DNS rebinding protection). The Docker image binds to0.0.0.0, where that check is off unless you setMCP_ALLOWED_HOSTSto the hostnames clients use to reach it.
Configuration
Claude Code CLI (recommended):
JSON config (works with Claude Code .mcp.json, Claude Desktop claude_desktop_config.json, Cursor .cursor/mcp.json):
Docker (stdio):
Remote MCP (connect to a running Docker container or HTTP server):
Access Tiers
Control which tools are available using the AUTHENTIK_ACCESS_TIER environment variable:
- full: All 297 tools. Includes creating, updating, and deleting users, groups, applications, flows, providers, and all other resources.
- read-only: 144 tools. Listing and viewing resources only. No state changes.
Tools that are not available in your tier are not registered with the MCP server. They will not appear in your AI tool's tool list, keeping the context clean.
Environment Variables
Available Categories
admin, authenticators, core, crypto, endpoints, enterprise, events, flows, managed, oauth2, outposts, policies, property-mappings, providers, rac, rbac, reports, root, sources, ssf, stages, tenants
Tools
mcp-authentik provides 297 tools organized by category. Each tool's Access column shows the minimum tier required: read-only (available in both tiers) or full (requires full tier). The Hints column shows tool behavior: read-only (no state changes), destructive (modifies existing state), idempotent (same result if called twice).
Admin (8 tools)
Authenticators (5 tools)
Core (45 tools)
Users
Groups
Applications
Tokens
Brands
Crypto (8 tools)
Endpoints (41 tools)
Enterprise device and endpoint management: managed devices, device access groups, device-to-policy bindings, and connectors for agents, enrollment, Fleet, Google Chrome, and Apple ISE-PSSO.
Devices
Device Access Groups
Device Bindings
Agent Connectors
Enrollment Tokens
Fleet Connectors
Google Chrome Connectors
ISE-PSSO Agents
Connectors (generic registry)
Enterprise (8 tools)
Events (25 tools)
Events
System Tasks
Flows (15 tools)
Managed (7 tools)
OAuth2 (9 tools)
Outposts (15 tools)
Policies (19 tools)
Policies use a type+config pattern. Cross-type tools operate on any policy, while per-type tools accept a policy_type parameter. Available types: dummy, event_matcher, expression, geoip, password, password_expiry, reputation, unique_password.
Property Mappings (10 tools)
Property mappings use a type+config pattern. Cross-type tools operate on any mapping, while per-type tools accept a mapping_type parameter. Available types: notification, provider_google_workspace, provider_microsoft_entra, provider_rac, provider_radius, provider_saml, provider_scim, provider_scope, source_kerberos, source_ldap, source_oauth, source_plex, source_saml, source_scim.
Providers (13 tools)
Providers use a type+config pattern. Cross-type tools operate on any provider, while per-type tools accept a provider_type parameter. Available types: oauth2, saml, ldap, proxy, radius, scim, rac, google_workspace, microsoft_entra, wsfed.
RAC (8 tools)
RBAC (11 tools)
RBAC permissions are role-only: assign permissions to roles, then grant a role to users via role membership.
Reports (3 tools)
Root (1 tool)
Sources (11 tools)
Sources use a type+config pattern. Cross-type tools operate on any source, while per-type tools accept a source_type parameter. Available types: oauth, saml, ldap, plex, kerberos, scim, telegram.
SSF (3 tools)
Stages (19 tools)
Stages use a type+config pattern. Cross-type tools operate on any stage, while per-type tools accept a stage_type parameter. Available types: account_lockdown, authenticator_duo, authenticator_email, authenticator_endpoint_gdtc, authenticator_sms, authenticator_static, authenticator_totp, authenticator_validate, authenticator_webauthn, captcha, consent, deny, dummy, email, endpoint, identification, invitation, mtls, password, prompt, redirect, source, user_delete, user_login, user_logout, user_write.
Tenants (10 tools)
Known Limitations
- Application icons are URL-only.
authentik_apps_set_icon_urlsets themeta_iconfield to an external URL, or clears the current icon withclear: true. Uploading a binary icon file is not supported through this MCP server. - Endpoint enrollment keys are not retrievable. Enrollment tokens can be created and managed, but the raw enrollment key value cannot be viewed back through the
@goauthentik/apiSDK.
Verify It Works
After configuring your MCP client, ask your AI assistant:
"What version of Authentik is running?"
If the connection is working, the assistant will call authentik_admin_version and return your server version and build hash.
Usage Examples
- "List all users in the admin group" -- calls
authentik_users_listandauthentik_groups_listto find and display admin group members. - "What applications are configured?" -- calls
authentik_apps_listto show all applications with their providers and groups. - "Create a new user for [email protected]" -- calls
authentik_users_createto set up the new user account. - "Show me a summary of all managed endpoint devices" -- calls
authentik_endpoints_devices_summaryto report aggregate device statistics.
Troubleshooting
Connection errors
- Verify
AUTHENTIK_URLis reachable from the machine running the MCP server - Ensure there is no trailing slash on the URL (use
https://auth.example.comnothttps://auth.example.com/) - Verify HTTPS is configured correctly if your instance uses TLS
Token permissions
- The API token must have sufficient permissions for the tools you intend to use
- Tools with
fullaccess tier will fail if your token only has read permissions -- setAUTHENTIK_ACCESS_TIER=read-onlyto limit exposure - Create tokens in the Authentik admin interface under Directory > Tokens and App passwords
Category filtering
- Use
AUTHENTIK_CATEGORIESwith the actual category values listed above (e.g.,core,admin,flows), not source file names - Users, groups, applications, tokens, and brands are all under the
corecategory, not separate categories - Use comma-separated values with no spaces (e.g.,
core,admin,events)
403 Forbidden: Host header not allowed
In HTTP mode the server rejects requests whose Host or Origin header is not an allowed hostname. If you reach it through a reverse proxy or under another name, add that hostname to MCP_ALLOWED_HOSTS. To accept connections from other machines without Docker, also set MCP_HOST=0.0.0.0.
Development
License
来源:README.md,提交 7f925b1
工具
0版本历史
2- v0.9.0最新Nov 12, 2026
- v0.8.1Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分