
Authentik MCP Server
io.github.Samik081Published by GitHub account Samik081v0.9.0Updated Nov 12, 2026
Manage Authentik through AI assistants
Overview
MCP server that lets an AI assistant read and change an Authentik identity provider: users, groups, applications, flows, policies and providers.
- What you can do
- List, view, create, update and delete users, groups, applications, entitlements, tokens and brands
- Manage flows, stages, policies, property mappings, providers, OAuth2 and RBAC objects
- Administer enterprise endpoint devices, device access groups, bindings and connectors
- Inspect and manage certificate keypairs, including viewing private keys
- Read system settings, version and task information, and trigger system tasks
- Filter which tool categories are exposed and restrict everything to read-only
- When to use it
- Useful when you administer a self-hosted Authentik instance and want to query or change identity objects in natural language instead of clicking through the admin interface, or want read-only monitoring of users, applications and devices.
- Requirements
- Runs locally as a Node.js process via npx or as a Docker image, or as a self-hosted HTTP endpoint. Requires AUTHENTIK_URL pointing at the instance and an AUTHENTIK_TOKEN API token with sufficient permissions; the server validates the connection at startup. Optional variables control access tier, categories, tool allow/deny lists and HTTP transport settings.
Installation
In SourceWeft
- Open Authentik MCP Server in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
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
Source: README.md at commit 7f925b1
Tools
0Version history
2- v0.9.0LatestNov 12, 2026
- v0.8.1Sep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts