HashiCorp Vault MCP Server for Cloudflare Workers
Get started with HashiCorp Vault in your AI application. Choose your preferred language below.
npm install primrose-mcp
Sign up and create an API key in your dashboard
Use listTools() to discover HashiCorp Vault tools and callTool() to execute them
import { Primrose } from 'primrose-mcp';
// Initialize the client
const primrose = new Primrose({
apiKey: 'prm_xxxxx',
provider: 'anthropic' // or: openai, google, amazon, meta, mistral
});
// List available HashiCorp Vault tools
const tools = await primrose.listTools({ mcpServer: 'vault' });
console.log(tools);
// Call a HashiCorp Vault tool
const result = await primrose.callTool('vault_vault_identity_read_group', {
id: 'your-value'
});
console.log(result);This server uses API KEY authentication.
View Full Auth Guide