envguard
Detects and audits exposed GitHub tokens in environment files during secret scanning.
Detects and audits exposed OpenAI API keys in environment files during secret scanning.
Detects and audits exposed Slack tokens in environment files during secret scanning.
Detects and audits exposed Stripe API keys in environment files during secret scanning.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@envguardscan .env for secret leaks"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
π‘οΈ EnvGuard Secrets Vault
π Overview
EnvGuard Secrets Vault is a next-generation secrets security platform and developer toolkit designed for modern cloud architectures, CI/CD pipelines, and autonomous AI coding agents.
It replaces fragile .env file handling with military-grade envelope encryption (AES-256-GCM + PBKDF2), scans 50+ provider token patterns, calculates Shannon entropy, identifies dangerous framework prefix leaks (e.g., Next.js NEXT_PUBLIC_), injects secrets into runtime processes with zero disk writes, and exposes a standardized Model Context Protocol (MCP) server for AI assistants (Claude Desktop, Cursor, Cline, Zed).
Related MCP server: Keiko
π Key Highlights
π‘οΈ Live Secret Auditor & Scanner: 50+ detection signatures (OpenAI, Anthropic, AWS, Stripe, GitHub, Slack, DB passwords, JWTs, Private Keys) + Shannon entropy scoring.
π Zero-Exposure Encrypted Vault: Authenticated AES-256-GCM payload with PBKDF2-HMAC-SHA256 key derivation.
β‘ Zero-Disk Process Execution (
envguard vault run): Decrypts secrets directly into process RAM and child environment blocks. No plaintext touches disk.π Format Transformer & Exporter: Bidirectional conversion between
.env, JSON, YAML, Docker Compose, and Kubernetes Secrets.π€ Native Model Context Protocol (MCP) Server: 6 standardized tools (
scan_env,audit_secrets,sanitize_env,encrypt_vault,decrypt_vault,run_with_vault) for AI agents.π Google Secrets Studio UI (
public/index.html): Offline-first, Google Material 3 web app with Web Crypto API encryption, risk gauges, and preset inspection.
π¦ Installation
# Via pip
pip install envguard-secrets-vault
# Or using uv
uv pip install envguard-secrets-vaultβ‘ Quick Start (CLI)
1. Audit Environment Files for Secret Leaks
# Scan a specific environment file
envguard scan .env.production
# Deep recursive scan of workspace
envguard audit ./src2. Generate Safe Sanitized Template (.env.example)
envguard sanitize .env.production --output .env.example3. Create an Encrypted Vault File
envguard vault create .env.production --output secrets.vault4. Zero-Disk Runtime Execution
# Run application with secrets injected directly into memory
envguard vault run --vault secrets.vault -- npm start
# Python Web Server
envguard vault run --vault secrets.vault -- uvicorn app.main:app --port 80805. Multi-Format Transformation
# Convert .env to JSON
envguard convert .env.production --format json
# Convert .env to Docker Compose format
envguard convert .env.production --format dockerπ Python API Reference
from envguard_secrets_vault import Vault, SecretAuditor, Sanitizer
# 1. Audit an environment file
auditor = SecretAuditor()
report = auditor.scan_file(".env.production")
print(f"Security Grade: {report.grade} ({report.score}/100)")
for finding in report.findings:
print(f"[{finding.severity}] {finding.key}: {finding.recommendation}")
# 2. Encrypt to Vault
vault = Vault.encrypt_file(
source_path=".env.production",
password="your-master-password"
)
vault.save("secrets.vault")
# 3. Decrypt in memory (Zero Disk Leak)
env_vars = Vault.load("secrets.vault").decrypt("your-master-password")
print(f"Loaded {len(env_vars)} variables into RAM.")π€ AI Agent & MCP Integration
EnvGuard includes a standard Model Context Protocol (MCP) server that empowers AI coding agents to manage and use secrets securely:
{
"mcpServers": {
"envguard": {
"command": "python3",
"args": ["-m", "envguard.mcp"],
"env": {
"ENVGUARD_VAULT_PASSWORD": "${ENVGUARD_VAULT_PASSWORD}"
}
}
}
}See the MCP Client Integration Guide for Claude Desktop, Cursor, Cline, and Zed configurations.
π Google Secrets Studio Web UI
Open public/index.html in your browser or run:
python3 -m http.server 8080 --directory publicNavigate to http://localhost:8080 for:
π‘οΈ Interactive Secret Auditor with 0-100 Grade Gauge.
π Format Transformer (Dotenv, JSON, YAML, Docker Compose, Kubernetes Secret).
π In-Browser Web Crypto AES-256-GCM Encrypted Vault.
π€ AI Agent MCP Config Generator.
π Documentation
π License
Apache License 2.0. Copyright (c) 2026 EnvGuard Contributors.
This server cannot be deployed
Maintenance
Related MCP Connectors
Secrets for developers and agentsβsecure context and workflows without exposing secret values.
Security gateway for AI agents: policy, approval, and audited execution, no secrets shared.
Encrypted secret store and rotation for autonomous agent credentials
A secret store for AI agents: the agent never sees the plaintext.
Related MCP Servers
- AlicenseNot gradedqualityAmaintenanceEnables AI agents to scan projects for leaked secrets and manage security incidents using GitGuardian's comprehensive API. It supports automated secret detection, honeytoken creation, and remediation workflows to secure codebases without context switching.37MIT
- FlicenseNot gradedqualityCmaintenanceEnables AI agents to securely use secrets by running commands with environment-injected credentials and sanitizing output to prevent leakage.1-
- AlicenseNot gradedqualityBmaintenanceAgent Vault is a local credential vault for AI agents. It enables agents to use secrets by name without ever seeing their values, with host allowlists, output scrubbing, and audit logging.4MIT
- AlicenseAqualityBmaintenanceEnables AI agents to make authenticated API calls and run commands with secrets injected, while keeping credentials completely hidden from the model, with policy enforcement, grants, and audit logging.26MIT