Vault secret management, policy creation, and resource listing
Overview
What is MCP Server for HashiCorp Vault?
MCP Server for HashiCorp Vault is a Model Context Protocol (MCP) server implementation that provides a secure interface to HashiCorp Vault, enabling LLMs and other MCP clients to interact with Vault's secret and policy management features.
How to use MCP Server?
To use the MCP Server, you can run it via Docker or integrate it with Cursor MCP configuration. You need to set environment variables for your Vault server address and token.
Key features of MCP Server?
- Secure secret management through a structured API
- Policy creation and management
- Resource discovery and listing
- Automated policy generation
Use cases of MCP Server?
- Managing application secrets securely.
- Creating and managing access policies for different applications.
- Automating the generation of Vault policies based on user-defined parameters.
FAQ from MCP Server?
- Can I run MCP Server without Docker?
Yes, you can clone the repository and build it manually.
- What environment variables are required?
You need to set
VAULT_ADDRandVAULT_TOKENto run the server.
- Is there a way to list all available secrets?
Yes, you can use the
vault://secretsresource to list all available secret paths.
Server Config
{
"mcpServers": {
"Vault MCP": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"VAULT_ADDR=https://your-vault-server:8200",
"-e",
"VAULT_TOKEN=hvs.your-vault-token",
"ashgw/vault-mcp:latest"
]
}
}
}