go2fa-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
go2fa
Local TOTP (2FA) codes: a web page, a CLI and an MCP server. Your secret never leaves your device.
Web: https://go2fa.app (English and Vietnamese, works offline, light and dark theme)
Core: one file of plain JavaScript on WebCrypto, no runtime dependencies (
src/core.js)Same house as Key Atlas (API key recipes and a local leak scanner)
License: MIT
For your own accounts only. go2fa does not accept lists of accounts or id|password|2fa lines, does not check whether accounts are alive, and never puts a secret in a URL.
CLI
npx go2fa selftest # runs the RFC 6238 test vectors, prints "match 18/18"The secret comes from the GO2FA_SECRET environment variable or from stdin (a hidden prompt in a terminal). It is never accepted as an argument, so it cannot end up in your shell history.
# PowerShell
$env:GO2FA_SECRET = Read-Host -MaskInput 'secret'
npx go2fa code # current code
npx go2fa code --next # next code
npx go2fa check 123456 # which 30-second window does this code belong to? (clock drift)# bash
read -rs GO2FA_SECRET && export GO2FA_SECRET
npx go2fa codeOptions: --digits 6|7|8, --period N, --algo SHA1|SHA256|SHA512. An otpauth://totp/... link works instead of a bare Base32 secret and carries its own settings.
Related MCP server: 1Password Agent MCP
MCP server (stdio, local)
An AI assistant can ask for a code by label. The server never returns a secret and never accepts one as a tool argument.
{
"mcpServers": {
"go2fa": {
"command": "npx",
"args": ["-y", "-p", "go2fa", "go2fa-mcp"],
"env": { "GO2FA_FILE": "C:\\Users\\you\\go2fa-secrets.json" }
}
}
}Secrets are loaded by you, by label, in one of two ways:
environment variable
GO2FA_SECRET_<LABEL>(label upper-cased, other characters become_)a JSON file named by
GO2FA_FILE:{ "github": "JBSWY3DPEHPK3PXP" }(keep it out of version control and protect it with file permissions)
Tools:
Tool | Input | Returns |
|
| the current code and seconds left |
|
| which window (+-3) the code belongs to |
Verify
npm test # RFC 6238 vectors, cross-check against otpauth on random inputs, boundaries, CLI and MCP checksDevelopment
npm run build copies the core into public/ and generates the site pages; npm run dev serves public/ locally.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Shared 2FA for teams: let AI agents get TOTP codes for the accounts your Authn8 token can see.
Give AI agents and headless browsers automated 2FA login support. Receive email OTPs, magic links, SMS verification codes, and authenticator TOTP tokens without human intervention (works with Claude Code, Cursor, Playwright, Stagehand, and Browser Use). Powered by dedicated US Telnyx carrier SMS DIDs, <200ms atomic Redis Lua delivery, deterministic <8ms code/link extraction (zero LLM tokens), and rollover-safe Cloud KMS TOTP with zero persistent disk storage.
OAuth 2.1 short-link tools for AI agents with scoped tokens, approvals, audit logs, and revocation.
A secret store for AI agents: the agent never sees the plaintext.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceAccess your team's 2FA codes from AI agents without sharing secrets. List accounts, generate TOTP codes, and maintain full audit trails. Built for DevOps, CI/CD pipelines, and automated workflows that need to authenticate to protected services.116 npmMIT
- AlicenseNot gradedqualityBmaintenanceLocal MCP server that lets agents save copied secrets into 1Password and use approved fields through encrypted handles without plaintext secret tool arguments or responses. Includes a local permissions dashboard and optional service-account access for unattended work. Requires the 1Password CLI and runs on your computer.112 npmMIT
- AlicenseAqualityCmaintenanceEnables AI agents to list, retrieve, add, and audit credentials from an encrypted vault during an active human-unlocked session, while providing no tool to unlock the vault itself.5Apache 2.0
- AlicenseAqualityBmaintenanceEnables AI agents to look up stored logins by URL, name, or alias and use them without seeing the secrets, injecting authentication into HTTP requests, running commands with credentials in the environment and scrubbed output, and fetching 2FA codes, subject to per-credential policies and user approval.23MIT