# Authn8

> Authn8 is a freemium MCP server for security. Lets AI agents fetch TOTP codes for the shared 2FA accounts your team keeps in Authn8. It can run locally on your machine or as a hosted remote server.

- **Kind:** MCP server
- **Pricing:** Freemium
- **Starting price:** $19.99 a month
- **Platforms:** API, CLI, Web
- **Website:** https://authn8.com
- **Repository:** https://github.com/authn8/mcp-server
- **MCP Registry name:** io.github.authn8/mcp-server
- **Categories:** security
- **Listing updated:** 2026-11-14

## About

Aimed at teams that share logins such as vendor portals or CI service accounts, this server lets an agent finish a sign-in without anyone reading a code off a phone. It exposes three tools: `list_accounts`, `get_otp` and `whoami`. Every code an agent fetches is written to Authn8's access log with the name of the token that asked.

Access runs through an MCP token that starts with `pat_`, created under Settings, MCP Tokens. A token only reaches the accounts its creator can already see, and it can be narrowed to chosen groups and given an expiry date. The README says tokens stop working if the business's subscription ends.

You can connect to the hosted Streamable HTTP endpoint with a Bearer header, or run the npm package over stdio with `AUTHN8_API_KEY` set; it needs Node.js 18 or later. On startup the package checks the token and prints the business name, token name, account count and expiry to stderr. The MCP server is part of the Premium plan and above.

## Features

- **Account listing:** Return the 2FA accounts the token can access.
- **On-demand TOTP codes:** Generate a code for a specific account.
- **Token identity check:** Confirm which token and business the agent is using.
- **Access logging:** Record each fetched code against the requesting token's name.
- **Scoped tokens:** Limit a token to chosen groups and set an expiry date.
- **Two transports:** Use the hosted HTTP endpoint or the stdio npm package.

## Good for

- Let an agent sign in to a shared vendor portal that needs a code
- Run CI jobs that depend on a shared service account's 2FA
- Audit which agent token requested which code
- Give a contractor's agent access to a single group of accounts

## Install

### Claude Code (Terminal)

```sh
claude mcp add --transport http mcp-server https://api.authn8.com/mcp
```

### Claude Desktop (Settings → Connectors → Add custom connector)

```sh
https://api.authn8.com/mcp
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "mcp-server": {
      "url": "https://api.authn8.com/mcp"
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "mcp-server": {
      "type": "http",
      "url": "https://api.authn8.com/mcp"
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "mcp-server": {
      "serverUrl": "https://api.authn8.com/mcp"
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "mcp-server": {
      "type": "http",
      "url": "https://api.authn8.com/mcp"
    }
  }
}
```

## Tools

- `list_accounts`: Returns all 2FA accounts accessible to this token
- `get_otp`: Generates a TOTP code for a specific account
- `whoami`: Shows the identity of the token

## FAQ

### Which plan includes the MCP server?

The pricing page lists the MCP server from the Premium plan at $44.99 per month; it is not on Free.

### How does an agent authenticate?

With an MCP token starting `pat_`, sent as a Bearer header or in `AUTHN8_API_KEY`.

### Can a token see every account?

No. It reaches only accounts its creator can access, and can be narrowed to groups.

### What are the requirements for the npm package?

Node.js 18 or later; the hosted endpoint needs nothing installed.

### Is Authn8 free?

Authn8 has a free plan, with paid plans for more usage or features. Paid plans start at $19.99 a month.

### How do I add Authn8 to Claude Code?

Run this command in your terminal: claude mcp add --transport http mcp-server https://api.authn8.com/mcp

### What are the best alternatives to Authn8?

The closest alternatives to Authn8 are REA, Agent Roast, Midplane, Leash and Tinplate Edge AI Safety, Security & EU Compliance.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Agent Roast](https://ai-powered.com/mcp/agent-roast): Agent Roast is an open-source MCP server for developer tools.
- [Midplane](https://ai-powered.com/mcp/midplane): Midplane is an open-source MCP server for databases.
- [Leash](https://ai-powered.com/mcp/leash): Leash is a free MCP server for security.
- [Tinplate Edge AI Safety, Security & EU Compliance](https://ai-powered.com/mcp/tinplate-edge-ai-safety-security-and-eu-compliance): Tinplate Edge AI Safety, Security & EU Compliance is a freemium MCP server for security.
- [SecureCloud](https://ai-powered.com/mcp/securecloud): SecureCloud is a free MCP server for security.
- [Eikino](https://ai-powered.com/mcp/eikino): Eikino is a freemium MCP server for security.
- [SynomosAI Governance MCP](https://ai-powered.com/mcp/synomosai-governance-mcp-2): SynomosAI Governance MCP is an open-source MCP server for security.

---
Source: https://ai-powered.com/mcp/authn8
