Onepassword

com.pulsemcp由 pulsemcp.com 發布v0.5.4更新於 Nov 10, 2026

MCP server for interacting with 1Password via the CLI to read and manage credentials.

已驗證STDIO僅桌面檔案與儲存安全與監控

概覽

AI 產生的概覽

讓助理透過 1Password CLI 瀏覽 1Password 保險庫與項目、建立或分享憑證,並在顯示機密前請求使用者核准。

可以做什麼
  • 列出保險庫、列出保險庫中的項目、依標籤尋找項目
  • 讀取項目中繼資料(標題、欄位、標籤),不揭露機密值
  • 經使用者核准後顯示項目的完整憑證
  • 建立登入項目、安全記事與 API 憑證項目
  • 為既有項目產生分享連結
適用情境
適合助理在任務中查詢憑證或保險庫結構,或建立、分享新的 1Password 項目,同時為讀取機密保留人工核准步驟。
執行需求
透過 npx 在本機執行(需要 Node.js)。必須安裝 1Password CLI(op)並加入 PATH,且需在 OP_SERVICE_ACCOUNT_TOKEN 中提供服務帳戶權杖。除非明確選擇略過,啟動時可能需要 HTTP 備援端點網址以進行核准流程。
安裝前請注意
OP_SERVICE_ACCOUNT_TOKEN 中的權杖可存取該服務帳戶的保險庫。DANGEROUSLY_SKIP_ELICITATIONS 會略過所有核准提示並揭露全部機密;OP_WHITELISTED_ITEMS 中的項目會被自動核准。寫入操作預設不提示,分享連結會授予項目存取權。建立操作的口令以命令列參數傳遞,可能短暫出現在行程清單中。建議僅啟用 readonly 工具群組。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Onepassword,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

1Password MCP Server

MCP server for interacting with 1Password via the CLI. Enables AI assistants to securely access and manage credentials stored in 1Password vaults.

Highlights

  • Elicitation-based approval - Users are prompted for confirmation before credentials are revealed or items are created
  • Configurable per-action - Enable/disable elicitation independently for read and write operations
  • Item whitelisting - Pre-approve specific items to bypass elicitation prompts
  • Secure credential access via 1Password CLI
  • Service account authentication for automation
  • Read and write operations for vaults and items
  • Tool grouping for permission-based access control

Prerequisites

  1. 1Password CLI (op) - Must be installed and available in PATH

  2. 1Password Service Account - Required for authentication

Capabilities

Tools

ToolGroupDescription
onepassword_list_vaultsreadonlyList all accessible vaults
onepassword_list_itemsreadonlyList items in a specific vault
onepassword_get_itemreadonlyGet item details (credentials require approval to reveal)
onepassword_get_item_metadatareadonlyGet item metadata (titles, fields, vault, tags) without secret values — no approval prompt
onepassword_list_items_by_tagreadonlyFind items by tag
onepassword_create_loginwriteCreate a new login credential (requires approval)
onepassword_create_secure_notewriteCreate a new secure note (requires approval)
onepassword_share_itemwriteMint a share URL for an existing item (requires approval)
onepassword_create_api_credentialwriteCreate a new API Credential item (requires approval)

Resources

ResourceDescription
onepassword://configServer configuration and status (for debugging)

Tool Groups

Control which tools are available via the ENABLED_TOOLGROUPS environment variable:

GroupDescription
readonlyRead-only operations (list, get)
writeWrite operations (create)

Examples:

  • ENABLED_TOOLGROUPS="readonly" - Only read operations (safer for most use cases)
  • ENABLED_TOOLGROUPS="readonly,write" - Full access
  • Not set - All tools enabled (default)

Quick Start

Installation

npx onepassword-mcp-server

Configuration

Set the required environment variable:

export OP_SERVICE_ACCOUNT_TOKEN="your-service-account-token"

Claude Desktop Configuration

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "onepassword": {
      "command": "npx",
      "args": ["-y", "onepassword-mcp-server"],
      "env": {
        "OP_SERVICE_ACCOUNT_TOKEN": "your-service-account-token",
        "ENABLED_TOOLGROUPS": "readonly"
      }
    }
  }
}

Restart Claude Desktop and you should be ready to go!

Environment Variables

