HashiCorp Vault integration
HashiCorp Vault REST API for secrets management and data protection. Store and access secrets, manage encryption keys, generate dynamic credentials, and control access with fine-grained policies for application security.
Say what should happen.
The workflow builds itself.
Common HashiCorp Vault use cases
- automate policy management
- automate auth method management
- automate token management
- automate kv2 secret management
- automate data transit management
- automate secrets engine management
- get health programmatically
- get policy programmatically
- list mount programmatically
- seal vault programmatically
What you can do with HashiCorp Vault
Each of these is one operation on one endpoint, available both as a workflow step and as a tool an AI agent can call on its own. Nothing bundles several operations into one action, so what a run did stays readable afterwards.
Each badge shows the default agent permission of an endpoint (allowed: an agent calls it without asking; ask first: you are asked before an agent calls it, when the agent or chat asks permission for sensitive actions; never: no agent may call it), which every user can change endpoint by endpoint in their credential settings.
Most endpoints run on the free plan. A few, mainly the ones that publish on your behalf, need a paid plan.
Kv2 secret, 4 operations
delete_kv2_secretDelete kv2 secretDELETEAgents: ask firstDelete the latest version of a secret in the KV v2 secrets engine. The secret metadata and older versions are retained and can be recovered via undelete.list_kv2_secretsList kv2 secretsGETAgents: ask firstList all secret keys at the specified path prefix in the KV v2 secrets engine. Returns key names and subfolders. Uses the LIST HTTP method modeled as GET with list=true.read_kv2_secretRead kv2 secretGETAgents: ask firstRead a secret from the KV v2 secrets engine at the specified mount and path. Returns the secret data along with metadata such as version, creation time, and deletion status.write_kv2_secretWrite kv2 secretPOSTAgents: ask firstWrite or update a secret in the KV v2 secrets engine. Creates a new version of the secret while preserving previous versions for rollback.
Policy, 4 operations
create_or_update_policyCreate or update policyPUTAgents: ask firstCreate or update an ACL policy with the specified name. Policy rules are written in HashiCorp Configuration Language (HCL) and define path-level capabilities.delete_policyDelete policyDELETEAgents: ask firstDelete the ACL policy with the specified name. Tokens associated with this policy will lose the permissions it granted.get_policyGet policyGETAgents: ask firstRetrieve the rules and HCL definition of a specific ACL policy by name.list_policiesList policiesGETAgents: ask firstLists all ACL policies defined in Vault. Policies control what paths and operations a token is allowed to access.
Auth method, 3 operations
disable_auth_methodDisable auth methodDELETEAgents: ask firstDisable the auth method at the specified path. All tokens generated by this method are revoked.enable_auth_methodEnable auth methodPOSTAgents: ask firstEnable a new authentication method at the specified path. Common methods include userpass, approle, aws, kubernetes, jwt, and ldap.list_auth_methodsList auth methodsGETAgents: ask firstLists all the enabled authentication methods in the Vault along with their configurations and accessor values.
Token, 3 operations
create_tokenCreate tokenPOSTAgents: ask firstCreate a new Vault token. The created token inherits a subset of the parent token's policies. Useful for creating service-specific tokens with restricted capabilities.lookup_self_tokenLookup self tokenGETAgents: ask firstLook up information about the current token being used, including its policies, TTL, accessor, and metadata. Does not require elevated privileges.revoke_tokenRevoke tokenPOSTAgents: ask firstRevoke a Vault token and all tokens derived from it (child tokens). All secrets leased by the token are also revoked.
Vault, 3 operations
initialize_vaultInitialize vaultPOSTAgents: ask firstInitialize a new Vault instance. Only works on an uninitialized Vault. Returns the initial root token and unseal keys which must be stored securely.seal_vaultSeal vaultPOSTAgents: ask firstSeals the Vault server. After sealing, all access to secrets is blocked until the Vault is unsealed again. Requires a token with sudo privileges.unseal_vaultUnseal vaultPOSTAgents: ask firstProvide an unseal key share to progress toward unsealing the Vault. Must be called multiple times with different key shares until the threshold is reached.
Data transit, 2 operations
decrypt_data_transitDecrypt data transitPOSTAgents: ask firstDecrypt ciphertext using a named encryption key in the Transit secrets engine. Returns the original base64-encoded plaintext.encrypt_data_transitEncrypt data transitPOSTAgents: ask firstEncrypt plaintext data using a named encryption key in the Transit secrets engine. Returns a ciphertext that can only be decrypted by Vault using the same key.
Kv1 secret, 2 operations
read_kv1_secretRead kv1 secretGETAgents: ask firstRead a secret from the KV v1 secrets engine at the specified mount and path. Returns the raw secret data without versioning.write_kv1_secretWrite kv1 secretPOSTAgents: ask firstWrite or overwrite a secret in the KV v1 secrets engine. Unlike KV v2, this does not maintain version history - it replaces the existing secret entirely.
Secrets engine, 2 operations
disable_secrets_engineDisable secrets engineDELETEAgents: ask firstDisable the secrets engine at the specified mount path. All secrets stored under this path are revoked and the path is removed.enable_secrets_engineEnable secrets enginePOSTAgents: ask firstEnable a new secrets engine at the specified path. Vault supports many secret engine types such as kv, database, transit, aws, pki, and more.
Approle auth, 1 operation
approle_loginApprole loginPOSTAgents: ask firstAuthenticate using the AppRole auth method with a Role ID and Secret ID. Designed for machine and application authentication. Returns a Vault token on success.
Database credential, 1 operation
generate_database_credentialsGenerate database credentialsGETAgents: ask firstGenerate dynamic database credentials (username and password) for the specified database role. Credentials are temporary, automatically rotated, and expire after the configured TTL.
Health, 1 operation
get_healthGet healthGETAgents: ask firstReturns the health status of the Vault server. Useful for load balancer health checks and monitoring. Returns 200 if initialized, unsealed, and active.
Mount, 1 operation
list_mountsList mountsGETAgents: ask firstLists all the mounted secrets engines in the Vault along with their configurations, accessor values, and local/replication settings.
Seal status, 1 operation
get_seal_statusGet seal statusGETAgents: ask firstReturns the seal status of the Vault server, including whether it is sealed, the number of shares required to unseal, and how many unseal keys have been provided.
Self token, 1 operation
renew_self_tokenRenew self tokenPOSTAgents: ask firstRenew the TTL of the current token. The token must be renewable and must not have expired. Extends the token's validity by the increment or its original TTL.
Transit key, 1 operation
create_transit_keyCreate transit keyPOSTAgents: ask firstCreate a new named encryption key in the Transit secrets engine. Keys can be used for encryption, decryption, signing, verification, and HMAC operations.
Userpass auth, 1 operation
userpass_loginUserpass loginPOSTAgents: ask firstAuthenticate using the Userpass auth method with a username and password. Returns a Vault token on success that can be used for subsequent API calls.
Use HashiCorp Vault from Claude Code, Cursor or Codex
Connect HashiCorp Vault in LiveContext, create an API key in Settings, then add the LiveContext MCP server to your client. Its HashiCorp Vault operations become tools the client can call, next to every other integration you connected.
claude mcp add --transport http livecontext https://livecontext.ai/mcp --header "X-API-Key: YOUR_API_KEY"[mcp_servers.livecontext]
url = "https://livecontext.ai/mcp"
[mcp_servers.livecontext.http_headers]
"X-API-Key" = "YOUR_API_KEY"{
"mcpServers": {
"livecontext": {
"type": "http",
"url": "https://livecontext.ai/mcp",
"headers": {
"X-API-Key": "YOUR_API_KEY"
}
}
}
}How to connect HashiCorp Vault
- Create your workspace
Sign up free. Nothing to install.
- Connect HashiCorp Vault once
Add your HashiCorp Vault connection in Settings. Every tool from this integration reuses it, and secrets are encrypted at rest and visible only to you.
- Describe the job in chat
The workflow builds itself in front of you and picks the endpoints it needs. Drag the steps yourself on the canvas whenever you would rather be explicit.
HashiCorp Vault integration FAQ
What can you do with the HashiCorp Vault integration?
LiveContext exposes 31 operations on HashiCorp Vault, covering kv2 secret, policy, auth method and token. Common uses include automate policy management, automate auth method management and automate token management.
