Skip to main content
Glama

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: AgentVault 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"
      }
    }
  }
}

Available Tools

3 tools
get_secretB

Retrieve a secret value from the vault by key name. The value is returned directly in the tool result and never surfaces in conversation messages.

Inputs: key (required).

list_secretsA

List all secret key names stored in the vault. Values are never returned.

Inputs: no named parameters.

set_secretB

Store a secret value in the vault. Use during onboarding or to update an existing secret.

Inputs: key (required), value (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 3 tools

    Disambiguation5/5

    Each tool maps to a distinct action on the same resource: get_secret reads a value, set_secret writes a value, list_secrets enumerates keys only. The descriptions explicitly clarify the boundary between listing keys and retrieving values, leaving no room for misselection.

    Naming Consistency5/5

    All three tools follow a strict verb_noun pattern (get_secret, set_secret, list_secrets) with consistent snake_case and a shared 'secret' noun. Fully predictable naming.

    Tool Count4/5

    Three tools is on the thin side, but for a secret vault the read/write/list triad is a coherent, well-scoped core with each tool earning its place. A slightly larger surface (delete/rotate) would feel more complete, but nothing here is redundant.

    Completeness3/5

    The surface covers create, read, and list, but there is no delete or rotate/update-by-key operation, so agents have no way to remove a compromised secret. That is a notable lifecycle gap for a vault, though the existing operations have no dead ends.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      AES-256-GCM encrypted local secret storage exposed as MCP tools, with secrets captured via native OS dialogs and never passing through the LLM API.
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      Encrypts and stores API keys and environment variables locally, providing them to AI agents via MCP with tools for listing, describing, getting secrets, and running commands with secret values redacted.
      2
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Local MCP server that lets agents save copied secrets into 1Password and use approved fields through encrypted handles without plaintext secret tool arguments or responses. Includes a local permissions dashboard and optional service-account access for unattended work. Requires the 1Password CLI and runs on your computer.
      71 npm
      MIT