Lets AI agents read 2FA codes and passwords from the Authenticator App to help with login flows.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add authenticator --env AUTHENTICATOR_ACCESS_TOKEN='<AUTHENTICATOR_ACCESS_TOKEN>' -- npx -y authenticator-mcp '--access-token={{config.AUTHENTICATOR_ACCESS_TOKEN}}'~/.codex/config.toml
[mcp_servers.authenticator]
command = "npx"
args = ["-y", "authenticator-mcp", "--access-token={{config.AUTHENTICATOR_ACCESS_TOKEN}}"]
env = { AUTHENTICATOR_ACCESS_TOKEN = "<AUTHENTICATOR_ACCESS_TOKEN>" }
# codex mcp add authenticator --env AUTHENTICATOR_ACCESS_TOKEN='<AUTHENTICATOR_ACCESS_TOKEN>' -- npx -y authenticator-mcp '--access-token={{config.AUTHENTICATOR_ACCESS_TOKEN}}'~/.cursor/mcp.json
{
"mcpServers": {
"authenticator": {
"command": "npx",
"args": [
"-y",
"authenticator-mcp",
"--access-token={{config.AUTHENTICATOR_ACCESS_TOKEN}}"
],
"env": {
"AUTHENTICATOR_ACCESS_TOKEN": "<AUTHENTICATOR_ACCESS_TOKEN>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"authenticator": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"authenticator-mcp",
"--access-token={{config.AUTHENTICATOR_ACCESS_TOKEN}}"
],
"env": {
"AUTHENTICATOR_ACCESS_TOKEN": "<AUTHENTICATOR_ACCESS_TOKEN>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"authenticator": {
"command": "npx",
"args": [
"-y",
"authenticator-mcp",
"--access-token={{config.AUTHENTICATOR_ACCESS_TOKEN}}"
],
"env": {
"AUTHENTICATOR_ACCESS_TOKEN": "<AUTHENTICATOR_ACCESS_TOKEN>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"authenticator": {
"command": "npx",
"args": [
"-y",
"authenticator-mcp",
"--access-token={{config.AUTHENTICATOR_ACCESS_TOKEN}}"
],
"env": {
"AUTHENTICATOR_ACCESS_TOKEN": "<AUTHENTICATOR_ACCESS_TOKEN>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"authenticator": {
"command": "npx",
"args": [
"-y",
"authenticator-mcp",
"--access-token={{config.AUTHENTICATOR_ACCESS_TOKEN}}"
],
"env": {
"AUTHENTICATOR_ACCESS_TOKEN": "<AUTHENTICATOR_ACCESS_TOKEN>"
}
}
}
}Environment variables
AUTHENTICATOR_ACCESS_TOKEN
Replace the placeholders with your own credentials and keep them out of version control.