Skip to main content
Glama
@mcpx-digital/env-check

@mcpx-digital/env-check

@mcpx-digital/env-check

MCP server that compares .env.example vs .env, finds missing/extra/empty keys, and produces redacted reports.

Never echoes secrets. All value reports are redacted (***redacted*** / ***present***). Local files only — no uploading env files anywhere.

Install (MCPX / npx)

npx -y @mcpx-digital/env-check

Prepared for npm as @mcpx-digital/env-check. Until published, run from a local clone.

Related MCP server: envdoc

Cursor mcp.json example

{
  "mcpServers": {
    "env-check": {
      "command": "npx",
      "args": ["-y", "@mcpx-digital/env-check"]
    }
  }
}

Local clone:

{
  "mcpServers": {
    "env-check": {
      "command": "node",
      "args": ["/absolute/path/to/env-check-mcp/index.js"]
    }
  }
}

Tools

Tool

What it does

compare_env_files

Missing / extra / empty keys vs .env.example

detect_empty_required

Empty or missing required vars (values redacted)

redact_env_report

Paste-safe key inventory with all values redacted

Disclaimer

Use only on env files you own. Do not commit real .env files. This tool helps catch misconfiguration; it does not replace a secrets manager.

Example prompts

  • “Compare .env.example to .env and list missing keys”

  • “Which required env vars are empty? (redacted)”

  • “Give me a redacted inventory of .env for a ticket”

Development

git clone https://github.com/TheoryofShadows/env-check-mcp.git
cd env-check-mcp
npm install
npm test
node index.js

Sell / list on MCPX

Suggested listing price: $6.

Install command: npx -y @mcpx-digital/env-check

License

MIT © TheoryofShadows

Available Tools

3 tools
compare_env_filesA

Compare .env.example vs .env for missing and extra keys; list empty required keys. Local .env files only. Reports redact values and never echo secrets.

Inputs: envPath, examplePath, includeCommentedExample.

detect_empty_requiredB

Detect missing or empty required vars (from example or explicit requiredKeys). Values redacted. Local .env files only. Reports redact values and never echo secrets.

Inputs: envPath, examplePath, requiredKeys, includeCommentedExample.

redact_env_reportA

Produce a paste-safe inventory of keys in an env file with all values redacted. Local .env files only. Reports redact values and never echo secrets.

Inputs: envPath.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.8/5.0

    Scored across 3 tools

    Disambiguation3/5

    compare_env_files and detect_empty_required overlap in identifying missing/empty required keys, though the former is example-based diffing and the latter supports explicit requiredKeys. redact_env_report is clearly distinct.

    Naming Consistency5/5

    All three tools use a consistent snake_case verb_noun pattern (compare_env_files, detect_empty_required, redact_env_report). This makes the tool surface predictable and easy to navigate.

    Tool Count5/5

    Three tools is within the ideal scope for a focused env-check utility, and each tool serves a distinct operation. There is no sense of bloat or a too-thin surface.

    Completeness5/5

    The set covers the core env-check lifecycle: comparing env files, validating required variables, and producing redacted output. For the stated local .env-focused purpose, there are no obvious dead ends.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      C
      maintenance
      Enables comparing local JSON/YAML locale files to find missing or extra keys against a base locale, detect empty, null, or whitespace translations, and list flattened dot-path keys for a single file. Works entirely on local files with no network calls or translation APIs.
      3
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables scanning a repository's source files for actual environment variable reads and diffing those names against .env.example or .env.sample. Returns a deterministic JSON report with the sync verdict, counts, and findings for used-but-undocumented, documented-but-unused, and missing-example vars, without ever reading values.
      60 npm
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Runs deterministic local environment checks against a repository and returns a JSON pass/fail report covering Node version, git and npm availability, lockfiles, and env-file key completeness without executing repository code or exposing secret values.
      77 npm
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables comparing local and CI environment descriptors to report differences in Node version, OS, lockfile presence, and environment variable keys—including changed values by key only—without echoing secret values.
      66 npm
      MIT