Labsco
authn8 logo

Authn8

from authn8

Access your team's 2FA codes from AI agents without sharing secrets. List accounts, generate TOTP codes, and maintain full audit trails

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedAccount requiredNeeds API keys

@authn8/mcp-server

MCP server that provides AI agents access to Authn8 2FA codes via PAT authentication.

Docker

docker run -e AUTHN8_API_KEY=pat_xxx ghcr.io/authn8/mcp-server

Environment Variables

VariableRequiredDefaultDescription
AUTHN8_API_KEYYes-Your PAT token from Authn8
AUTHN8_API_URLNohttps://api.authn8.comAPI endpoint URL

Available Tools

list_accounts

Returns all 2FA accounts accessible to this token.

Example response:

[
  {
    "id": "924c52a6-4457-4970-a39f-4dc620217683",
    "name": "AWS Production",
    "issuer": "amazon.com"
  }
]

get_otp

Generates a TOTP code for a specific account.

Parameters:

  • account_id (string, optional) - UUID of the account
  • account_name (string, optional) - Name to search for (partial match)

Provide either account_id or account_name. If multiple accounts match the name, the tool returns a list of matches.

Example response:

{
  "account": "AWS Production",
  "code": "483920"
}

whoami

Returns information about the current token.

Example response:

{
  "business": "Bytecode Solutions",
  "token_name": "MCP Server 2",
  "scoped_groups": ["HR"],
  "account_count": 1,
  "expires_at": "2025-12-25T23:59:59Z"
}