Source: https://keypaste.com/developers/mcp-setup/
Last updated: 2026-12-01

# Connect an AI tool

Your AI tools will start keypaste’s bridge, `keypaste mcp`, and ask your vault for one value at a time, which you approve.

## Prerequisites

- The `keypaste` command, from the desktop app or the [CLI install](https://keypaste.com/developers/install/).
- A vault chosen with `keypaste use`, or named with `--vault` below.
- One of the tools `setup` knows: Claude Code, Codex, Gemini CLI, Devin, VS Code, Cursor or Claude Desktop. For any other tool, see [keypaste setup](https://keypaste.com/developers/setup/#by-hand).

## 1\. Preview the changes

Terminal window

```
keypaste setup --dry-run
```

```
keypaste mcp   /home/you/.local/bin/keypastevault          /home/you/vault.kdbxcan see        ** (each agent sees what its settings allow: every environment's variables until you change them)run            offered; each agent runs nothing until you turn run on in its settings
  claude-code      claude mcp add --scope user --transport stdio keypaste -- /home/you/.local/bin/keypaste mcp …  codex            not installed on this machine  cursor           edit /home/you/.cursor/mcp.json: set mcpServers.keypaste {…}; keeps the original as /home/you/.cursor/mcp.json.keypaste-backup
```

Nothing changes. No master password or key file goes into a tool’s configuration.

## 2\. Connect

Terminal window

```
keypaste setup
```

```
Connect keypaste to these 2 tools? [y/N] y  claude-code      configured  cursor           configured; the original is kept as /home/you/.cursor/mcp.json.keypaste-backup; restart Cursor to load it
```

Restart any tool the output names. Running `setup` again is safe.

## 3\. Hold the vault unlocked

Unlock the vault in the desktop app, or run the approver in a terminal of its own:

Terminal window

```
keypaste approve
```

With nothing holding the vault, every request is refused with the command that fixes it.

## 4\. Check it

Terminal window

```
keypaste doctor
```

```
  ✓ vault            the chosen vault is a KeePass database  ✓ claude-code      starts keypaste 1.0.0 from a place upgrades keep  ✓ owner            keypaste approve holds the vault and answers
```

Each line that needs you ends with the command or step that fixes it.

## From the desktop app

In Agents, + (Connect an AI tool…) lists the tools found on this computer. Connect… beside one shows what it changes and, with more than one vault, asks which it can reach: All vaults, including vaults you add later, or Only these. Add it for me writes it. A connected tool has Repair… and Disconnect….

## To disconnect

Terminal window

```
keypaste setup --remove
```

Or Disconnect… in Agents. Neither erases what an agent already received; rotate a credential at its provider when that matters.

## Next steps

- [Give an AI agent its first key](https://keypaste.com/developers/start/)
- [Set what each agent gets](https://keypaste.com/developers/set-what-each-agent-gets/)
- [keypaste setup](https://keypaste.com/developers/setup/): every option, each tool, configuration by hand and troubleshooting
