credential-use-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| CREDUSE_KDBX_PATH | No | The KDBX file | ~/.config/credential-use/credentials.kdbx |
| CREDUSE_KDBX_GROUP | No | Group where new entries go | credential-use |
| CREDUSE_URL_ACCESS | No | Where pages are offered: `loopback`, `opentunnel`, `both` | loopback |
| CREDUSE_KDBX_CREATE | No | Create the file when missing | true |
| CREDUSE_KDBX_KEYFILE | No | KeePass key file (alone or with a password) | |
| CREDUSE_SECRET_INPUT | No | Preferred way to ask: `form` or `url` | form |
| CREDUSE_APPROVAL_USES | No | Requests proposed (0: propose a time limit only) | 0 |
| CREDUSE_KDBX_PASSWORD | No | Master password | |
| CREDUSE_APPROVAL_MINUTES | No | Minutes proposed when approving a proxy | 15 |
| CREDUSE_KDBX_PASSWORD_ENV | No | Name of another environment variable that holds the master password | |
| CREDUSE_MIN_SECRET_LENGTH | No | Shorter secrets are refused | 6 |
| CREDUSE_KDBX_PASSWORD_FILE | No | File whose first line is the master password |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
credential-use keeps passwords, tokens and API keys in a KeePassXC (KDBX) file. You manage them yourself, and the user approves every step in a form or page.
A task needs a secret the user has not stored: cred_add {name, kind, url…} without "secret"; the user types it and you never see it. Never ask for a secret in the chat.
You already have the secret (you generated it, or the user gave it to you): cred_add or cred_edit with "secret" and the other fields. The user checks or edits your values; nothing is saved until they submit.
To call an HTTP API with a stored credential: proxy_open {credential}. The user approves it for some minutes and/or requests; then send your requests to the returned http://127.0.0.1 URL (curl, fetch…). The proxy adds the authentication, so do not add your own. Close it with proxy_close when done. A 403 from a proxy means its approval ran out: call proxy_open again.
You need the value itself (a CLI flag, a config file) and a proxy cannot help: cred_reveal {name, reason}. The user approves each read. Never echo the value back. If it arrives as a marker like [SECRET:…], your host redacts secrets: use the marker as it is in tool arguments and the host restores the value when the tool runs.
cred_list shows names, kinds and hosts only. cred_remove deletes one after the user confirms.
The event "credentials.changed" fires when a credential is added, updated or removed. For worked examples read the skill credential-use.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| resources | {
"listChanged": true
} |
| extensions | {
"io.modelcontextprotocol/events": {},
"io.modelcontextprotocol/skills": {
"directoryRead": true
}
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| cred_listA | List the stored credentials: name, kind, host and username only, never a secret. |
| cred_addA | Store a new password, token or API key. Everything you pass comes prefilled in a form or page the user checks, edits and submits; nothing is stored until then. Without |
| cred_editA | Change a stored credential. The form comes prefilled with its public fields plus the changes you propose (rename, kind, URL, username, header, notes, and a new secret only if you already have it); the user checks, edits and submits. Propose nothing to let the user make the changes. The stored secret is never shown to you. |
| cred_removeA | Delete a stored credential after the user confirms it. |
| cred_revealA | Get a stored secret's value, after the user approves this one read (they see your reason). Use it only when the secret itself is needed (a CLI flag, a config file) and proxy_open cannot do the job; for HTTP APIs use proxy_open. Do not repeat the value in your messages or write it anywhere it is not needed. |
| proxy_openA | Open a local proxy to a stored HTTP credential's service: requests to the returned http://127.0.0.1 URL reach the service with the credential's authentication added, so you never handle the secret. The user approves it for some minutes and/or requests; while that lasts, calling it again returns the same proxy without asking. |
| proxy_listA | List the open proxies (URL, target, requests made) and the approvals still valid. |
| proxy_closeA | Close a proxy (by credential name or proxy id) and, unless keepApproval is true, end its approval. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| credential-use | Manage and use passwords, tokens and API keys with the user's approval. Store a secret the user types in a form (cred_add) or one you propose for them to check, call services through an approved local proxy (proxy_open), and read a value only when approved (cred_reveal). Use whenever a task needs authentication or a stored secret. |
TDQS
Scored across 8 tools
The set splits cleanly into two namespaced groups: cred_* for credential CRUD/reveal and proxy_* for proxy lifecycle. Within each group every tool targets a distinct action, and the descriptions explicitly resolve the only potential confusion (cred_reveal vs proxy_open) by stating when each should be used.
All eight tools follow a uniform snake_case prefix_verb pattern (cred_list, cred_add, cred_edit, cred_remove, cred_reveal, proxy_list, proxy_open, proxy_close). The two prefixes map predictably to the two resource families.
Eight tools is well-scoped for a credential vault plus proxy surface, with no redundant or filler tools. Each tool earns its place in a clear lifecycle.
Credential lifecycle (list/add/edit/remove/reveal) and proxy lifecycle (list/open/close) are both covered, with no dead ends for core workflows. Minor gaps exist, such as no standalone way to inspect or revoke a single approval beyond closing its proxy, but these are workaroundable.