Skip to content
VS Code

onepassword for VS Code

com.pulsemcp/onepassword

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

client:VS Code transport:stdio runtime:npm

Install onepassword in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "op-service-account-token",
      "description": "OP_SERVICE_ACCOUNT_TOKEN",
      "password": true
    },
    {
      "type": "promptString",
      "id": "enabled-toolgroups",
      "description": "ENABLED_TOOLGROUPS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "skip-health-checks",
      "description": "SKIP_HEALTH_CHECKS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "dangerously-skip-elicitations",
      "description": "DANGEROUSLY_SKIP_ELICITATIONS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "op-elicitation-read",
      "description": "OP_ELICITATION_READ",
      "password": true
    },
    {
      "type": "promptString",
      "id": "op-elicitation-write",
      "description": "OP_ELICITATION_WRITE",
      "password": true
    },
    {
      "type": "promptString",
      "id": "op-whitelisted-items",
      "description": "OP_WHITELISTED_ITEMS",
      "password": true
    }
  ],
  "servers": {
    "onepassword": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "onepassword-mcp-server"
      ],
      "env": {
        "OP_SERVICE_ACCOUNT_TOKEN": "${input:op-service-account-token}",
        "ENABLED_TOOLGROUPS": "${input:enabled-toolgroups}",
        "SKIP_HEALTH_CHECKS": "${input:skip-health-checks}",
        "DANGEROUSLY_SKIP_ELICITATIONS": "${input:dangerously-skip-elicitations}",
        "OP_ELICITATION_READ": "${input:op-elicitation-read}",
        "OP_ELICITATION_WRITE": "${input:op-elicitation-write}",
        "OP_WHITELISTED_ITEMS": "${input:op-whitelisted-items}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

onepassword in other clients