Authn8
io.github.authn8由 GitHub 账号 authn8 发布v1.1.3更新于 Nov 5, 2026
Shared 2FA for teams: let AI agents get TOTP codes for the accounts your Authn8 token can see.
概览
Authn8 的 MCP 服务器,让 AI 代理列出团队共享的 2FA 账户并获取 TOTP 验证码,从而完成登录。
- 可以做什么
- 列出该令牌可访问的 2FA 账户,含名称与签发方域名
- 按账户 ID 或按名称/签发方模糊搜索获取当前 TOTP 验证码,多个匹配时返回候选以便重试
- 查看当前令牌信息:令牌名称、企业、限定分组、到期时间与账户数量
- 所有工具均返回结构化结果,同时附带文本块
- 适用场景
- 当代理需要完成需要 TOTP 验证码的登录,而该账户由团队在 Authn8 中共享时使用,无需有人从手机上读出验证码。适合已在用 Authn8、希望代理访问受令牌限定并留有记录的团队。
- 运行要求
- 需要付费方案下的 Authn8 企业账户;免费方案不提供 MCP 令牌,订阅结束后令牌失效。需要以 pat_ 开头的 MCP 令牌,在设置中的 MCP Tokens 页面创建;托管端点通过 Authorization 请求头以 Bearer 方式传入,npm 包则通过 AUTHN8_API_KEY 环境变量传入。仅本地 npm 包需要 Node.js 18 或更高版本,托管端点无需安装任何东西。
安装
在 SourceWeft 中
- 打开 控制台中的 Authn8,将其添加到工作区。
- 连接 Authorization token 凭据。它们会被私密存储,绝不会在公开页面上展示。
- 为需要使用其工具的对话启用该服务。
Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。
交给智能体安装
把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。
阅读 https://sourceweft.com/mcp/io.github.authn8%2Fmcp-server/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。其他 MCP 客户端
把它添加到你客户端的 mcpServers 配置中。
{
"mcpServers": {
"authn8": {
"type": "http",
"url": "https://api.authn8.com/mcp",
"headers": {
"Authorization": "Bearer <YOUR_TOKEN>"
}
}
}
}README
@authn8/mcp-server
MCP server for Authn8, shared 2FA for teams. It lets AI agents fetch TOTP codes for the 2FA accounts your team shares in Authn8, so an agent can finish a sign-in without anyone reading a code out of a phone. Every code it fetches is recorded in Authn8's access log with the name of the token that asked for it.
Listed in the MCP Registry as
io.github.authn8/mcp-server.
Requirements
- An Authn8 business on a paid plan. MCP tokens are not available on the Free plan, and a business's tokens stop working if its subscription ends.
- An MCP token. Create one in Authn8 under Settings → MCP Tokens
(how to create an MCP token).
Tokens start with
pat_. A token only reaches the 2FA accounts its creator can already access, and you can narrow it further to chosen groups and give it an expiry date. - Node.js 18 or later, if you run the npm package. The hosted endpoint needs nothing installed.
Two ways to connect
Both offer the same three tools: list_accounts, get_otp and whoami.
Hosted endpoint
Point any MCP client that supports streamable HTTP at https://api.authn8.com/mcp
and send your token in the Authorization header as Bearer pat_your_token_here.
Claude Code
npm package
Claude Code
--scope user makes the server available in all your projects. Leave it out to add
it to the current project only.
Claude Desktop
Open Settings → Developer → Edit Config, or edit the file directly:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json - Linux:
~/.config/Claude/claude_desktop_config.json
Quit and restart Claude Desktop after saving.
Cursor
Add this to ~/.cursor/mcp.json for all projects, or to .cursor/mcp.json in a
project:
Other clients
Run npx -y @authn8/mcp-server as a stdio server with AUTHN8_API_KEY set.
Environment variables
On startup the server checks the token and prints the business name, token name, account count and expiry date to stderr. It exits if the token is missing or rejected.
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:
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 more than one account matches
the name, the tool returns them in multipleMatches so you can retry with an
account_id.
Example response:
Ambiguous match:
whoami
Returns information about the current token.
Example response:
Links
- Authn8: shared 2FA for teams
- How to create an MCP token
- GitHub repository
- MCP Registry entry
来源:README.md,提交 b27179e
工具
0版本历史
1- v1.1.3最新Nov 5, 2026
评分
已满足适用检查项的 85%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通必需25 分
- 已声明认证方式必需10 分
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分