Authn8 MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Authn8 MCP Serverget me the 2FA code for AWS Production"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
@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
Related MCP server: agent-auth
Quick Start
npx @authn8/mcp-serverSet the AUTHN8_API_KEY environment variable to your PAT token.
Docker
docker run -e AUTHN8_API_KEY=pat_xxx ghcr.io/authn8/mcp-serverConfiguration
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 |
| Yes | - | Your PAT token from Authn8 |
| No |
| API endpoint URL |
Available 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 multiple accounts match 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": "MCP Server 2",
"businessName": "Bytecode Solutions",
"scopedGroups": [
{ "id": "cfeba14a-e990-49e8-b6e5-61d63f7d68c8", "name": "HR" }
],
"expiresAt": "2025-12-25T23:59:59Z",
"accountCount": 1
}Links
Authn8 - Create an account and manage 2FA tokens
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.
- FullmaktOAuthai.fullmakt
Credential broker for AI agents: scoped, revocable API access with policy enforcement and audit.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceSelf-hosted credential store and API proxy for AI agents. One Bearer token, all your services. Handles OAuth refresh, encrypted storage, audit logging, and per-agent permissioning.69 npmMIT
- AlicenseNot gradedqualityDmaintenanceZero-knowledge credential injection for AI agents. Your agent authenticates to websites and APIs without ever seeing a password, TOTP code, or API key.3 npm1MIT
- AlicenseNot gradedqualityCmaintenanceEnables 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