1Password Connect
Vaults and items of 1Password through a self-hosted 1Password Connect server: list vaults and items, read items with their secret values and attached files, create items with generated passwords, update them with JSON Patch, and read the server's request log. Delete is switched off at install.
7 天免费 · 无需信用卡 · EU 托管
问 1Password 任何事
通过 AnythingMCP 对 1Password Connect 试一个真实提示 — Claude 调用工具并返回答案。在你的消息上按 Enter 即可在 Cloud 安装。
在 Cloud 上安装 1PasswordClaude 是 AI,可能会出错。请核对回答。
2 分钟设置
- 1在 cloud.anythingmcp.com 开始免费试用。
- 2在连接器商店点击 1Password Connect。提示时粘贴凭据。
- 3生成 MCP API 密钥,将 AI 客户端指向生成的 MCP URL。
配置 1Password Connect
直接来自连接器定义:在哪里获取凭据、需要哪些权限,以及该适配器调用的是哪个 API。 由连接器作者以英文提供。
1Password Connect
This connector talks to a 1Password Connect server, the self-hosted REST API (<your Connect address>/v1) that 1Password runs in your own infrastructure for Secrets Automation. Through it the AI can list vaults and items, read items and their files, create items, change them with JSON Patch and read the server's request log. It only reaches the shared vaults the Connect token was granted, never Personal or Private vaults.
The AI sees secret values: onepassword_connect_get_item returns an item's passwords, API keys, TOTP seeds and other concealed fields in plain text, and onepassword_connect_get_file_content returns attached files; onepassword_connect_create_item and onepassword_connect_update_item answer with the full item as well. These values go to the AI model and the chat. The list tools (onepassword_connect_list_vaults, onepassword_connect_list_items, onepassword_connect_list_files) and onepassword_connect_get_vault, onepassword_connect_get_file return metadata only. Grant the token only the vaults the AI should see, and switch off onepassword_connect_get_item and onepassword_connect_get_file_content if the AI should work with names only. Never repeat a secret in an answer unless the user asked for it.
Setup (about 15 minutes, needs a deployed Connect server)
- On 1Password.com open Developer, Directory, select Other under Infrastructure Secrets Management and Create a Connect server (or run
op connect server create <name> --vaults <vault>). Save the1password-credentials.jsonand the first access token in 1Password. Connect only reaches shared vaults granted to it. - Deploy the server (the
connect-apiandconnect-synccontainers from https://github.com/1Password/connect, Docker Compose, Kubernetes or the Helm chart). By default it listens on port 8080. - Use the first token, or issue one for the AI: Developer, Connect servers, choose the server, New Token (or
op connect token create <name> --server <server> --vault <vault>). Grant only the vaults the AI should see; a token's vaults cannot be changed later, so revoke it and issue a new one instead. An expiry of 30, 90 or 180 days can be set. - Set
ONEPASSWORD_CONNECT_URLto the server's address as AnythingMCP reaches it, without/v1(e.g.https://op-connect.example.com), and paste the token intoONEPASSWORD_CONNECT_TOKEN. - Install;
onepassword_connect_list_vaultschecks the token. On AnythingMCP Cloud the Connect server needs a public HTTPS address. A self-hosted AnythingMCP can reach a server on a private network or IP only once that host is allowed throughSSRF_ALLOWED_HOSTS, because the outbound guard blocks private address space by default.
Workflow
- Find a secret:
onepassword_connect_list_vaults(filtername eq "Production"), thenonepassword_connect_list_items(filtertitle eq "Stripe API"ortag eq "prod"), thenonepassword_connect_get_itemonly if the value itself is needed.onepassword_connect_get_vaultshows one vault's details. - Files:
onepassword_connect_list_filesoronepassword_connect_get_filefor names and sizes,onepassword_connect_get_file_contentto download one. - Store a new secret:
onepassword_connect_create_itemwith a category, title and fields; setgenerate: trueand arecipeon a field to let 1Password create a random password. - Rotate or edit:
onepassword_connect_update_itemwith JSON Patch, e.g.[{"op": "replace", "path": "/fields/<field id>/value", "value": "..."}]. Read the field ids withonepassword_connect_get_itemfirst.{"op": "replace", "path": "/", "value": {...}}replaces the whole item. - Who used the server:
onepassword_connect_list_activity(READ, CREATE, UPDATE, DELETE with SUCCESS or DENY, per token and item).onepassword_connect_get_healthshows whether the server and its sync service are healthy. - Switched off at install:
onepassword_connect_delete_item; it cannot be undone, so an admin switches it on when the team needs it.
Reading the answers: vault and item ids are 26 lower-case letters and digits. A field has id, label, type (STRING, CONCEALED, EMAIL, URL, TOTP, DATE, MONTH_YEAR, MENU), purpose (USERNAME, PASSWORD, NOTES), value and section; password fields also carry entropy. Dates are ISO 8601. Lists return the whole collection in one answer; only onepassword_connect_list_activity pages with limit and offset and reports the total in the content-range header (1-50/1134).
Errors: 401 means a wrong or revoked token; 403 vault ... is not in scope means the token was not granted that vault, or may not write to it; 404 means the vault, item or file does not exist; 400 on a write names the invalid field or category; 413 means a file is too large to return. Connection errors usually mean ONEPASSWORD_CONNECT_URL is not reachable from AnythingMCP; onepassword_connect_get_health and the server logs tell more.