KeePassXC MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| KEEPASSXC_HOST | No | TCP host. Setting this enables TCP mode instead of Unix socket mode. | |
| KEEPASSXC_PORT | No | TCP port used when TCP mode is enabled. | |
| KEEPASSXC_SOCKET | No | Unix domain socket path. Auto-detected by default. | auto-detected |
| KEEPASSXC_TIMEOUT | No | Response timeout in milliseconds. | 30000 |
| KEEPASSXC_IDENTITY | No | Path to the persistent association identity file. | ~/.local/share/keepassxc-mcp/identity.json |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| get_loginsB | Retrieve saved credentials (username + password) from KeePassXC for a given URL. Returns all matching entries including login, password, name, and UUID. |
| get_totpA | Get the current TOTP (time-based one-time password) code for a KeePassXC entry. Requires the entry UUID (obtain via get_logins first). |
| set_loginB | Save or update credentials in KeePassXC. To update an existing entry, provide its uuid. |
| generate_passwordB | Generate a random password using KeePassXC's password generator. Note: this may open the KeePassXC password generator dialog on the host and wait for the user to confirm. |
| lock_databaseA | Lock the currently open KeePassXC database. |
| get_database_groupsA | List all groups (folders) in the KeePassXC database as a tree. |
| get_database_hashA | Get the SHA-256 hash of the current KeePassXC database. Useful for detecting if the database has changed. |
| associateA | Manually (re-)associate this MCP server with the KeePassXC database. A confirmation dialog will appear in KeePassXC. Usually not needed — association happens automatically on first use. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 8 tools
Each tool targets a clearly distinct action: retrieving logins, retrieving TOTP, saving logins, generating passwords, locking, listing groups, hashing, and associating. get_logins and get_totp are related but explicitly separated by the UUID requirement and output type. No two tools could be reasonably confused.
Most tools follow a consistent snake_case verb_noun pattern (get_logins, set_login, generate_password, lock_database, get_database_groups, get_database_hash). The lone 'associate' lacks a noun and is a minor deviation, but the overall convention is predictable.
Eight tools is well-scoped for a KeePassXC integration, covering credentials, TOTP, password generation, and database metadata. Each tool earns its place without excessive surface area.
Core read/create/update workflows exist, but there is no delete operation for entries, and group management is read-only (no create/delete groups). Additionally, there is no unlock tool despite lock_database being present. These are notable gaps for a password-manager lifecycle.