Agentic Vault
MCP server that lets AI agents call APIs without ever seeing the credentials, using a local encrypted vault and per-secret allowlist policies for HTTP requests and subprocess environment variables.
README
Agentic Vault
MCP server that lets AI agents call APIs without ever seeing the credentials.
Secrets live in a local encrypted vault. The server substitutes them at call time into outbound HTTP requests or subprocess environment variables, under a per-secret allowlist policy. The model only ever sees secret names, never values.
Homepage: https://agenticvault.madhoob.dev
Why
Letting an AI agent make authenticated calls usually means giving it the raw API key. That breaks least-privilege, pollutes transcripts and logs, and means one jailbreak or prompt-injection is enough to exfiltrate the token.
Agentic Vault splits the two: the agent picks a secret by name and a destination; the vault checks the policy and injects the value. The plaintext never crosses the tool boundary.
Install
npm install -g secretproxy
secretproxy init # creates the global vault, stores master password in the OS keychain
secretproxy add OPENROUTER_API_KEY sk-or-...
secretproxy policy set OPENROUTER_API_KEY --host openrouter.ai
secretproxy run # start the MCP server over stdio
Then point any MCP client (Claude Code, Cursor, Cline, Codex, Zed) at secretproxy run.
Tools exposed over MCP
| Tool | Purpose |
|---|---|
list_secrets |
Enumerate available secret names (no values) |
http_request |
Make an HTTP call with a secret injected into headers, query, or body |
run_command |
Run a subprocess with secrets injected as env vars |
scan_env_requirement |
Detect what env vars a project expects and match them to stored secrets |
Features
- Zero-plaintext injection — values substituted inside the vault, never in the model context
- Per-secret policy — allow-lists for HTTP hosts, commands, env vars; deny by default; optional wildcards (strict mode rejects them)
- AES-256-GCM vault with argon2id key derivation
- Encrypted audit trail — every call logged with policy decision, surface, outcome
- Scoped vaults — global defaults + per-project overrides
- OS-native password storage — macOS Keychain, libsecret, Windows Credential Manager
- Interactive TUI (
secretproxy tui) and local-only web UI (secretproxy ui) - Rate limiting with token buckets
- Zero telemetry — no outbound calls, local-only by design
Development
npm install
npm test # 328 tests across 45 files
npm run build
npm run typecheck
Architecture primer: src/vault/ owns encryption, src/mcp/ owns the MCP tool surface, src/policy/ owns allowlist enforcement, src/audit/ owns the append-only log.
License
AGPL-3.0-or-later for open-source use — see LICENSE.
If your use case is incompatible with AGPL's network-copyleft clause (embedding in a proprietary product, offering as a managed service without source disclosure, etc.), a commercial license is available — see COMMERCIAL-LICENSE.md.
Contact: haaamcar@gmail.com
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
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
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.