Authn8
Access your team's 2FA codes from AI agents without sharing secrets. List accounts, generate TOTP codes, and maintain full audit trails
@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
npx @authn8/mcp-server
Set the AUTHN8_API_KEY environment variable to your PAT token.
Docker
docker run -e AUTHN8_API_KEY=pat_xxx ghcr.io/authn8/mcp-server
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
{
"mcpServers": {
"authn8": {
"command": "npx",
"args": ["-y", "@authn8/mcp-server"],
"env": {
"AUTHN8_API_KEY": "pat_your_token_here"
}
}
}
}
Claude Code (CLI)
Add to your Claude Code configuration file:
macOS: ~/.claude.json
Windows: %USERPROFILE%\.claude.json
{
"mcpServers": {
"authn8": {
"command": "npx",
"args": ["-y", "@authn8/mcp-server"],
"env": {
"AUTHN8_API_KEY": "pat_your_token_here"
}
}
}
}
Cursor
Add to your Cursor MCP settings:
{
"mcpServers": {
"authn8": {
"command": "npx",
"args": ["-y", "@authn8/mcp-server"],
"env": {
"AUTHN8_API_KEY": "pat_your_token_here"
}
}
}
}
Environment Variables
| Variable | Required | Default | Description |
|---|---|---|---|
AUTHN8_API_KEY | Yes | - | Your PAT token from Authn8 |
AUTHN8_API_URL | No | https://api.authn8.com | API 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 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:
{
"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"
}
Links
- Authn8 - Create an account and manage 2FA tokens
- GitHub Repository
Related Servers
Scout Monitoring MCP
sponsorPut performance and error data directly in the hands of your AI assistant.
Alpha Vantage MCP Server
sponsorAccess financial market data: realtime & historical stock, ETF, options, forex, crypto, commodities, fundamentals, technical indicators, & more
CodeRabbit
Integrate with CodeRabbit AI for automated code reviews, pull request analysis, and report generation.
Petstore MCP Server & Client
An MCP server and client implementation for the Swagger Petstore API.
Kubernetes MCP Server
Inspect and debug Kubernetes clusters with read-only access to resources, CRDs, and pod logs.
Shadcn UI MCP Server
A powerful and flexible MCP server designed to enhance the development experience with Shadcn UI components, providing tools for component management, documentation, and installation.
Lightning Tools MCP Server
An MCP server for accessing useful Bitcoin Lightning tools.
WTP - Worktree Plus
Let agents manage Git worktrees via the wtp CLI.
DocuMind MCP Server
An MCP server for analyzing documentation quality using advanced neural processing.
d2-mcp
Create, validate, and render diagrams from D2 (Declarative Diagramming) code into SVG and PNG formats.
Remote MCP Server (Authless)
An example of a remote MCP server deployable on Cloudflare Workers, without authentication.
Remote MCP Server (Authless)
An example of a remote MCP server without authentication, deployable on Cloudflare Workers.