1Password MCP Server
The 1Password MCP Server connects AI clients to 1Password vaults via a Service Account, enabling programmatic management of secrets and credentials.
Vault Management
List vaults – Retrieve all accessible vaults with their IDs, names, descriptions, and types.
Item Management
Search – Look up items by title substring (case-insensitive) with an optional result limit.
List – Browse all items in a vault (ID, title, category, tags, updated date).
Get – Retrieve full item details; secret values are concealed unless explicitly revealed.
Edit – Update an item's title, notes, tags, URL, and fields (upsert or remove).
Delete – Permanently and irreversibly remove an item from a vault.
Archive – Move an item to the archive instead of permanently deleting it.
Create secure note – Create a Secure Note with optional tags and custom fields.
Password & Credential Operations
Create – Store a new password/login item with optional username, URL, tags, notes, and category.
Read – Retrieve a secret via an
op://vault/item/fieldreference or vault/item ID.Update/rotate – Update an existing password or concealed field; creates the field if it doesn't exist.
Generate random password – Cryptographically secure password with configurable length (8–128 chars) and character types.
Generate passphrase – Human-friendly passphrase with configurable word count, separator, capitalization, and optional suffixes.
Guided Workflows (Prompts)
generate-secure-password– Guided flow to generate and store a secure password.credential-rotation– Step-by-step workflow: read → generate → update → verify.vault-audit– List and categorize vault contents, flagging potential concerns.secret-reference-helper– Interactively constructop://vault/item/fieldreferences.
Browsable Resources
1password://config– View current server configuration.1password://vaults– Browse all accessible vaults.1password://vaults/{vaultId}/items– Browse items within a specific vault.
Connects AI clients to 1Password vaults for secure credential management, enabling tools to list vaults, search, create, read, update, delete items, and generate passwords, with prompts for password generation, credential rotation, and vault auditing.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@1Password MCP Serverlist my vaults"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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 |
A developer / SRE | Full item CRUD, secure notes, password generation, vault allow-lists, Keychain token loading on macOS, and CI-friendly env config. |
Related MCP server: mcp-1password
Why teams pick this server
Security-first defaults —
password_readanditem_getreturn metadata unless you opt in withreveal: true.op_run(the MCP equivalent ofop run) — injectop://vault/item/fieldinto a local command’s environment; plaintext is redacted from stdout/stderr and never logged back to the model.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
1password://…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
Tools (15)
Grouped the way agents and humans actually use them.
Discover
Tool | What it does |
| List vaults the service account can access (id, name, description, type). |
| Search a vault by title substring; optional |
| List every item in a vault (id, title, category, tags, |
Read (safe by default)
Tool | What it does |
| Full item: title, category, tags, notes, fields. Concealed values stay hidden unless |
| Read one field (default |
| Validate |
Create & update
Tool | What it does |
| Create a Login or Password item (username, URL, tags, notes). |
| Create a Secure Note with optional tags and custom fields. |
| Rotate a password / concealed field (creates the field if missing). |
| Update title, notes (empty string clears), tags, URL; upsert or remove fields. Unreferenced fields stay untouched. |
| Cryptographically secure random password (length 8–128; symbols/numbers/uppercase toggles). |
| Memorable passphrase from a ~500-word list (word count, separator, number/symbol suffixes). |
Use secrets without revealing them
Tool | What it does |
| Run a local command ( |
Soft-delete & destroy
Tool | What it does |
| Move an item to the archive (hidden from normal views). |
| Permanently delete an item — cannot be undone. |
Prompts (4)
Prompt | When to use it |
| Generate (random or memorable) and optionally store — without dumping the password into chat. |
| Find → verify access → generate → update → confirm |
| Inventory a vault by category; flag duplicates / oddities — never reveal secrets. |
| Build a paste-ready |
Resources (3)
URI | Contents |
| Non-secret server config (name, version, log level, token source, Node version). |
| JSON list of accessible vaults. |
| JSON item metadata for one vault (no secret values). |
Before you start
You need two things:
Node.js 20 or newer
A 1Password Service Account with access to the vault(s) you want the AI to use
Create a service account (plain English)
Sign in to your 1Password account on the web.
Open Developer → Service Accounts (or follow 1Password’s guide).
Create a service account and grant it only the vaults you want automation to touch (for example an
AutomationorCIvault — not your personal banking vault).Copy the token once. Treat it like a master key.
Quick start
Claude Desktop / Cursor / VS Code / most IDEs
Add this to your MCP config (exact file depends on the app):
{
"mcpServers": {
"1password": {
"command": "npx",
"args": ["-y", "@takescake/1password-mcp"],
"env": {
"OP_SERVICE_ACCOUNT_TOKEN": "YOUR_SERVICE_ACCOUNT_TOKEN"
}
}
}
}Restart the app, then try: “List my 1Password vaults.”
macOS Keychain (no token in the config file)
Store the token in Keychain, then point the server at it:
{
"mcpServers": {
"1password": {
"command": "npx",
"args": ["-y", "@takescake/1password-mcp"],
"env": {
"OP_KEYCHAIN_SERVICE": "op-service-account-claude-automation",
"OP_KEYCHAIN_ACCOUNT": "your-macos-username"
}
}
}
}Token resolution order: CLI (--service-account-token / --token) → OP_SERVICE_ACCOUNT_TOKEN → macOS Keychain. OP_KEYCHAIN_ACCOUNT is optional when the service name alone is unique.
OpenAI Codex (TOML)
Option A — token in config:
[mcp_servers."1password"]
command = "npx"
args = ["-y", "@takescake/1password-mcp"]
[mcp_servers."1password".env]
OP_SERVICE_ACCOUNT_TOKEN = "YOUR_SERVICE_ACCOUNT_TOKEN"Option B (recommended) — config only names the env var:
[mcp_servers."1password"]
command = "npx"
args = ["-y", "@takescake/1password-mcp"]
env_vars = ["OP_SERVICE_ACCOUNT_TOKEN"]Set OP_SERVICE_ACCOUNT_TOKEN in your shell or CI. Note: codex mcp add ... --env OP_SERVICE_ACCOUNT_TOKEN=... writes the secret into Codex config; prefer env_vars when you can.
On macOS you can omit the token env and use OP_KEYCHAIN_SERVICE (+ optional OP_KEYCHAIN_ACCOUNT) instead.
Optional: lock op_run / op_check_ref to certain vaults
By default those tools may resolve op:// references from any vault the service account can see. To allow-list vaults:
{
"env": {
"OP_SERVICE_ACCOUNT_TOKEN": "YOUR_SERVICE_ACCOUNT_TOKEN",
"OP_MCP_ALLOWED_VAULTS": "Automation, CI"
}
}Names or IDs work. References outside the list are rejected before resolution. Same setting via --allowed-vaults.
For agents: how to handle secrets
Follow this order every time:
Discover with
vault_list→item_lookup/item_list(metadata only).Confirm a reference with
op_check_ref— neverrevealjust to see if a path exists.Use a secret in a command or API call with
op_runandop://vault/item/fieldinenv.Reveal with
password_read/item_get+reveal: trueonly when the human explicitly needs the value in chat.Rotate with
password_generate→password_update(keepreturnSecret: falseunless asked).Prefer
item_archiveoveritem_deleteunless permanent removal is required.
op_run sketch
{
"argv": ["curl", "-sS", "https://api.example.com/health"],
"env": {
"API_TOKEN": "op://Automation/Example API/credential"
},
"timeout_ms": 60000
}Prefer argv over a shell command string when you can — fewer quoting surprises.
Configuration reference
Environment variables
Variable | Required | Description |
| Usually yes | Service account token. Not required on macOS if Keychain vars are set. |
| No | macOS: Keychain service name for the token. |
| No | macOS: optional account to narrow the Keychain lookup. |
| No | Comma-separated vault names/IDs allowed for |
| No | Name reported to the 1Password SDK (default: |
| No | Version reported to the SDK (default: package version). |
| No |
|
| No | If set, forces debug logging. |
CLI flags
--service-account-token <token> 1Password service account token
--token <token> Alias for --service-account-token
--log-level <level> error | warn | info | debug (default: info)
--integration-name <name> Custom integration name for the 1Password SDK
--integration-version <version> Custom integration version
--allowed-vaults <list> Comma-separated allow-list for op_run / op_check_refSecurity & privacy
Read this before pointing the server at a vault you care about.
LLM privacy — Anything revealed to the model may be sent to your AI provider and retained under their policies.
MCP is not end-to-end encrypted for secrets in flight — Values are plaintext inside the MCP workflow and toward the model. They are encrypted at rest in 1Password once stored.
Best fit — Automation credentials: CI tokens, bot accounts, disposable env secrets.
Avoid — Banking, primary personal logins, recovery codes, or anything you cannot afford to expose to a model provider.
Token = master key — Scope the service account tightly; rotate immediately if leaked; never commit tokens or MCP configs with secrets.
Prefer references —
op://…+op_runbeat pasting passwords into prompts or files.Least privilege — Dedicated automation vaults beat sharing your whole account.
Protocol & compatibility
Piece | Detail |
Package |
|
Runtime | Node.js ≥ 20 |
Transport | stdio |
MCP SDK |
|
Protocol | Negotiates 2026-07-28; keeps legacy client compatibility |
Registry name |
|
Development
git clone https://github.com/CakeRepository/1Password-MCP.git
cd 1Password-MCP
npm ci
npm run build
npm test
npm run lintWatch mode: npm run dev.
Project layout
src/
index.ts # Entrypoint — MCP stdio + protocol negotiation
config.ts # CLI / env / Keychain / allow-list
client.ts # 1Password SDK client
logger.ts # Structured logs on stderr (stdout is protocol)
secret-ref.ts # op:// parsing & allow-list checks
utils.ts # Result helpers, password generation
tools/ # All 15 MCP tools
prompts/ # Interactive workflow prompts
resources/ # 1password:// resources
tests/See CONTRIBUTING.md. Maintainers / agents: AGENTS.md.
Changelog
See CHANGELOG.md for version history, including the 4.0.0 MCP v2 / 2026-07-28 migration and the 3.0.0 op_run / reveal-opt-in security changes.
License
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityFmaintenanceAn MCP server that provides secure access to 1Password secrets and item management through the 1Password CLI. It enables MCP clients like Claude and Cursor to read, create, edit, and delete password vault items with biometric authentication handled by the 1Password desktop app.Last updatedMIT
- AlicenseCqualityBmaintenanceAn MCP server that integrates 1Password with AI agents, providing secure access to vaults and items with secrets redacted by default.Last updated16201MIT

Kova Mind MCP Serverofficial
AlicenseAqualityDmaintenanceEnables AI memory persistence and secure credential management via vault tools for MCP-compatible clients like Claude Desktop, Cursor, and VS Code.Last updated1231MIT- FlicenseBqualityDmaintenanceEnables secure retrieval of credentials from 1Password vaults for use by AI agents, supporting integration with browser automation for automated login.Last updated1
Related MCP Connectors
MCP server for Argo RPG Platform — connects AI assistants to campaign data via OAuth2
Self-hosted MCP gateway: turn any API, database or MCP server into AI connectors — no code.
User-owned memory for AI agents, Copilot, Claude, IDEs, CLIs, and chat apps over remote MCP.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/CakeRepository/1Password-MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server