
Anthropic Admin Mcp
io.github.Trushtonfactory由 GitHub 账号 Trushtonfactory 发布v0.1.1更新于 Oct 24, 2026
Native MCP server for the Anthropic Admin API: org, workspaces, members, API keys, usage, costs.
概览
面向 Anthropic Admin API 的本地 MCP 服务器,让助手查看并管理组织的 workspace、成员、API 密钥、用量与成本。
- 可以做什么
- 读取组织信息、成员、邀请、workspace、workspace 成员和 API 密钥,可按状态或 workspace 筛选。获取按 workspace、API 密钥或模型分组的用量与成本报告,以及 Claude Code 用量。邀请成员、取消邀请、更改或移除成员角色,并移除非管理员成员。创建、重命名、改色或归档 workspace,授予、更改或撤销 workspace 访问权限。重命名或停用 API 密钥。所有写入工具都要求显式确认参数,并记录到 JSONL 审计日志。
- 适用场景
- 适合组织管理员在 MCP 客户端中查询 Anthropic 支出与 token 用量、审计 API 密钥和成员,或执行邀请、workspace 权限调整等日常组织操作,而无需打开 Console。
- 运行要求
- 以 Python 包形式本地运行(pip 安装),使用 stdio 传输。需要 ANTHROPIC_ADMIN_KEY 中的 Anthropic Admin API 密钥,且账号须为 Organization 套餐(Team、Pro+ 或 Enterprise)并具备管理员角色。可选 ALLOWED_WORKSPACES 限定写入工具范围,AUDIT_LOG_PATH 指定审计日志位置。提供只读模式开关。
安装
在 SourceWeft 中
- 打开 控制台中的 Anthropic Admin Mcp,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
anthropic-admin-mcp
The MCP server Anthropic hasn't shipped yet — full coverage of the Anthropic Admin API and the Usage & Cost API, properly typed, properly tooled, and properly safety-scoped.
Manage your Anthropic organization from any MCP-compatible client (Claude Desktop, Cursor, Windsurf, ChatGPT, etc.) using natural language:
- "What did my organization spend last week, grouped by workspace?"
- "Which API key burned through the most Opus tokens yesterday?"
- "Show me Pre-Mortem's usage day-by-day for the last 14 days."
- "Invite [email protected] as a developer to the Sandbox workspace."
- "Deactivate the API key named 'old-laptop'."
10 read tools, 10 write tools, audit logging, optional workspace scoping, read-only mode, role-escalation guard.
Why this exists
Anthropic ships an excellent Admin API with ~22 endpoints across organization management, workspaces, members, API keys, usage reporting, and cost reporting. Existing MCP wrappers from third parties cover a tiny slice of it through commercial integration platforms. This server is native, free, open-source, and complete — installable in two minutes against your own Admin key.
Install
Or for local development:
Configure
-
Get an Admin API key at console.anthropic.com → Settings → Admin Keys. Requires an Organization plan (Team / Pro+ / Enterprise) and the admin role. Individual accounts cannot create Admin keys.
-
Copy
.env.exampleto.envand fill in your key: -
Wire it into your MCP client. For Claude Desktop, add to
~/Library/Application Support/Claude/claude_desktop_config.json:See
examples/claude_desktop_config.jsonfor more options (read-only mode, workspace scoping).
Tools
Read (10)
Write (10) — all require confirm=True
Running
Safety
See SECURITY.md for the full threat model and design notes. The short version:
- Reads are open. Anything the Admin API exposes with your key, this server exposes.
- Writes are guarded. Every mutation requires
confirm=True, gets audit-logged to JSONL, and respects optional workspace scoping. - Role escalation is blocked client-side even though the API itself blocks it server-side — clearer error messages for Claude.
- No credential exfiltration paths. The Admin API never returns key values, and this server never logs the Admin key itself.
Status
v0.1.0 — read + write tool surface complete. Pagination, error messages, and audit logging tested manually. No usage limits implemented yet. Pydantic response models are minimal (tools return raw dicts).
Issues and PRs welcome.
License
MIT — see LICENSE.
来源:README.md,提交 dd826cb
工具
0版本历史
1- v0.1.1最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分