Authn8 MCP Server
This server has a remotely hosted endpoint. Open its connector listing for connection details, authentication requirements, and setup instructions:
@authn8/mcp-server
MCP server for Authn8, shared 2FA for teams. It lets AI agents fetch TOTP codes for the 2FA accounts your team shares in Authn8, so an agent can finish a sign-in without anyone reading a code out of a phone. Every code it fetches is recorded in Authn8's access log with the name of the token that asked for it.
Listed in the MCP Registry as
io.github.authn8/mcp-server.
Requirements
An Authn8 business on a paid plan. MCP tokens are not available on the Free plan, and a business's tokens stop working if its subscription ends.
An MCP token. Create one in Authn8 under Settings → MCP Tokens (how to create an MCP token). Tokens start with
pat_. A token only reaches the 2FA accounts its creator can already access, and you can narrow it further to chosen groups and give it an expiry date.Node.js 18 or later, if you run the npm package. The hosted endpoint needs nothing installed.
Related MCP server: grantd-mcp
Two ways to connect
Hosted endpoint | npm package | |
Install | None |
|
Transport | Streamable HTTP | stdio |
Address |
|
|
Token |
|
|
Both offer the same three tools: list_accounts, get_otp and whoami.
Hosted endpoint
Point any MCP client that supports streamable HTTP at https://api.authn8.com/mcp
and send your token in the Authorization header as Bearer pat_your_token_here.
Claude Code
claude mcp add --transport http --scope user authn8 https://api.authn8.com/mcp \
--header "Authorization: Bearer pat_your_token_here"npm package
Claude Code
claude mcp add --env AUTHN8_API_KEY=pat_your_token_here --transport stdio --scope user authn8 \
-- npx -y @authn8/mcp-server--scope user makes the server available in all your projects. Leave it out to add
it to the current project only.
Claude Desktop
Open Settings → Developer → Edit Config, or edit the file directly:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.jsonLinux:
~/.config/Claude/claude_desktop_config.json
{
"mcpServers": {
"authn8": {
"command": "npx",
"args": ["-y", "@authn8/mcp-server"],
"env": {
"AUTHN8_API_KEY": "pat_your_token_here"
}
}
}
}Quit and restart Claude Desktop after saving.
Cursor
Add this to ~/.cursor/mcp.json for all projects, or to .cursor/mcp.json in a
project:
{
"mcpServers": {
"authn8": {
"command": "npx",
"args": ["-y", "@authn8/mcp-server"],
"env": {
"AUTHN8_API_KEY": "pat_your_token_here"
}
}
}
}Other clients
Run npx -y @authn8/mcp-server as a stdio server with AUTHN8_API_KEY set.
Environment variables
Variable | Required | Default | Description |
| Yes | - | Your MCP token ( |
| No |
| API base URL |
On startup the server checks the token and prints the business name, token name, account count and expiry date to stderr. It exits if the token is missing or rejected.
Tools
All tools declare an output schema and return structuredContent alongside the
text block, so clients get typed results without re-parsing JSON out of text.
list_accounts
Returns all 2FA accounts accessible to this token.
Example response:
{
"accounts": [
{
"id": "924c52a6-4457-4970-a39f-4dc620217683",
"name": "AWS Production",
"issuerDomain": "amazon.com"
}
]
}get_otp
Generates a TOTP code for a specific account.
Parameters:
account_id(string, optional): UUID of the accountaccount_name(string, optional): name or issuer domain to search for (case-insensitive partial match)
Provide either account_id or account_name. If more than one account matches
the name, the tool returns them in multipleMatches so you can retry with an
account_id.
Example response:
{
"name": "AWS Production",
"code": "483920",
"length": 6
}Ambiguous match:
{
"error": "Multiple accounts match 'aws'. Please be more specific or use account_id.",
"length": 0,
"multipleMatches": [
{
"id": "924c52a6-4457-4970-a39f-4dc620217683",
"name": "AWS Production",
"issuerDomain": "amazon.com"
}
]
}whoami
Returns information about the current token.
Example response:
{
"tokenName": "Claude Code",
"businessName": "Acme Ltd",
"scopedGroups": [
{ "id": "cfeba14a-e990-49e8-b6e5-61d63f7d68c8", "name": "Engineering" }
],
"expiresAt": "2027-06-30T23:59:59Z",
"accountCount": 12
}Links
Authn8: shared 2FA for teams
This server cannot be deployed
Maintenance
Related MCP Connectors
Secrets for developers and agents—secure context and workflows without exposing secret values.
Verified, pay-per-use API tools for AI agents through one authenticated connection.
Give your AI hands. Identity, credential vault, and API gateway for autonomous agents.
Credential broker for AI agents: scoped, revocable API access with policy enforcement and audit.
Related MCP Servers
- AlicenseNot gradedqualityFmaintenanceEnables AI agents to securely perform privileged actions like creating GitHub issues by minting short-lived, single-purpose tokens on demand, with policy enforcement and audit logging.MIT
- AlicenseNot gradedqualityDmaintenanceOAuth token broker for AI agents to securely act on a user's behalf across third-party APIs (Gmail, Slack, GitHub, Notion, etc.) by vaulting tokens server-side and never exposing them to the LLM.1MIT
- AlicenseAqualityBmaintenanceEnables AI agents to make authenticated API calls and run commands with secrets injected, while keeping credentials completely hidden from the model, with policy enforcement, grants, and audit logging.6MIT
- AlicenseNot gradedqualityAmaintenanceEnables authorized AI coding agents to securely access development machines, repositories, terminals, and processes through a policy-enforced, audited control plane.Apache 2.0