cd /news/ai-agents/1password-mcp-server-give-your-codin… · home › topics › ai-agents › article
[ARTICLE · art-178007] src=calyban.com ↗ pub= topic=ai-agents verified=true sentiment=↑ positive

1Password MCP server: give your coding agent credentials without pasting them

A 2026-11-28 developer blog details how to run the 1Password MCP server (`onepassword-mcp-server`, from PulseMCP) so a coding agent can look up vault items through the `op` CLI using a service account token instead of pasting API keys into chat or a `.env` file. The setup requires installing the 1Password CLI, creating a service account scoped to a single vault, setting `OP_SERVICE_ACCOUNT_TOKEN`, and setting `ENABLED_TOOLGROUPS="readonly"`; revealing a credential triggers an approval prompt each time, and write access (creating logins, secure notes, API credentials and share links) stays off unless enabled. The blog argues the service account scope is "the real security boundary" and recommends keeping production credentials out of the agent's vault entirely, giving it staging keys and read-only database users instead.

recommendation

Give coding agents a 1Password service account limited to one vault with `ENABLED_TOOLGROUPS="readonly"`, and keep production keys out of that vault so any leaked staging key can be rotated in a minute.

more in playbook: Securing agents and AI tools
by read2 min views2 publishedNov 28, 2026
1Password MCP server: give your coding agent credentials without pasting them
Image: source

Dev blog · Guides · 2026-11-28

Short answer: the 1Password MCP server (onepassword-mcp-server, from PulseMCP) lets your agent look up items in a 1Password vault through the op CLI, using a service account token. Install the 1Password CLI, create a service account that can see only one vault, set OP_SERVICE_ACCOUNT_TOKEN, and set ENABLED_TOOLGROUPS="readonly". Revealing a credential asks for your approval each time.

The alternative most people use today is pasting API keys into chat or into a .env the agent reads freely. Both put the key in a transcript.

Or let Calyban install it: one click into every agent you pick, with the token written only into your own config files and kept when you update. Free, no account.

Before you start #

  1. Install the 1Password CLI and checkop --version works in a new terminal.
  2. Create a service account and give it access toone vault made for this, say “Agent”. Put only what the agent should be able to reach in it.

That second step is the real security boundary. The agent can never see more than the service account can.

Claude Code #

claude mcp add onepassword \
  -e OP_SERVICE_ACCOUNT_TOKEN="ops_..." \
  -e ENABLED_TOOLGROUPS="readonly" \
  -- npx -y onepassword-mcp-server

Codex #

[mcp_servers.onepassword]
command = "npx"
args = ["-y", "onepassword-mcp-server"]

[mcp_servers.onepassword.env]
OP_SERVICE_ACCOUNT_TOKEN = "ops_..."
ENABLED_TOOLGROUPS = "readonly"

What the agent can do #

With readonly, it can list vaults and items, find items by tag, read an item’s metadata (title, fields, tags) without the secret values, and get an item’s details, where revealing the credential pops an approval prompt first.

With readonly,write it can also create logins, secure notes and API credentials, and mint share links. Those ask for approval too. Leave write off unless you have a reason.

Some items you’ll use constantly, like a staging API key. The server lets you pre-approve specific items so those don’t prompt every time.

A habit worth more than any server #

Keep production credentials out of the agent’s vault entirely. Give it a staging key, a read-only database user, a test Stripe key. If something does leak through a transcript or a log, it’s a key you can rotate in a minute.

The Calyban way #

Open onepassword in Calyban and press Install. It asks for the service account token and writes it only into your agents’ own config files on your computer, never anywhere else. Updating the server later keeps the token. And when you Mirror a setup from one agent to another, Calyban deliberately skips items that hold secrets like this one, so a token never gets copied somewhere you didn’t put it yourself.

Calyban is free for Windows and Linux at /#download. Questions about keeping keys out of transcripts go to Discord.

── more in #ai-agents 4 stories · sorted by recency
── more on @1password 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/1password-mcp-server…] indexed:0 read:2min 2026-11-28 · —