Skip to content
MCP server

Onepassword

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

Runs locallyStatus and history
Install
Pricing
Open source
Runs
Locally
Version
0.5.4
Listing updated
5 days ago

About Onepassword

Onepassword is an open-source MCP server. It runs locally on your machine and is started by your AI client.

Install

Run in a terminal

claude mcp add onepassword --env OP_SERVICE_ACCOUNT_TOKEN='<OP_SERVICE_ACCOUNT_TOKEN>' -- npx -y onepassword-mcp-server

Add to claude_desktop_config.json

{
  "mcpServers": {
    "onepassword": {
      "command": "npx",
      "args": [
        "-y",
        "onepassword-mcp-server"
      ],
      "env": {
        "OP_SERVICE_ACCOUNT_TOKEN": "<OP_SERVICE_ACCOUNT_TOKEN>"
      }
    }
  }
}

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "onepassword": {
      "command": "npx",
      "args": [
        "-y",
        "onepassword-mcp-server"
      ],
      "env": {
        "OP_SERVICE_ACCOUNT_TOKEN": "<OP_SERVICE_ACCOUNT_TOKEN>"
      }
    }
  }
}

Add to .vscode/mcp.json

{
  "servers": {
    "onepassword": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "onepassword-mcp-server"
      ],
      "env": {
        "OP_SERVICE_ACCOUNT_TOKEN": "<OP_SERVICE_ACCOUNT_TOKEN>"
      }
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "onepassword": {
      "command": "npx",
      "args": [
        "-y",
        "onepassword-mcp-server"
      ],
      "env": {
        "OP_SERVICE_ACCOUNT_TOKEN": "<OP_SERVICE_ACCOUNT_TOKEN>"
      }
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "onepassword": {
      "command": "npx",
      "args": [
        "-y",
        "onepassword-mcp-server"
      ],
      "env": {
        "OP_SERVICE_ACCOUNT_TOKEN": "<OP_SERVICE_ACCOUNT_TOKEN>"
      }
    }
  }
}

Using several servers? Build one config file with the MCP config generator.

Configuration

  • OP_SERVICE_ACCOUNT_TOKENService account token for authentication with 1Password CLI.Required
  • ENABLED_TOOLGROUPSComma-separated tool groups to enable (readonly, write).
  • SKIP_HEALTH_CHECKSSkip credential validation on server startup.
  • DANGEROUSLY_SKIP_ELICITATIONSBypass all credential approval prompts (exposes all secrets).
  • OP_ELICITATION_READPrompt for approval before revealing credentials.
  • OP_ELICITATION_WRITEPrompt for approval before creating or sharing items.
  • OP_WHITELISTED_ITEMSComma-separated item titles or IDs that bypass read elicitation.

Pricing

Open source

Onepassword FAQ

Is Onepassword free?

Yes. Onepassword is open source, so you can use and self-host it for free.

How do I add Onepassword to Claude Code?

Run this command in your terminal: claude mcp add onepassword --env OP_SERVICE_ACCOUNT_TOKEN='<OP_SERVICE_ACCOUNT_TOKEN>' -- npx -y onepassword-mcp-server

Where this comes from

  • Description: from the official MCP Registry entry.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers