Skip to main content

HashiCorp Vault

HashiCorp's Vault MCP server runs on each person's computer. The Official card starts vault-mcp-server over stdio and turns on Local MCP. It is the HashiCorp Vault card with the Official badge. There is no hosted URL. See What is the Vault MCP server? and Local MCP.

HashiCorp marks the server beta and says not to use beta features in production Vault deployments. The server can show Vault data, including secrets, to the AI client. HashiCorp says to use it only with clients and models you trust.

The card puts each person's API key in VAULT_TOKEN. It leaves VAULT_ADDR as {{url}}. That placeholder is not a field on the card, so set the Vault address in the MCP configuration before anyone connects.

Before you start​

On every computer that will use the server:

  • Node.js, so Willow's local client can start with npx. See Local MCP.
  • The vault-mcp-server binary on PATH. The card runs that command. Download the zip for the computer's operating system and architecture from the release library, unpack it, and install the binary so the command vault-mcp-server is on PATH. See Run the Vault MCP server binary. With Go, HashiCorp's install is go install github.com/hashicorp/vault-mcp-server/cmd/vault-mcp-server@latest, then which vault-mcp-server. See Run the Vault MCP server from source code.

You also need a Vault address the computers can reach, and a Vault token for each person. HashiCorp says not to use a root token, and not to share one token across people. Create a policy for the paths the agent should use, then a token for that person. The Connect AI agents to Vault tutorial writes a developer policy and creates a token with vault token create. In production, HashiCorp says to scope KV paths to an application prefix, and to let a separate privileged token enable mounts.

Set up Willow​

  1. Go to MCP Servers → + Add MCP server, open the HashiCorp Vault card with the Official badge, and click + Use.
  2. Leave Local MCP on. The command is already vault-mcp-server. Keep VAULT_TOKEN as {{apiKey}}.
  3. On the Setup tab, under MCP configuration, set VAULT_ADDR to your Vault address, for example https://vault.example.com:8200. Replace {{url}}.
  4. When the cluster uses a namespace, add VAULT_NAMESPACE to env. HashiCorp uses that namespace as the root for the server's commands, and mount paths are relative to it. See MCP server configuration and transport protocols.
  5. Keep Personal API keys so each person pastes their own token. Assign groups and Publish.

To stop the server from creating, editing, or deleting secrets, HashiCorp says to set ENABLE_VAULT_OPERATIONS to false in that same env. See MCP server best practices.

Each person​

  1. On that computer, confirm vault-mcp-server runs.
  2. On the MCP Servers page, open this server and click Use. Copy the STDIO configuration into the AI client. See Local MCP servers.
  3. When Willow asks for a key, paste a Vault token issued for that person.

Troubleshooting​

vault-mcp-server is not found​

Cause: The binary is missing from PATH on the computer that starts the server.

Solution: Install it from the release library or with go install, then confirm the command vault-mcp-server runs. The card's command stays vault-mcp-server.

The server cannot reach Vault​

Cause: VAULT_ADDR is still {{url}}, or it points at a different cluster than the one that issued the token. HashiCorp's default when the variable is unset is https://127.0.0.1:8200. The card sets the variable, so an unreplaced {{url}} does not use that default.

Solution: Set VAULT_ADDR to the Vault address and publish again.

Vault refuses the token or the path​

Cause: The token is missing, expired, or its policy does not include that path. A root token is the wrong fix.

Solution: Issue a new token for a policy that covers the paths you want. See Connect AI agents to Vault.

Mount paths miss the namespace​

Cause: The cluster uses a namespace and VAULT_NAMESPACE is unset or wrong.

Solution: Set VAULT_NAMESPACE in env to that namespace and publish again.

Additional Resources​