Envsitter Guard
MCP server by boxpositron Verified · npm:envsitter-guard
Envsitter Guard is an OpenCode plugin that blocks AI agents from reading or editing sensitive .env files. It offers EnvSitter tools that inspect keys and fingerprints without returning values.
Install Envsitter Guard
Built from the published package, never by AI.
claude mcp add envsitter-guard -- npx -y envsitter-guardRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"envsitter-guard": {
"args": [
"-y",
"envsitter-guard"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"envsitter-guard": {
"args": [
"-y",
"envsitter-guard"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"envsitter-guard": {
"args": [
"-y",
"envsitter-guard"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add envsitter-guard -- npx -y envsitter-guard{
"mcpServers": {
"envsitter-guard": {
"args": [
"-y",
"envsitter-guard"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add envsitter-guard npx -y envsitter-guardGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the envsitter-guard block.
About
Envsitter Guard is an OpenCode plugin that stops agents and tools from reading or editing sensitive .env files. It blocks direct access to protected files, including shell commands and patches that name them, and it replaces secret-looking values in tool output with a redaction marker. Safe inspection stays possible through the EnvSitter tools, which list keys and fingerprints without returning raw values.
The package supports OpenCode 1 and OpenCode 2 and is loaded through the plugin entry in opencode.json or the OpenCode 2 CLI. It is built on the envsitter library. It is aimed at developers running agentic workflows who want to keep secrets out of chat transcripts, logs, commits, and screenshots.
Written from the project's README and checked against it.
Tools it gives your assistant
envsitter_keysLists keys in a dotenv file, with optional regex filtering.envsitter_fingerprintReturns a deterministic fingerprint of a single key's value.envsitter_scanScans value shapes such as jwt, url, and base64 without printing values.envsitter_matchRuns boolean and shape checks on a key's value without printing it.envsitter_match_by_keyBulk matches candidate values by key and returns booleans only.envsitter_validateValidates dotenv syntax and reports issues without values.envsitter_copyCopies keys between env files, showing a plan and line numbers only.envsitter_addAdds a new key to a dotenv file and fails if the key already exists.envsitter_setSets a key's value, creating the key if it is missing.envsitter_deleteDeletes one or more keys entirely from a dotenv file.
What you need
- OpenCode 2.0.32 or later
- OpenCode 1.18.29 or later
Try asking
- List the keys in my .env file without showing the values.
- Check whether DATABASE_URL in .env is set and looks like a URL.
- Dry run copying API_URL from .env.production to .env.staging.
Good to know
- A guardrail against accidental reads, not a sandbox.
- Commands that reach file contents without naming the file are not blocked, only scrubbed.
- Scrubbing does not catch encoded or transformed values, or values that do not look secret.
- Custom pepper locations are not recognized.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to Envsitter Guard
All alternatives →Agentmesh MCP Proxy is a security proxy for MCP servers, described by its publisher as a firewall for the Model Context Protocol. It is aimed at teams that run AI agents which call tools and other agents.
Hardens client-side artifacts such as binaries, Electron apps, JS bundles, Python and WebAssembly against AI reverse-engineering agents. Built for developers who ship proprietary logic to user-controlled devices.
Bla Agents is an MCP server and CLI that adds seeded, format-specific decoys to shipped binaries, JavaScript, WebAssembly and other artifacts. It is for developers who ship proprietary logic to user-controlled devices and want to make AI reverse-engineering slower.
A shared OAuth server for the MCP route of an app, built on better-auth, with passkey sign-in for the owner
Agent Governance Toolkit adds policy enforcement, identity, sandboxing and audit logging to autonomous AI agents. It is aimed at teams shipping agents to production. The source does not confirm the Claude Desktop MCP server named in the listing.
Convex MCP Gateway is a Convex component that exposes selected Convex functions as MCP tools. It checks each call with your own authorize callback and writes an audit log. It is for developers who run Convex apps and want AI assistants to call parts of them.
Compare with Agentmesh MCP Proxy, Bla or Bla Agents
Envsitter Guard: common questions
Does Envsitter Guard show my secret values?
The EnvSitter tools return keys, booleans, fingerprints, and line numbers, never raw values. Secret-looking values in other tool output are replaced with a redaction marker.
Can it stop every way an agent might read a secret?
No. The source describes it as a guardrail against accidental reads, not a sandbox. Commands that do not name the file are scrubbed but not blocked.
Which OpenCode versions does it support?
One package supports OpenCode 2.0.32 and later and OpenCode 1.18.29 and later. The entry point differs for each major version.
How do I install Envsitter Guard?
In Claude Code run claude mcp add envsitter-guard -- npx -y envsitter-guard. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Envsitter Guard the official server?
Envsitter Guard is published by npm:envsitter-guard from its verified domain in the official MCP Registry.
Is Envsitter Guard free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is Envsitter Guard safe to use?
It scores 83 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to Envsitter Guard?
Similar MCP servers: Agentmesh MCP Proxy, Bla, Bla Agents, MCP Auth.
Does Envsitter Guard work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
