Skip to content

Summary

HashiCorp's official MCP server for Vault: manage secret engine mounts, read and write KV secrets, and drive the PKI engine — issuers, roles and certificates — from an agent.

Features

  • Official HashiCorp server, written in Go and MPL-2.0 licensed
  • Create, list and delete secret engine mounts
  • Read, write, list and delete KV secrets, including individual keys
  • Full PKI workflow: enable the engine, create issuers and roles, issue certificates
  • Ships as a Docker image (hashicorp/vault-mcp-server) as well as a binary
  • Stdio and HTTP transports; VAULT_NAMESPACE support for Vault Enterprise

Installation

Set up this MCP server in your favorite AI agent — copy a ready-made configuration below.

Any MCP-compatible agent

Most agents (Claude, Cursor, Windsurf, VS Code, and more) read a standard mcpServers configuration.

  1. Open your agent's MCP configuration file.
  2. Merge the snippet below into it, filling in the environment variables with your own values.
  3. Restart the agent — the "HashiCorp Vault MCP Server" tools will be available.
{
  "mcpServers": {
    "vault-mcp-server": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "VAULT_ADDR",
        "-e",
        "VAULT_TOKEN",
        "-e",
        "VAULT_NAMESPACE",
        "hashicorp/vault-mcp-server"
      ],
      "env": {
        "VAULT_ADDR": "http://127.0.0.1:8200",
        "VAULT_TOKEN": "your-vault-token",
        "VAULT_NAMESPACE": ""
      }
    }
  }
}

Description

Vault is where a lot of organisations keep the things they most want an agent not to leak, which makes an MCP server for it a deliberate trade: real operational leverage in exchange for pointing a model at your secrets store. HashiCorp ships this one themselves, in Go, under MPL-2.0.

What it exposes

Mount managementcreate_mount, list_mounts, delete_mount, so an agent can see and shape the secret engines a Vault instance runs.

Key-value secretslist_secrets, read_secret, write_secret, delete_secret, covering both whole secrets and individual keys within them.

PKI — the largest group, and the one that saves the most time: enable_pki, create_pki_issuer, list_pki_issuers, read_pki_issuer, create_pki_role, read_pki_role, list_pki_roles, delete_pki_role and issue_pki_certificate. Standing up an internal CA and issuing a certificate against a role is normally a sequence of carefully ordered CLI calls; here it is a request.

Running it

It is distributed as a Go binary and as the hashicorp/vault-mcp-server Docker image, and speaks both stdio and HTTP transports. Configuration is three environment variables: VAULT_ADDR (defaults to http://127.0.0.1:8200), VAULT_TOKEN (required), and VAULT_NAMESPACE for Vault Enterprise. VS Code and Claude Desktop configs typically run the Docker image and prompt for the token rather than storing it in a config file — worth copying, because a Vault token in a plaintext JSON file undoes much of the point of Vault.

Worth knowing

HashiCorp's own documentation is explicit that the server is intended for local use, and cautions that model-generated outputs vary and should be reviewed against your security and compliance requirements before you act on them. Treat it as a tool for development and operator workflows against a Vault you control, scope the token narrowly, and do not point it at production secrets on the assumption that a read tool will stay a read tool — write_secret and delete_mount are in the same tool list.

Related MCP Servers

New

Replicate's official MCP server: search thousands of hosted models, read their schemas, and run predictions on image, video, audio and language models from inside an agent.

MCP: Hugging Face

by Hugging Face

New

Hugging Face's official remote MCP server — search and inspect models, datasets and Spaces, browse the Hub filesystem over hf:// URIs, and turn Gradio Spaces into callable tools.

MCP: Resend

by Resend

New

Resend's official MCP server for transactional and marketing email — send, schedule and batch messages, manage templates, contacts, broadcasts, automations, domains and suppressions from an agent.

New

Postman's official MCP server — reach your workspaces, collections, specs and environments from Claude Code, Cursor, VS Code or Copilot, in four tool tiers.

Browse all MCP servers →