Env Secret Exposure Analyzer MCP logo

Env Secret Exposure Analyzer MCP

Scans project files for exposed secrets, unsafe .env handling, and logs that print credentials.

Install Env Secret Exposure Analyzer MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "env-secret-exposure-analyzer-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "env-secret-exposure-analyzer-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Automated check passed— started and listed 5 tools correctly (2d ago).

Overview

The env-secret-exposure-analyzer-mcp MCP server scans local projects for hardcoded credentials, exposed environment files, and runtime log leaks. It provides separate tools for secret-pattern detection, .gitignore coverage, and suspicious logging, with masked previews instead of full secret values. Use it before asking an agent to inspect configuration or before committing a project.

Use cases

  • Scan source and configuration files for hardcoded credentials
  • Check whether environment files are covered by .gitignore
  • Review debug logs for leaked environment variables
  • Inspect a project before giving its files to an AI agent

Key features

  • Detects 20+ secret and credential patterns
  • Returns masked previews with file paths and severities
  • Checks .gitignore coverage for sensitive files
  • Finds credential-bearing console and logger calls
  • Runs through an npx-based stdio configuration

Tools5

What Env Secret Exposure Analyzer MCP lets your agent do. Expand a tool for its parameters.

Verified live~785 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked 2d ago

Recent health check succeeded.

9/9 checks healthy over the last 61d

What it can do

From the 5 tools this server returned when we ran it.

Runs commands · 1Handles credentials · 5Read-only tools · 4
Unusual tool instructions. 2 tool descriptions contain text aimed at the AI model rather than at you (reaches for local secrets). Read the tool descriptions before connecting.
Network at startup3 connections
Files written at startupNone
Install scriptsprepare
npm provenanceNot published
Package age172 days
Maintainers1

Observed 2026-11-06 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 7d ago via OSV.dev · env-secret-exposure-analyzer-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

npm downloads185Package downloads in the last 30 days.
Last commit5mo agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed5Callable tools this server registers over MCP.

How Env Secret Exposure Analyzer MCP works

What env-secret-exposure-analyzer-mcp MCP server does

The env-secret-exposure-analyzer-mcp MCP server checks a project for common ways credentials can enter an AI agent's context or a source repository. It examines source files, configuration files, and environment files for recognizable secret patterns, reviews whether sensitive files are excluded by .gitignore, and identifies logging statements that may print credentials at runtime.

Findings include a file path, line number where applicable, severity, and a masked preview. The scanner does not return the complete detected value in its results. This makes it useful for reviewing a project without exposing the credential through the tool response itself.

How it works

The server exposes three tools:

  • scan_for_secrets searches for more than 20 types of credential and secret patterns. Supported examples include AWS keys, GitHub tokens, Stripe keys and webhook secrets, Anthropic and OpenAI keys, SendGrid and Twilio credentials, Google API and OAuth secrets, Slack tokens, private keys, database URLs with embedded credentials, JWT and session secrets, encryption keys, Sentry DSNs, Datadog keys, and generic hardcoded secrets.
  • check_gitignore_coverage checks sensitive paths such as .env, .env.local, secrets.json, private keys, and certificates against the project's .gitignore. It reports files that are not covered and suggests entries to add.
  • scan_for_log_leaks searches source code for console.log and logger calls that print process.env values or objects with names associated with secrets. It is intended to catch debug output that could reveal credentials during execution.

A typical review can run all three tools in sequence: identify values in files, verify repository exclusions, and inspect runtime logging. Severity labels in the results include levels such as critical, high, and medium.

Setup and configuration

The env-secret-exposure-analyzer-mcp MCP server can be launched with npx and does not document any required environment variables. Add it to an MCP client configuration using a stdio entry such as:

config.json
{
  "mcpServers": {
    "secret-scanner": {
      "command": "npx",
      "args": ["-y", "env-secret-exposure-analyzer-mcp"]
    }
  }
}

The documented setup uses the package from npm through npx.

Tools and capabilities

Use scan_for_secrets when you need a broad search for credentials in code, configuration, or .env files. Use check_gitignore_coverage to validate that sensitive files are less likely to be committed accidentally. Use scan_for_log_leaks when reviewing debugging code or configuration-loading paths.

The output is designed for triage: it identifies where a risk appears and provides a redacted preview, while leaving the actual secret hidden. Results can therefore guide remediation without reproducing the complete credential in an agent response.

Limitations and notes

The server detects patterns and code forms described by its tools; it is not presented as a general secrets-management system or a replacement for credential rotation. Log analysis focuses on console.log and logger calls involving environment variables or secret-sounding object fields.

The server is MIT licensed.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Env Secret Exposure Analyzer MCP

env-secret-exposure-analyzer-mcp is an MCP server that connects to a local project’s source, configuration, environment, and ignore files. Its main tools scan for secret patterns, check sensitive-file coverage in .gitignore, and detect console or logger calls that may expose credentials, returning masked findings with severity and location details.

Install it through an MCP client with npx by setting the command to `npx` and the argument to `-y env-secret-exposure-analyzer-mcp`. The README provides a stdio JSON configuration and does not list required environment variables.

It scans for hardcoded secret patterns, unsafe sensitive-file coverage, and likely credential leaks in logging calls. Detected examples include cloud and API keys, tokens, private keys, database URLs with credentials, JWT or session secrets, and environment values printed by `console.log` or logger calls.

No, its documented findings use masked previews rather than returning complete detected values. Results include the relevant file path, line number where available, severity, and enough redacted text to help locate the issue.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewEnv Secret Exposure Analyzer MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/env-secret-exposure-analyzer-mcp?style=directory)](https://allmcps.com/mcp/env-secret-exposure-analyzer-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/env-secret-exposure-analyzer-mcp"><img src="https://allmcps.com/api/badge/env-secret-exposure-analyzer-mcp?style=directory" alt="Env Secret Exposure Analyzer MCP on AllMCPs" /></a>