Authio MCP server
Connect Claude, Cursor or another MCP-compatible agent to your Authio account and ask about activity, configuration and usage.
Authio has an MCP server of its own. An agent connected to it reads your account with the same tools as the console’s assistant: sign-ins, admin changes, push approvals and attacks over a period, how realms and clients are configured and how ready they are, the plan, quotas and AI runs. It also hands the agent a client’s integration plan, which the agent applies in your own project.
Changes only with your confirmation
Building an MCP server of your own?
Before you connect
- The account’s plan must include the AI advisor, as the data of the console’s assistant does.
- Only realms and clients with the AI advisor turned on are read; the others answer
ai_not_enabled_here. - To connect with a key, create an API key or a personal access token in API secrets and give it permission to read realms: tick Realms · Read under Admin API permissions (stored as
admin:realm:read), or grant it a role whose claims includerealm:read. A key does nothing on its own: without that permission every call is refused with “The Authio MCP server needs permission to read realms”, whatever the person who created it may do, and a realm scope namedrealm:readunder Scopes does not count, since scopes only limit the tokens a credential obtains for a client. Create a key for the agent, on Agents (MCP), already gives it Realms · Read when you hold it. To change realms, clients, roles, scopes and people, the key also needs the permissions in the changes table, the same way. A key never does more than the person who created it may do today, and one restricted to a single realm or client is not accepted by the MCP server, which reads the whole account. - To connect with your console account instead, your role must include
realm:readtoo: without it every call is refused with “The Authio MCP server needs permission to read realms”. The changes ask for the same permissions as with a key. - Calls share the Admin API’s default rate limit.
Connect
The server lives at https://authio.api.hyperio.tech/mcp and speaks Streamable HTTP. The credential goes in the Authorization: Bearer header.
claude mcp add --transport http authio https://authio.api.hyperio.tech/mcp \
--header "Authorization: Bearer YOUR_API_KEY"Keep the credential as you would a password: whoever holds it reads your account through the agent. Give it an expiry and replace it if you suspect a leak.
Sign in with your account, no key
Claude (claude.ai, Desktop, mobile and Claude Code) and Visual Studio Code can also sign in with your console account, with no key to create: give them only the server address and sign in when the agent asks. The sign-in is the console’s, with your two-factor authentication, and Authio always asks whether you authorize the agent.
Settings → Connectors → Add custom connector
URL: https://authio.api.hyperio.tech/mcpThe access the agent receives works only for the MCP server and carries the permissions you hold in the console, except operating the platform. It renews on its own while the agent’s session is active. Cursor and other clients that do not yet identify the agent with a Client ID Metadata Document keep connecting with an API key.
How the agent finds where to sign in
- The agent calls
/mcpwithout a token. Authio answers401with aWWW-Authenticate: Bearerheader whoseresource_metadatapoints athttps://authio.api.hyperio.tech/.well-known/oauth-protected-resource/mcp(RFC 9728); the bare/.well-known/oauth-protected-resourceanswers the same document. - That document names the resource,
https://authio.api.hyperio.tech/mcp, and its authorization server, the console’s own realm,https://authio.api.hyperio.tech/realms/authio, withrolesas the scope it advertises. - The agent identifies itself with the address of its Client ID Metadata Document. Only documents hosted at
claude.aiandvscode.devare admitted, and the console’s realm takes no dynamic client registration, so no other agent can register itself there. The agent is created on first use and kept in step with its document. - It may ask only for
roles, which carries your console permissions, andoffline_access, which lets it renew without asking you again. The token is addressed tohttps://authio.api.hyperio.tech/mcp, so the Admin API and other resources refuse it. - You sign in on the console’s sign-in screen, then the authorization screen says which agent wants to use the Authio MCP server with your console permissions. Allow finishes the sign-in and hands the agent its code at the local or web address it registered; Deny sends it back with nothing.
Connected agents
The Agents (MCP) screen, under Security, lists the agents connected with your account: the host each one was verified at, the name it gives itself, the access it received and when you last authorized it. Disconnect ends the agent’s access at its next call; to use it again, it needs your authorization again. The same screen has the server address with the ready-made configuration for Claude, Claude Code, VS Code and Cursor, and the latest changes made through MCP.
Tools
| Tool | What it reads |
|---|---|
list_realms_and_clients | The realms and clients the AI may read, with the Id the other tools take. The agent calls it first. |
account_overview | The account at a glance: plan, quotas in use, counts of realms, clients, users and secrets, and sign-ins per realm. |
usage_and_quota | The plan, what it includes, the use of each quota and the AI runs this month. |
realm_readiness | The production readiness of a realm and of each of its clients. |
client_configuration | How a client is configured, in summary and without secret values. |
access_activity | Sign-ins and token requests of a realm or client over the last days. |
admin_changes | Admin changes in a realm over the last days. |
push_activity | Push approvals in a realm over the last days. |
attack_activity | Attack incidents in a realm over the last days. |
list_roles | The account’s roles, or those that can be granted in a realm or client, with Id, status, claims and whom they belong to. Needs role:read. |
list_groups | A client’s groups, with how many members each has and the roles each hands out. Needs client:read. |
list_scopes | The account’s and the platform’s scopes, or those that can be allowed in a realm or client. Needs scope:read. |
find_user | The person of a realm with exactly the e-mail address given: answers only their Id, status and direct roles, never their name or address. People are never listed. Needs user:read. |
realm_policies | A realm’s password policy (length, character classes, breached passwords, reuse and rotation) and lockout policy (attempts, minutes, new people). |
integration_plan | The integration plan of a client: the packages to install, the files to write and the environment variables to set, written for the client as it is configured. Only for nextjs-authjs-v5 (Next.js with the App Router and Auth.js v5). Needs client:read. |
The tools that read a period take days, from 1 to 90: account_overview reads the last 30 by default, and access_activity, admin_changes, push_activity and attack_activity the last 7.
Integrate an application through the agent
Open the agent in the project the application lives in and ask it to integrate a client, naming the realm and the client. It reads the Next.js version from the project, calls integration_plan and writes the plan there in front of you: the same plan the terminal command of the client’s integration guide receives. The plan never carries the client secret: the agent leaves its variable empty for you to fill in, draws the random ones on your machine, never overwrites a file without showing you the difference, and never commits. Authio never reaches your repository.
Like the other tools, it answers only for a client you may act on and that the AI may read: the AI consent given on its realm, or on the client itself. A plan is refused with IntegrationPlanStackNotSupported for any other stack, and with IntegrationPlanClientNotCompatible for a client that does not allow the authorization code grant or allows only the plain PKCE method.
Changes in two steps
Tools that change something never apply on the first call. Without confirmation they only show exactly what would change and return an 8-letter code. The agent shows you the changes and calls again, with the same arguments and the code, only if you agree. The code holds 5 minutes, once, only for the person who asked and only for that change: if the record moved since the preview, it is refused and the agent asks for a new preview.
| Tool | What it does | Permission |
|---|---|---|
create_client | Creates a client: web and machine are confidential (the secret never leaves through MCP; generate one in the console), spa and native are public. | realm:write |
update_client | Changes the name, description, return and sign-out addresses, consent, SSO, sign-up and terms. What is left out stays as it is. | client:update |
set_client_status | Activates or deactivates a client. Deactivated, it stops signing people in and issuing tokens at once. | client:update |
create_role | Creates a role for the whole account or exclusive to a realm or client. Claims go as type=value (realm=read, department=sales); an account role carries only permissions the credential in use holds. | role:write |
update_role | Changes a role’s name, description, status or claims; the claims list replaces the current one. What is left out stays as it is. | role:update |
delete_role | Deletes a role and takes it from everyone who holds it; the preview counts how many people, groups, clients and realms lose it. | role:delete |
set_role_grants | Sets the roles a realm, or a client of it, grants to everyone it reaches. The list replaces the current one; empty, it withdraws them all. | role:update |
set_group_roles | Sets the roles a group hands its members. The group’s name, status, members and scopes stay as they are. | client:update |
create_scope | Creates an OpenID Connect scope for the whole account or exclusive to a realm or client. | scope:write |
update_scope | Changes a scope’s name, description, kind (Default, Optional or None) or whether it requires assignment. Renaming breaks applications that still ask for the old name. | scope:update |
delete_scope | Deletes a scope and takes it from every application; the preview counts how many are allowed it. | scope:delete |
set_user_status | Activates or deactivates a person of a realm. Deactivated, they cannot sign in to any application of the realm. | user:update |
assign_user_roles | Gives a person roles, keeping the ones they hold. Only the roles the console would offer them are accepted. | user:update |
remove_user_role | Takes a role a person holds directly; what they receive through a group, client or realm stays. | user:update |
create_realm | Creates a realm, within the plan’s realm limit. | realm:write |
update_realm | Changes a realm’s name or description. Impersonation and client registration stay as they are. | realm:update |
set_realm_status | Activates or deactivates a realm. Deactivated, every sign-in and token of its applications stops at once; reactivating counts against the plan’s limit. | realm:update |
update_realm_policies | Changes a realm’s password and lockout policies. What is left out stays as it is; a stricter password applies from each person’s next change. | realm:update |
Every change applied, and every refusal by Authio when applying, goes to the admin audit trail under the person who issued the credential, or the person signed in, with method POST and the path /mcp#<tool>. Its details hold channel (mcp), tool and, for an agent that signed in with your account, agent, the address of the agent’s metadata document; a realm endpoint subscribed to the administrative events receives the change like any other. The rules are the console’s: validation, plan limits and the person’s access to the realm and client. The platform’s roles and scopes, and Authio’s own accounts, never change through MCP.
What the agent sees
- People appear as labels ("Person 1") or by Id, never by name, e-mail or address. To change someone, you give the agent their e-mail address and it finds them with
find_user. - Secrets, passwords, keys and full web addresses never leave.
- Answers go to the AI you connected, under its terms. Authio does not keep the agent’s conversations.