Lets AI agents read 2FA codes and passwords from the Authenticator App to help with login flows.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
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>"
}
}
}
}需要的环境变量
AUTHENTICATOR_ACCESS_TOKEN
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。