
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 分