Skip to content

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

Besides reading, the agent creates and changes realms, clients, roles and scopes, tunes password and lockout policies, sets the roles realms, clients and groups hand out, and activates, deactivates and changes the roles of people. Every change goes through a preview and is applied only after you confirm.

Building an MCP server of your own?

This page is about the MCP server Authio runs to manage your Authio account. To protect your own MCP server with Authio, so agents sign your users in and call your tools, see MCP servers.

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 include realm: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 named realm:read under 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:read too: 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 CodeBash
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.

Claude (claude.ai and Desktop)Plain text
Settings → Connectors → Add custom connector
URL: https://authio.api.hyperio.tech/mcp

The 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

  1. The agent calls /mcp without a token. Authio answers 401 with a WWW-Authenticate: Bearer header whose resource_metadata points at https://authio.api.hyperio.tech/.well-known/oauth-protected-resource/mcp (RFC 9728); the bare /.well-known/oauth-protected-resource answers the same document.
  2. 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, with roles as the scope it advertises.
  3. The agent identifies itself with the address of its Client ID Metadata Document. Only documents hosted at claude.ai and vscode.dev are 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.
  4. It may ask only for roles, which carries your console permissions, and offline_access, which lets it renew without asking you again. The token is addressed to https://authio.api.hyperio.tech/mcp, so the Admin API and other resources refuse it.
  5. 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

ToolWhat it reads
list_realms_and_clientsThe realms and clients the AI may read, with the Id the other tools take. The agent calls it first.
account_overviewThe account at a glance: plan, quotas in use, counts of realms, clients, users and secrets, and sign-ins per realm.
usage_and_quotaThe plan, what it includes, the use of each quota and the AI runs this month.
realm_readinessThe production readiness of a realm and of each of its clients.
client_configurationHow a client is configured, in summary and without secret values.
access_activitySign-ins and token requests of a realm or client over the last days.
admin_changesAdmin changes in a realm over the last days.
push_activityPush approvals in a realm over the last days.
attack_activityAttack incidents in a realm over the last days.
list_rolesThe 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_groupsA client’s groups, with how many members each has and the roles each hands out. Needs client:read.
list_scopesThe account’s and the platform’s scopes, or those that can be allowed in a realm or client. Needs scope:read.
find_userThe 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_policiesA realm’s password policy (length, character classes, breached passwords, reuse and rotation) and lockout policy (attempts, minutes, new people).
integration_planThe 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.

ToolWhat it doesPermission
create_clientCreates 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_clientChanges 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_statusActivates or deactivates a client. Deactivated, it stops signing people in and issuing tokens at once.client:update
create_roleCreates 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_roleChanges 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_roleDeletes 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_grantsSets 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_rolesSets the roles a group hands its members. The group’s name, status, members and scopes stay as they are.client:update
create_scopeCreates an OpenID Connect scope for the whole account or exclusive to a realm or client.scope:write
update_scopeChanges 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_scopeDeletes a scope and takes it from every application; the preview counts how many are allowed it.scope:delete
set_user_statusActivates or deactivates a person of a realm. Deactivated, they cannot sign in to any application of the realm.user:update
assign_user_rolesGives a person roles, keeping the ones they hold. Only the roles the console would offer them are accepted.user:update
remove_user_roleTakes a role a person holds directly; what they receive through a group, client or realm stays.user:update
create_realmCreates a realm, within the plan’s realm limit.realm:write
update_realmChanges a realm’s name or description. Impersonation and client registration stay as they are.realm:update
set_realm_statusActivates 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_policiesChanges 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.