MCP Server Setup
Overview
Section titled “Overview”PassBox provides an MCP (Model Context Protocol) server that lets AI agents securely access your secrets. The MCP server exposes 11 tools for reading, writing, and managing secrets — all with end-to-end encryption.
Prerequisites
Section titled “Prerequisites”- A PassBox account with at least one vault
- A service token (
pb_...)
Create a service token:
passbox token create --name "mcp-agent" --permissions read,write# Save the token: pb_abc123...Installation
Section titled “Installation”npm install -g @pabox/mcp-serverConfiguration
Section titled “Configuration”Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{ "mcpServers": { "passbox": { "command": "npx", "args": ["-y", "@pabox/mcp-server"], "env": { "PASSBOX_TOKEN": "pb_your_service_token", "PASSBOX_SERVER": "https://api.passbox.dev" } } }}Edit .cursor/mcp.json in your project root:
{ "mcpServers": { "passbox": { "command": "npx", "args": ["-y", "@pabox/mcp-server"], "env": { "PASSBOX_TOKEN": "pb_your_service_token" } } }}Edit ~/.codeium/windsurf/mcp_config.json:
{ "mcpServers": { "passbox": { "command": "npx", "args": ["-y", "@pabox/mcp-server"], "env": { "PASSBOX_TOKEN": "pb_your_service_token" } } }}If you have the PassBox CLI installed:
{ "mcpServers": { "passbox": { "command": "passbox", "args": ["serve"], "env": { "PASSBOX_TOKEN": "pb_your_service_token" } } }}Environment Variables
Section titled “Environment Variables”| Variable | Required | Default | Description |
|---|---|---|---|
PASSBOX_TOKEN | Yes | — | Service token (pb_...) |
PASSBOX_SERVER | No | https://api.passbox.dev | Server URL |
Verify Setup
Section titled “Verify Setup”After configuring, ask your AI agent:
“List my PassBox vaults”
The agent should call passbox_list_vaults and return your vault names.
Security Considerations
Section titled “Security Considerations”- Service tokens have scoped permissions (read/write/delete)
- The MCP server runs locally — secrets are decrypted on your machine
- The
passbox_proxy_requesttool has SSRF protection (blocks localhost, private IPs) - AI agents see decrypted values only when they call
passbox_get_secret - Use
passbox_proxy_requestfor credential brokering (secrets injected without AI seeing raw values)