
1Password 用于存储密码的MCP服务器,请创建单独的保险库
概览
@takescake/1password-mcp 是一个社区模型上下文协议(MCP)服务器。它允许 Claude、Cursor、VS Code Copilot、OpenAI Codex、Gemini 及其他 MCP 客户端通过 1Password 服务账户管理保险库和凭证。 基于协议协商,适用于(以及遗留客户端)。秘密保留在1Password中;代理更倾向于 op:// 引用和op_run,这样明文就不必出现在模型的转录中。 - — password_read返回元数据,item_get隐藏携带秘密的字段(密码、SSH密钥、OTP种子、卡号),除非你选择使用reveal: true。- — 将 op://vault/item/field 注入本地命令环境;已解析的秘密会以尽力而为的方式从返回的stdout/stderr中进行涂黑(包括常见编码)。- — 列表、搜索、获取、编辑、创建登录和备注、轮换密码、归档或删除。- — 密码生成、凭证轮换、保险库审计和秘密引用辅助工具。- — 通过 onepassword://...
概述(AI 翻译)
给你的AI助手一扇锁着的1Password门——而不是聊天里堆一堆密码。
@takescake/1password-mcp 是一个社区模型上下文协议(MCP)服务器。它允许 Claude、Cursor、VS Code Copilot、OpenAI Codex、Gemini 及其他 MCP 客户端通过 1Password 服务账户管理保险库和凭证。
基于 MCP TypeScript SDK v2 构建,支持协议协商支持 2026-07-28(及遗留客户端)。秘密保留在 1Password;代理更倾向于 op:// 引用和 op_run,这样明文就不必出现在模型文字记录中。
非官方1Password产品。 社区构建,Apache 2.0授权。
这是给谁的
| 你是… | 你得到了… |
|---|---|
| 技术不深一次性设置:创建一个服务账户,将令牌粘贴到你的AI应用的MCP设置中,然后用通俗易懂的语言请求(“列出我的自动化保险库”、“旋转预留数据库密码”)。 | |
| ** 一个智能体 / LLM** | 十五个类型工具,四个工作流程提示,三个可浏览资源,以及明确的规则:** 更倾向于 op_run + op:// 而非揭示秘密**。 |
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
1Password MCP Server
Give your AI assistant a locked door to 1Password — not a pile of passwords in the chat.
@takescake/1password-mcp is a community Model Context Protocol (MCP) server. It lets Claude, Cursor, VS Code Copilot, OpenAI Codex, Gemini, and other MCP clients manage vaults and credentials through a 1Password Service Account.
Built on the MCP TypeScript SDK v2 with protocol negotiation for 2026-07-28 (and legacy clients). Secrets stay in 1Password; agents prefer op:// references and op_run so plaintext never has to land in the model transcript.
Not an official 1Password product. Community-built, Apache 2.0 licensed.
Who this is for
| You are… | You get… |
|---|---|
| Not deeply technical | A one-time setup: create a service account, paste the token into your AI app’s MCP settings, then ask in plain English (“list my automation vault”, “rotate the staging DB password”). |
| An agent / LLM | Fifteen typed tools, four workflow prompts, three browsable resources, and clear rules: prefer op_run + op:// over revealing secrets. |
| A developer / SRE | Full item CRUD, secure notes, password generation, vault allow-lists, Keychain token loading on macOS, and CI-friendly env config. |
Why teams pick this server
- Security-first defaults —
password_readreturns metadata, anditem_gethides secret-bearing fields (passwords, SSH keys, OTP seeds, card numbers), unless you opt in withreveal: true. op_run(the MCP equivalent ofop run) — injectop://vault/item/fieldinto a local command’s environment; resolved secrets are redacted from the returned stdout/stderr on a best-effort basis (including common encodings).- Full vault toolkit — list, search, get, edit, create logins & notes, rotate passwords, archive, or delete.
- Guided prompts — password generation, credential rotation, vault audit, and secret-reference helpers.
- Browsable resources — vault and item catalogs over
onepassword://…URIs (no secrets in resource payloads). - Modern MCP — stdio transport, Zod 4 schemas, MCP 2026-07-28 negotiation with legacy client compatibility.
What you get
安装
npx -y @takescake/1password-mcp配置
{
"mcpServers": {
"1password": {
"command": "npx",
"args": ["-y", "@takescake/1password-mcp"],
"env": {
"OP_SERVICE_ACCOUNT_TOKEN": "YOUR_SERVICE_ACCOUNT_TOKEN"
}
}
}
}