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 16 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.
read_pki_role- Read a PKI role configuration.
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 27, 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
MCP server, run locally or HashiCorp-hosted for HCP Terraform, 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 Terraform API 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
- Claude Code MCP Tasks: Long-Running Tools That Ask You ThingsClaude Code supports MCP Tasks and elicitations. What a tool call needs to become a task, what v2.1.319 changed for Bedrock and gateways, and what server authors change.
- Claude Security Continuous Scanning: Fix Tracking, API and MCPClaude Security now rescans repos as commits land, marks findings fixed when the fix ships, and adds an API, MCP connector and webhooks. Setup, limits and cost.
- MCP Client Features: Sampling, Elicitation and Roots ExplainedMCP sampling, elicitation and roots explained against the 2026-07-28 spec, with JSON-RPC examples and which of 24 clients support each one.
- REA vs leanrea: Skill or MCP for Reverse Engineering Agents?leanrea is an 8 KB skill pitched as a replacement for the REA (Reverse Engineer Anything) MCP server. What its benchmark shows, what it skips, and which to install.
- How to Publish a Plugin to the Claude Directory (Developer Portal Guide)Submit a plugin to the Claude directory: validate it, clear the security scan, publish, and read 90 days of usage analytics. Needs a paid plan.
- ChatGPT Plugin Extensions: Sidebar Apps, Panels and File EditorsChatGPT plugins can now add sidebar apps, side panels, file editors and native forms. How openai/ui entrypoints work, with type-checked code.
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 16 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 27, 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.