Auth and security - official HashiCorp (Terraform, Vault) server
Vault MCP server
Self-hosted MCP server that lets agents manage Vault mounts, read and write KV secrets, and configure the PKI secrets engine (issuers, roles, certificate issuance) against a Vault server. It runs locally from docker.io/hashicorp/vault-mcp-server (oci) with API key auth.
Last verified 15 tools5 sources
Install
VS Code
{
"inputs": [
{
"type": "promptString",
"id": "vault_token",
"description": "Vault Token",
"password": true
},
{
"type": "promptString",
"id": "vault_namespace",
"description": "Vault Namespace (optional)",
"password": false
},
{
"type": "promptString",
"id": "vault_addr",
"description": "Vault Address (optional)",
"password": false
}
],
"servers": {
"vault-mcp-server": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e", "VAULT_ADDR=${input:vault_addr}",
"-e", "VAULT_TOKEN=${input:vault_token}",
"-e", "VAULT_NAMESPACE=${input:vault_namespace}",
"hashicorp/vault-mcp-server"
]
}
}
}Tools
create_mount- Create a new mount in Vault (kv, kv2, pki).
list_mounts- List all mounts in Vault.
delete_mount- Delete a mount in Vault.
list_secrets- List secrets in a KV mount under a path.
read_secret- Read a secret from a KV mount.
write_secret- Write a secret to a KV mount.
delete_secret- Delete a secret or key in a KV mount.
enable_pki- Enable and configure a PKI secrets engine.
create_pki_issuer- Create a new PKI issuer.
list_pki_issuers- List PKI issuers in a mount.
read_pki_issuer- Read details about a PKI issuer.
create_pki_role- Create a PKI role for issuing certificates.
list_pki_roles- List PKI roles in a mount.
delete_pki_role- Delete a PKI role.
issue_pki_certificate- Issue a certificate using a PKI role.
As documented on October 17, 2026. A running server reports its current list through tools/list.
Notes and caveats
- Docs label it a Beta feature and 'strongly discourage using beta features in production deployments of Vault.' README says it is intended for local use only in trusted networks; set MCP_ALLOWED_ORIGINS when using Streamable HTTP.
- Authenticates with a Vault token (VAULT_TOKEN env var in stdio mode, or X-Vault-Token header in HTTP mode) plus VAULT_ADDR and optional namespace.
- Only a VS Code snippet is documented (stdio variant shown; an HTTP variant pointing at
http://localhost:8080/mcpalso exists).
More MCP servers for auth and security
- HashiCorp (Terraform, Vault)
Consul MCP server
Self-hosted, read-oriented MCP server that lets agents query a Consul cluster: catalog services and nodes, health checks, KV store, ACLs, service mesh intentions and CA, peering, sessions, and operator status.
Transport: stdio, Streamable HTTPAuth: API key - HashiCorp (Terraform, Vault)
Terraform MCP server
Self-hosted MCP server that gives agents current Terraform Registry provider, module, and Sentinel policy documentation, plus HCP Terraform and Terraform Enterprise workspace, run, variable, team, and private registry management when a TFE_TOKEN is supplied.
Transport: stdio, Streamable HTTPAuth: API key - HashiCorp (Terraform, Vault)Status: Beta
Vault Radar MCP server
Locally run MCP server that lets agents query an HCP Vault Radar project for data sources, resources, secret-leak events, and detected secret types.
Transport: stdioAuth: API key - 1Password
1Password Device Trust MCP server
Self-hosted Python MCP server that exposes the 1Password Device Trust (formerly Kolide) API so agents can query devices, people, checks, issues and live query campaigns, with auto-pagination and aggregation helpers. It runs locally over Streamable HTTP or stdio.
Transport: Streamable HTTP, stdioAuth: API key - 1PasswordStatus: Beta
1Password Environments MCP server
Local stdio MCP server built into the 1Password desktop app that lets agents create, list and rename 1Password Environments, list variable names, add variables and create locally mounted .env files. It never returns secret values to the client.
Transport: stdioAuth: Other - 1Password
MCP server for 1Password SaaS Manager
MCP server exposing the 1Password SaaS Manager (formerly Trelica) API, covering audit logs, applications, workflows, people and teams, contracts and assets. Available as a hosted read-only remote server or a local sm-mcp binary that can optionally enable writes.
Transport: Streamable HTTP, stdioAuth: OAuth
Related reading
- What's New in Mastra (Late 2026): Harness, AgentController GA, Eval Gates and MCP 2.xMastra in late 2026: goals, schedules, signals, AgentController GA, eval gates and MCP 2.x, with type-checked TypeScript examples and honest tradeoffs.
- MCP vs A2A vs Function Calling: Which Layer Does What in 2026MCP vs A2A vs function calling compared on the 2026-07-28 MCP spec and A2A 1.0: what each protocol does, where they overlap, and how to stack them.
- Pydantic AI V2 in Late 2026: Capabilities, Graphs, Evals and MCPPydantic AI V2 explained through v2.57.0: capabilities, typed output, Conversation storage, caching, graphs, evals, MCP Apps and Logfire, with checked code.
- Reverse Engineer Anything (REA): What the MCP Server Does and Where the Line IsREA (Reverse Engineer Anything) is an MIT-licensed MCP server that lets Claude Code, Codex or Cursor inspect binaries, Electron apps and APKs. How to try it.
- Claude Opus 5.5 Built a Browser 3D World: The Higgsfield MCP WorkflowClaude Opus 5.5 and Higgsfield MCP built an interactive 3D Library of Alexandria in the browser. The verified connector setup and where the workflow holds up.
- Pi 1.0 Release Guide: MCP, Codemode and Pi DurablePi 1.0 adds built-in MCP through Codemode, a fullscreen TUI by default and Pi Durable. What changed, how to install it, and what breaks on upgrade.
FAQ
What does the Vault MCP server do?
Self-hosted MCP server that lets agents manage Vault mounts, read and write KV secrets, and configure the PKI secrets engine (issuers, roles, certificate issuance) against a Vault server. The vendor documents 15 tools, including create_mount, list_mounts, delete_mount and list_secrets.
How do I add the Vault MCP server to VS Code?
HashiCorp (Terraform, Vault) documents a VS Code config; copy it from the VS Code section of this page.
Does the Vault MCP server need authentication?
Yes, API key. Transport: stdio, Streamable HTTP. Status: Beta, last checked October 17, 2026.
Sources
Last verified against 5 HashiCorp (Terraform, Vault) pages, then re-checked independently.
- developer.hashicorp.comhttps://developer.hashicorp.com/vault/ai/mcp-server
- raw.githubusercontent.comhttps://raw.githubusercontent.com/hashicorp/vault-mcp-server/main/README.md
- raw.githubusercontent.comhttps://raw.githubusercontent.com/hashicorp/vault-mcp-server/main/CHANGELOG.md
- raw.githubusercontent.comhttps://raw.githubusercontent.com/hashicorp/vault-mcp-server/main/LICENSE
- api.releases.hashicorp.comhttps://api.releases.hashicorp.com/v1/releases/vault-mcp-server?limit=3
Newsletter
New MCP servers, the week they ship
One email per week. New official MCP servers, the coding tools that support them and how developers wire them up.