Skip to main content
Glama

SecretVault MCP

Bounded Egress Gateway & Secret Proxy for AI Agents and Applications. Safely inject credentials into approved upstream requests while keeping raw credentials out of LLM agent prompt contexts.


Why SecretVault?

Traditional secret managers return raw plaintext API keys and database passwords to applications. When AI agents (such as Claude Code or custom LLM tools) handle raw secret values, those secrets inevitably leak into LLM context streams, prompt logs, and telemetry data.

SecretVault enforces a Bounded Egress Gateway Model:

  • šŸ›”ļø Bounded Egress Gateway Claim: MCP tools, agent SDKs, and REST API calls cannot retrieve raw secret plaintexts. AI agents receive masked previews (sk-live-***1234) or proxy reference tokens (sv://...).

  • šŸ”„ Server-Side Credential Proxy: Agents route requests through SecretVault's reverse proxy (/proxy/:service/*), which decrypts and injects real credentials server-side directly into outbound HTTP headers.

  • 🌐 Upstream Response Trust Boundary: SecretVault injects credentials into outbound requests, but response bodies returned by third-party services reside within the upstream service's trust boundary. Current mitigations include HTTPS-by-default destinations, private-network rejection, and canonical origin validation; transparent response-body sanitization and universal path/method policy are not claimed.

  • šŸ”‘ AES-256-GCM Encryption: All secrets are encrypted locally using AES-256-GCM before being saved to Supabase/PostgreSQL.

  • šŸ” Human-Only Step-Up Auth: High-risk Web UI operations (such as revealing raw secrets to human operators) require hardware WebAuthn Passkeys or TOTP 2FA assertion.


Related MCP server: Access

Architecture Diagram

graph TD
    User["šŸ‘¤ Human Operator (Browser Web UI)"] -->|"Step-Up Auth (Passkey/TOTP)"| WebUI["🌐 SecretVault Web UI (/ui)"]
    Claude["šŸ¤– Claude Code / AI Agent"] -->|"Streamable HTTP / SSE"| MCP["⚔ SecretVault MCP Server (:3004)"]
    App["šŸ’» Application / Agent Code"] -->|"proxy() with sv_... key"| Proxy["šŸ”’ Credential Proxy (/proxy/*)"]

    MCP -->|"Masked Previews / References"| Claude
    Proxy -->|"Inject Decrypted Credential"| Upstream["ā˜ļø Upstream Service (GitHub, OpenAI, etc.)"]

    WebUI -->|"Encrypted Blobs"| DB[("šŸ—„ļø Supabase PostgreSQL")]
    MCP -->|"Encrypted Blobs"| DB
    Proxy -->|"Read Encrypted Secret"| DB


Quickstart & Setup

Connecting to SecretVault requires two sequential steps: Deploying the SecretVault Server (core infrastructure), followed by Configuring Developer AI Tools (connecting Antigravity IDE, Claude Code, etc.).


Step 1: Deploy SecretVault Server (Required First)

Deploy the core SecretVault server (AES-256-GCM proxy + Web UI + MCP engine).

Interactive installer that configures database connections, generates encryption keys, and provisions Docker Compose:

curl -fsSL https://raw.githubusercontent.com/itsaygea/secretvault/main/install-server.sh | bash

Option 1B: Manual Docker Compose Deployment

# 1. Clone repository & enter directory
git clone https://github.com/itsaygea/secretvault.git
cd secretvault

# 2. Prepare environment configuration
cp .env.example .env

# 3. Generate 32-byte master key & edit .env
openssl rand -hex 32
nano .env # Paste master key and database connection parameters

# 4. Restrict file permissions & launch stack
chmod 600 .env
docker compose up -d

# 5. Verify health check & access Web UI
curl http://localhost:3004/health/ready
# Open http://localhost:3004/ui in browser

Step 2: Connect Developer AI Tools & Clients

Once your SecretVault server is running, connect your AI developer tools (Antigravity IDE, Claude Code, Claude Desktop, OpenCode, Codex):

Option 2A: Interactive Developer Client Setup Wizard

Automatically provisions linking keys and configures MCP settings across all detected developer tools:

curl -fsSL https://raw.githubusercontent.com/itsaygea/secretvault/main/install-client.sh | bash

(Or launch directly via npx: npx --package=git+https://github.com/itsaygea/secretvault.git secretvault-mcp setup).

Option 2B: Terminal Secret Manager CLI

Manage secrets directly from your terminal or SSH shell:

# Setup developer tool integrations
npx --package=git+https://github.com/itsaygea/secretvault.git secretvault-mcp setup

# Manage secrets via CLI
npx --package=git+https://github.com/itsaygea/secretvault.git secretvault-mcp secret list
npx --package=git+https://github.com/itsaygea/secretvault.git secretvault-mcp secret create
npx --package=git+https://github.com/itsaygea/secretvault.git secretvault-mcp secret rotate
npx --package=git+https://github.com/itsaygea/secretvault.git secretvault-mcp secret delete

šŸ“– Full Installation Guide: See docs/install.md for detailed server options, PostgreSQL migrations, and Caddy HTTPS setup.


Documentation Index


Monorepo Layout

secretvault/
ā”œā”€ā”€ packages/
│   ā”œā”€ā”€ shared/          # Crypto (AES-256-GCM), masking, types, naming helpers
│   ā”œā”€ā”€ mcp-server/      # MCP server + REST API + Web UI + Proxy
│   ā”œā”€ā”€ client/          # Proxy-only application client (@secretvault/client)
│   ā”œā”€ā”€ admin/           # Management client (@secretvault/admin)
│   ā”œā”€ā”€ bridge/          # Deprecated proxy compatibility adapter
│   └── sdk/             # Deprecated migration alias
ā”œā”€ā”€ supabase/migrations/ # PostgreSQL schema migrations (001 - 011)
ā”œā”€ā”€ docs/                # Public user guides (install, usage, security, ops)
ā”œā”€ā”€ Dockerfile           # Multi-stage production container build
└── docker-compose.yml   # Production Docker Compose distribution

License

SecretVault is open-source software licensed under the MIT License.

A
license - permissive license
-
quality - not tested
B
maintenance

Maintenance

–Maintainers
–Response time
–Release cycle
–Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    A
    quality
    C
    maintenance
    Credential isolation proxy for AI agents. Injects API keys at the network boundary so your agent never sees the raw credential. Supports domain allowlists, agent auth, policy enforcement, and audit logging.
    Last updated
    3
    119
    13
    Apache 2.0
  • A
    license
    -
    quality
    D
    maintenance
    Self-hosted credential store and API proxy for AI agents. One Bearer token, all your services. Handles OAuth refresh, encrypted storage, audit logging, and per-agent permissioning.
    Last updated
    72
    MIT
  • A
    license
    A
    quality
    A
    maintenance
    Local zero-trust permission gateway for AI agents. Enforces policy-based tool authorization, human approvals, scoped permissions, and cryptographically verifiable audit logs.
    Last updated
    4
    6
    Apache 2.0
  • A
    license
    -
    quality
    D
    maintenance
    Enables AI agents to safely interact with external services (HTTP, GraphQL, gRPC, Bash, SQL) using HCL templates and OS keychain secrets, preventing prompt injection by keeping request details from the LLM.
    Last updated
    112
    Apache 2.0

View all related MCP servers

Related MCP Connectors

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/itsaygea/secretvault'

If you have feedback or need assistance with the MCP directory API, please join our Discord server