@authn8/mcp-server
MCP server that provides AI agents access to Authn8 2FA codes via PAT authentication.
Prerequisites
An Authn8 account
A Personal Access Token (PAT) created in the Authn8 dashboard
Quick Start
Set the AUTHN8_API_KEY environment variable to your PAT token.
Docker
Configuration
Claude Desktop
Add to your Claude Desktop configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
Claude Code (CLI)
Add to your Claude Code configuration file:
macOS: ~/.claude.json
Windows: %USERPROFILE%\.claude.json
Cursor
Add to your Cursor MCP settings:
Environment Variables
Variable | Required | Default | Description |
| Yes | - | Your PAT token from Authn8 |
| No |
| API endpoint URL |
Available Tools
list_accounts
Returns all 2FA accounts accessible to this token.
Example response:
get_otp
Generates a TOTP code for a specific account.
Parameters:
account_id(string, optional) - UUID of the accountaccount_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:
whoami
Returns information about the current token.
Example response:
Links
Authn8 - Create an account and manage 2FA tokens