1password-mcp

v0.1.11
@rui.branco/1password-mcp Checked 4 days ago Published 1 month ago

1Password MCP server for any MCP-compatible AI client (Claude Code, Codex, Antigravity, Cursor, etc.) - list vaults and items, get secrets, generate passwords…

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

op_list_instances

List configured 1Password instances (service accounts or desktop). Tokens are never returned.

op_add_instance

Add or update a 1Password instance. Two auth modes: (1) 'serviceAccount' — provide token (ops_...). (2) 'desktop' — provide accountName (e.g. 'my.1password.com'); auth is delegated to the installed 1Password 8 desktop app via biometric unlock. Config is stored at ~/.config/1password-mcp/config.json with 0600 permissions.

ParameterTypeDescription
name *stringUnique name (e.g., 'work', 'personal').
accountNamestring1Password account (e.g. 'my.1password.com' or shorthand) — required for authType=desktop. Uses the logged-in 1Password 8 app.
authTypestring'serviceAccount' (default) or 'desktop'.
descriptionstringOptional human-readable description.
setDefaultbooleanSet this instance as the default (default: false).
tokenstringService account token (ops_...) — required for authType=serviceAccount.

op_remove_instance

Remove a 1Password instance by name. Cannot remove the last one.

ParameterTypeDescription
name *stringInstance name to remove.

op_list_vaults

List all vaults visible to the given instance's 1Password account.

ParameterTypeDescription
instancestringInstance name. Uses default if omitted.

op_list_items

List items in a vault. `vault` accepts a vault id or title (case-insensitive exact, then prefix).

ParameterTypeDescription
vault *stringVault id or title.
instancestringInstance name. Uses default if omitted.

op_search_items

Search items by title across vaults. When the user asks for a specific credential by name (e.g. 'give me the wifi password', 'what's my GitHub login'), call this with `reveal: true` to get the password/credential values back in a single call — no follow-up op_get_item needed. If `vault` is omitted, searches every vault the account can see. When there are 1–5 matches with reveal=true, return all of them; the user already consented to seeing concealed values by asking for them.

ParameterTypeDescription
query *stringCase-insensitive substring of the item title.
instancestringInstance name. Uses default if omitted.
limitnumberMax results (default 25, or 5 when reveal=true to avoid fetching too many items).
revealbooleanIf true, fetch each match's full item and return concealed field values (passwords, TOTPs) in cleartext. Use this when the user is asking for a credential by name — one call gets search + retrieval…
vaultstringOptional vault id or title to scope the search.

op_get_item

Fetch a full item with all fields. By default concealed fields (passwords, TOTP) are redacted; set includeConcealed=true to return them in cleartext. `item` and `vault` accept ids or titles.

ParameterTypeDescription
item *stringItem id or title.
vault *stringVault id or title.
includeConcealedbooleanReturn concealed values in cleartext (default: false).
instancestringInstance name. Uses default if omitted.

op_get_secret

Resolve a 1Password secret reference (op://vault/item/field) and return the value.

ParameterTypeDescription
reference *stringSecret reference like 'op://Private/GitHub/password'.
instancestringInstance name. Uses default if omitted.

op_generate_password

Generate a password using 1Password's generator (Random / Memorable / Pin). Does not talk to the account.

ParameterTypeDescription
capitalizebooleanMemorable only (default true).
includeDigitsbooleanRandom only (default true).
includeSymbolsbooleanRandom only (default true).
lengthnumberLength for Random/Pin (default 20/8).
typestring'Random' (default), 'Memorable', or 'Pin'.
wordCountnumberMemorable only (default 5).

op_create_item

Create a new item in a vault. Fields is an array of { title, type, value, sectionId? }. Type is Text | Concealed | Totp | Email | Url | Phone.

ParameterTypeDescription
title *stringItem title.
vault *stringVault id or title.
categorystringItem category (default: Login). One of: Login, SecureNote, Password, ApiCredentials, Database, Server, Email, Identity, CreditCard, etc.
fieldsarrayField definitions: [{ title, type, value, sectionId? }].
instancestringInstance name. Uses default if omitted.
notesstringOptional notes (stored as a Text field called 'notesPlain').
tagsarray
websitesarray

op_update_item

Update any part of an existing item — title, category, fields, tags, websites, sections, or notes. Omitted parameters are preserved. Fields are patched by title (existing fields match case-insensitively; new fields require `type`). Tags, websites, and sections are REPLACED when passed.

ParameterTypeDescription
item *stringItem id or title to update.
vault *stringVault id or title.
categorystringNew category (rare). One of Login, SecureNote, Password, ApiCredentials, Database, Server, Email, Identity, CreditCard, etc.
fieldsarrayField patches: [{title, value, type?, sectionId?}]. Existing fields matched by title have their values replaced. New fields require `type` (Text | Concealed | Totp | Email | Url | Phone).
instancestringInstance name. Uses default if omitted.
notesstringReplace the notesPlain field. Omit to preserve existing notes.
sectionsarrayReplace the section list. Each section is {title, id?}.
tagsarrayReplace the tag list. Omit to preserve existing tags; pass [] to clear.
titlestringNew title (optional).
websitesarrayReplace the website list. Each website is {url, label?, autofillBehavior?}. Omit to preserve existing websites.

op_update_vault

Update a vault's title and/or description. Pass at least one of them.

ParameterTypeDescription
vault *stringVault id or title.
descriptionstringNew description (optional).
instancestringInstance name. Uses default if omitted.
titlestringNew title (optional).

op_delete_item

Delete an item by vault + item reference.

ParameterTypeDescription
item *stringItem id or title.
vault *stringVault id or title.
instancestringInstance name. Uses default if omitted.

op_create_vault

Create a new vault.

ParameterTypeDescription
title *stringVault title.
descriptionstringOptional description.
instancestringInstance name. Uses default if omitted.

op_delete_vault

Delete a vault by id or title.

ParameterTypeDescription
vault *stringVault id or title.
instancestringInstance name. Uses default if omitted.