Skip to content
VS Code

1password for VS Code

io.github.cakerepository/1password

MCP server for 1Password service accounts — tools and resources for vaults and credentials

client:VS Code transport:stdio runtime:npm

Install 1password in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "op-service-account-token",
      "description": "OP_SERVICE_ACCOUNT_TOKEN",
      "password": true
    },
    {
      "type": "promptString",
      "id": "op-keychain-service",
      "description": "OP_KEYCHAIN_SERVICE",
      "password": true
    },
    {
      "type": "promptString",
      "id": "op-keychain-account",
      "description": "OP_KEYCHAIN_ACCOUNT",
      "password": true
    }
  ],
  "servers": {
    "1password": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@takescake/1password-mcp"
      ],
      "env": {
        "OP_SERVICE_ACCOUNT_TOKEN": "${input:op-service-account-token}",
        "OP_KEYCHAIN_SERVICE": "${input:op-keychain-service}",
        "OP_KEYCHAIN_ACCOUNT": "${input:op-keychain-account}"
      }
    }
  }
}

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

1password in other clients