MCP-Secrets-Vault
Enables AI agents and MCP clients to securely store, retrieve, and manage encrypted credentials without hardcoding API keys.
README
MCP-Secrets-Vault
Security-first secrets vault for MCP servers, Claude Code, Cursor, and AI agents.
Stop hardcoding API keys in .env files and MCP configs. MCP-Secrets-Vault stores credentials encrypted (AES-256-GCM) on your machine and exposes them to AI clients via MCP tools.
Quick Start
npx @gpitrella/mcp-secrets-vault init
# Set VAULT_PASSPHRASE in ~/.mcp-secrets-vault/.env
npx @gpitrella/mcp-secrets-vault set openai_key sk-your-key
npx @gpitrella/mcp-secrets-vault get openai_key
Claude Desktop / Cursor
{
"mcpServers": {
"secrets-vault": {
"command": "npx",
"args": ["-y", "@gpitrella/mcp-secrets-vault"],
"env": {
"VAULT_PASSPHRASE": "your-passphrase"
}
}
}
}
MCP Tools
| Tool | Description |
|---|---|
set_secret |
Store encrypted credential |
get_secret |
Retrieve decrypted credential |
rotate_secret |
Rotate value (keeps 5 versions) |
list_secrets |
List metadata (no values) |
delete_secret |
Soft or hard delete |
search_secrets |
Full-text search |
import_env |
Bulk import from .env content |
export_env |
Export as .env format |
dashboard |
Interactive HTML dashboard |
CLI
npx @gpitrella/mcp-secrets-vault init
npx @gpitrella/mcp-secrets-vault set <name> <value> [--workspace=default]
npx @gpitrella/mcp-secrets-vault get <name>
npx @gpitrella/mcp-secrets-vault list
npx @gpitrella/mcp-secrets-vault import .env --workspace=memxus
npx @gpitrella/mcp-secrets-vault export --workspace=memxus
npx @gpitrella/mcp-secrets-vault gen-key
Security
- Bound to
127.0.0.1only for HTTP (NeighborJack defense) - AES-256-GCM with Node.js
crypto(zero third-party crypto deps) - Strict Zod validation,
additionalProperties: falseon all tools - Audit logs never contain secret values
- All dependencies pinned to exact versions
See docs/SECURITY.md for the threat model.
License
AGPL v3 — See LICENSE.
Vault Cloud (coming soon)
Self-hosted is free forever. Hosted tier with team workspaces, RBAC, and compliance reports.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.