AnB-MCP
An MCP front-end for AnB. The tool surface is "use-don't-reveal": no tool returns a plaintext secret. Reveal paths require a TTY the server doesn't have, so the no-reveal guarantee is structural, not prompt-based — it holds even against a prompt-injected agent. Runs as a dedicated, narrowly-scoped AnB identity; exec is default-deny (only allowlist rules tagged scope=mcp run); command output
README
AnB-MCP
An MCP server front-end for AnB that lets AI agents use secrets without ever seeing them.
Headline guarantee: even a fully prompt-injected agent, calling every tool in every way, cannot extract a raw key. No tool returns a plaintext secret; reveal paths require a TTY that this server does not have, so
alicerefuses them.
Unlike a naive "secrets MCP" that hands the key to the model, here the agent gets
placeholders and outcomes — the plaintext stays behind the anb-mcp → alice → Bob
boundary.
How it works
Agent (untrusted) ──MCP/stdio──► anb-mcp ──exec──► alice ──mTLS──► Bob ──► master key
(this repo) (AnB client) (AnB KMS daemon)
anb-mcp runs as a dedicated, narrowly-scoped AnB identity (not your operator
CLI identity), so a compromised agent's blast radius is limited to what Bob authorizes
for that identity.
Tools
| Tool | Does | Returns |
|---|---|---|
anb_list |
List secret keys this identity may reference | names + metadata, no values |
anb_exec |
Run an operator-allowlisted command with secrets injected into the child's env | exit code + redacted stdout/stderr |
anb_status |
Health / authz self-check | Bob reachability, identity, authorized prefixes, rule count |
anb_redact |
Scrub text — secret values + high-entropy tokens → <agent-vault:key> |
redacted text |
anb_render_to_file |
Render a placeholder template, write a 0600 file under the render dir | the path, never the content |
Never exposed: any reveal / get-plaintext / shell tool.
Prerequisites
This is a thin front-end; it depends on AnB. For v0.1 you need:
- A working
alice+bob(AnB) on the host. - A dedicated MCP identity enrolled with Bob, scoped to only the key prefixes the
agent should use. Point the server at it via
ANB_MCP_ALICE_DIR(default~/.anb/alice-mcp). Do not reuse your operator identity. - Exec allowlist with scope tags —
alice's exec rules carry a 4thscopecolumn; only rules taggedmcpapply to this surface (default-deny). Tag a rule for the agent by appendingmcp(e.g.^/opt/.../curl ...$\tOPENAI_KEY\t# call\tmcp). (Requires AnB withalice exec --surface,alice redact, andalice status --json— all shipped.)
Build
go mod tidy
go build -o anb-mcp .
Register with Claude Code
claude mcp add -s user -e ANB_MCP_ALICE_DIR=$HOME/.anb/alice-mcp \
anb -- /path/to/anb-mcp
Or in ~/.claude.json under mcpServers:
{
"mcpServers": {
"anb": {
"command": "/path/to/anb-mcp",
"env": { "ANB_MCP_ALICE_DIR": "/Users/you/.anb/alice-mcp" }
}
}
}
Tools surface as mcp__anb__anb_list, mcp__anb__anb_exec, mcp__anb__anb_status.
Status
v0.1 — done, verified end-to-end (and by a real agent). All three tools work
against a live Bob: anb_status returns real KMS state; anb_exec runs allowlisted
commands and denies the rest; and a secret injected via --env <agent-vault:key> is
used by the child process while the caller receives only the redacted placeholder —
the plaintext never reaches the agent. Confirmed both by go-sdk-client invariant
tests (test/) and by an independent Claude Code session calling the tools over MCP.
See CHANGELOG.md.
Roadmap: see PLAN.md. (v0.2 adds anb_render_to_file + a dedicated
anb_redact tool; v0.3 refactors to a direct, per-agent scoped Bob client for
ephemeral scoped credentials.)
License
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。