VariableRequiredDescriptionDefault
OP_SERVICE_ACCOUNT_TOKENYes1Password service account token-
ENABLED_TOOLGROUPSNoComma-separated tool groupsAll enabled
SKIP_HEALTH_CHECKSNoSkip credential validation on startfalse
DANGEROUSLY_SKIP_ELICITATIONSNoSet to true to bypass ALL confirmation prompts (exposes all secrets)not set (elicitation required)
OP_ELICITATION_READNoPrompt before revealing credentialstrue
OP_ELICITATION_WRITENoPrompt before creating/sharing itemsfalse
OP_WHITELISTED_ITEMSNoComma-separated item titles or IDs that bypass read elicitationnone

Security Considerations

  • Startup safety check: The server refuses to start unless elicitation is configured (HTTP fallback URLs) or explicitly opted out via DANGEROUSLY_SKIP_ELICITATIONS=true. This prevents accidental carte blanche access to all secrets.
  • Elicitation-based approval (reads): By default, get_item prompts the user for confirmation before revealing sensitive credentials. Reads expose existing secrets, so the prompt is on by default.
  • No elicitation on writes by default: Write operations (create_login, create_secure_note, create_api_credential, share_item) do NOT prompt by default. Writes only create new items or mint share URLs for existing ones — they cannot overwrite or delete existing data via these tools — so the friction of a prompt isn't justified. Set OP_ELICITATION_WRITE=true to opt in to write confirmations.
  • Service Account Token: Passed via environment variable, never logged
  • CLI Arguments: Passwords for create operations are passed as CLI arguments (briefly visible in process list)
  • Recommendation: Use readonly tool group unless write access is specifically needed

How Credential Approval Works

  1. By default, onepassword_get_item returns item metadata but shows [REDACTED] for sensitive fields
  2. The server prompts the user to approve credential access via elicitation
  3. Once approved, the full credentials are returned for that request
  4. Whitelisted items (via OP_WHITELISTED_ITEMS, matched by title or item ID) bypass the approval prompt entirely

Checking Existence Without Approval

onepassword_get_item_metadata is a metadata-only sibling of onepassword_get_item. It returns the same item shape (title, category, vault, tags, field labels, types, URLs, dates, plus non-sensitive field values) but strips the values of sensitive fields entirely — no [REDACTED] placeholder, no leak — and never triggers an approval prompt. Reach for it when you only need to answer "does an item with title X exist in vault Y?" or "which fields does this item have?". Call onepassword_get_item only when you actually need to read a credential value.

Configuration Examples

Disable all confirmations (fully automated workflows):

DANGEROUSLY_SKIP_ELICITATIONS=true

Only confirm writes, auto-approve reads (requires HTTP fallback URLs for startup — DANGEROUSLY_SKIP_ELICITATIONS=true overrides per-action settings):

ELICITATION_REQUEST_URL="https://your-endpoint/request"
ELICITATION_POLL_URL="https://your-endpoint/poll"
OP_ELICITATION_READ=false
OP_ELICITATION_WRITE=true

Default behavior (prompt on reads, silent writes — recommended for most agent use cases):

ELICITATION_REQUEST_URL="https://your-endpoint/request"
ELICITATION_POLL_URL="https://your-endpoint/poll"
# OP_ELICITATION_READ defaults to true
# OP_ELICITATION_WRITE defaults to false

Whitelist specific items by title or ID (always auto-approve these):

OP_WHITELISTED_ITEMS="Stripe Key,AWS Credentials,abc123def456"

Development

Project Structure

onepassword-mcp-server/
├── local/                 # Local server implementation
│   └── src/
│       ├── index.ts      # Main entry point
│       └── index.integration-with-mock.ts
├── shared/               # Shared business logic
│   └── src/
│       ├── server.ts     # Server factory
│       ├── tools.ts      # Tool registration
│       ├── tools/        # Individual tools
│       ├── onepassword-client/  # CLI wrapper
│       └── types.ts      # TypeScript types
├── tests/                # Test suite
│   ├── functional/       # Unit tests
│   ├── integration/      # MCP protocol tests
│   └── manual/          # Real CLI tests
└── package.json

Running Locally

# Install dependencies
npm run install-all

# Build
npm run build

# Run tests
npm test

# Run integration tests
npm run test:integration

License

MIT

來源:experimental/onepassword/README.md,提交 0ed34de

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.5.4最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分