Compare dotenv files and report which keys are missing or extra, by name only.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Spot missing keys across your .env files before they bite
Automatic checks, a status bar counter, and a plain markdown report
Useful? A star or rating is how other developers find it β β GitHub Β· β Open VSX Β· β Marketplace
EnvSync-LE compares the variable names across the .env files in your
workspace and tells you which files are missing which keys. It never reads
or compares values, and it never modifies your files. Works in VS Code and
in VS Codeβbased editors like Cursor and VSCodium (installable from Open VSX).
.env file changesShow Details (Ctrl+Alt+S / Cmd+Alt+S) lists every missing key per fileauto (union of all keys), manual (only the files you list), template (validate everything against one reference file; also reports keys a file has that the template lacks).env.example) from checking| Where | What you get | Install |
|---|---|---|
| VS Code | The same comparison, live, in your editor | Marketplace |
| Cursor, VSCodium, Windsurf | The same extension | Open VSX |
| A terminal or a CI step | The same run over a whole tree, with exit codes | cargo install envsync-le Β· crates.io |
| Any MCP agent, via Node | compare_env_files over stdio | npx envsync-le-mcp Β· npm |
| Zed | The MCP server as a context server | add it by hand (no listing yet) |
The same engine runs as an MCP server, so an agent can call it directly instead of you running a command.
| Editor | How |
|---|---|
| VS Code 1.101+ | Nothing to install β the extension registers compare_env_files with agent mode |
| Zed | No listing yet β add the MCP server by hand |
| Claude Code | claude mcp add envsync-le -- npx -y envsync-le-mcp |
| Cursor, Windsurf, anything else | point it at npx envsync-le-mcp |
Takes file contents directly and reports which keys are missing from which file. Only key names are returned, never values β a dotenv file is where credentials live and the answer does not need them.
The server takes content and returns data β it reads no files and makes no network requests of its own. Published as envsync-le-mcp on npm and as io.github.nolindnaidoo/envsync-le in the MCP registry.
Most hosts read a JSON config. Add one entry:
-y skips the install prompt on first run. Pin a version if you would rather not track releases β envsync-le-mcp@2.2.6.
Prefer not to go through npx on every launch? Install it once and point at the binary instead:
It speaks MCP over stdio and needs no environment variables, no API key and no configuration of its own. To check it before wiring it into anything:
That prints the tool list and exits β if you see compare_env_files, the server works.
| Filename | Type |
|---|---|
.env | base |
.env.local, .env.*.local | local override |
.env.example, .env.template | template |
.env.production, .env.prod | production |
.env.development, .env.dev | development |
.env.test | test |
anything.env, unknown segments | base |
Classification is segment-based on the basename β app.device.env is not
"development", and Windows paths classify correctly.
The same comparison runs from a terminal or a CI step: a Rust CLI in
crate/, sharing one corpus with the extension β
crate/fixtures/ β so the two can never read a
dotenv file differently.
The exit code is the product β 0 in sync, 1 out of sync, 2 malformed question. Finding no dotenv files at all is 0: there is nothing to be out of sync with. Unlike the extractors in this family there is no list to pipe onward; the number is the answer.
It never reads a value. Only key names are parsed, compared or reported, and three separate checks enforce that rather than a promise.
| Command | Description |
|---|---|
EnvSync-LE: Show Details (Ctrl+Alt+S / Cmd+Alt+S) | Run a sync check and open the markdown report |
EnvSync-LE: Compare Files | Compare the key sets of two or more selected .env files |
EnvSync-LE: Set Template | Mark a .env file as the reference template |
EnvSync-LE: Clear Template | Return to automatic comparison |
EnvSync-LE: Ignore File | Exclude a .env file from sync checking |
EnvSync-LE: Unignore File | Re-include a previously ignored file |
EnvSync-LE: Clear Ignored Files | Empty the ignore list |
EnvSync-LE: Open Settings | Open VS Code settings filtered to EnvSync-LE |
EnvSync-LE: Help & Troubleshooting | Built-in documentation |
| Setting | Default | Description |
|---|---|---|
envsync-le.enabled | true | Master switch for sync checking |
envsync-le.watchPatterns | [".env*"] | Glob patterns for files to watch and compare |
envsync-le.excludePatterns | [] | Glob patterns to exclude; patterns without / match the basename (so .env.*.local excludes nested files too) |
envsync-le.notificationLevel | important | all = missing + extra keys, important = missing keys + errors, silent = nothing |
envsync-le.statusBar.enabled | true | Show the status bar item (applies immediately) |
envsync-le.debounceMs | 1000 | Delay between a file change and the sync check |
envsync-le.caseSensitive | true | Treat DB_URL and db_url as different keys |
envsync-le.comparisonMode | auto | auto, manual, or template |
envsync-le.compareOnlyFiles | [] | In manual mode, only compare these files (workspace-relative) |
envsync-le.templateFile | β | The reference file for template mode (set via Set Template) |
envsync-le.temporaryIgnore | [] | Files currently ignored (managed by the ignore commands) |
envsync-le.telemetryEnabled | false | Local-only event log (see Privacy) |
[A-Za-z_][A-Za-z0-9_-]*; anything else left of = is
reported as a parse error for that line (the rest of the file still counts).export KEY=value is accepted; duplicate keys count once.", ', or ` may span multiple lines; an
unterminated quote is reported as an error.auto mode the reference is the union of all keys, so "extra keys"
only exist in template mode.Twelve languages besides English:
German Β· Spanish Β· French Β· Indonesian Β· Italian Β· Japanese Β· Korean Β· Portuguese (Brazil) Β· Russian Β· Ukrainian Β· Vietnamese Β· Chinese (Simplified)
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/envsync-le)<a href="https://allmcps.com/mcp/envsync-le"><img src="https://allmcps.com/api/badge/envsync-le?style=directory" alt="Envsync Le on AllMCPs" /></a>