Skip to main content
Glama
Isco0819

vault-mcp

by Isco0819

vault-mcp

MCP server that exposes secrets from your OS keychain (or an AES-256-GCM encrypted file) as MCP tools. Secrets are returned directly in tool results and never appear in conversation messages.

Tools

Tool

Description

get_secret(key)

Read a secret value from the vault

set_secret(key, value)

Store a secret in the vault

list_secrets()

List stored key names — values are never returned

Related MCP server: Kova Mind MCP Server

Quick start

# Install deps
cd vault-mcp && npm install

# Walk through adding a first secret and get your config block
npx vault-mcp init
# (on Linux without libsecret, set passphrase first)
# export VAULT_MCP_PASSPHRASE="my-strong-passphrase"
# npx vault-mcp init

The init command prints a JSON block to paste into claude_desktop_config.json (Claude Desktop) or .claude/settings.json (Claude Code).

Backends

When keytar installs successfully and libsecret is available, secrets are stored in the OS keychain (Keychain Access on macOS, Credential Manager on Windows, Secret Service on Linux).

No environment variable needed.

AES-256-GCM file vault — Linux CI / containers

If keytar is unavailable, vault-mcp falls back to ~/.vault-mcp/vault.json. Each value is encrypted with AES-256-GCM using a key derived via scrypt from your passphrase.

export VAULT_MCP_PASSPHRASE="my-strong-passphrase"

Add this env var to your MCP server config (see init output).

Other CLI commands

vault-mcp set MY_SECRET "value"   # store without interactive prompt
vault-mcp list                     # print stored key names
vault-mcp server                   # start MCP server (used by config block)

MCP config example (file vault)

{
  "mcpServers": {
    "vault-mcp": {
      "command": "node",
      "args": ["/path/to/vault-mcp/src/server.js"],
      "env": {
        "VAULT_MCP_PASSPHRASE": "my-strong-passphrase"
      }
    }
  }
}
A
license - permissive license
-
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Isco0819/vault-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server