MCP.Market

Env Secret Exposure Analyzer MCP server

by vola-trebla·io.github.vola-trebla/env-secret-exposure-analyzer-mcp·v0.2.0

Scans projects for secret exposure: leaked API keys, unprotected .env files, and secrets in logs.

B82/100grade B
What users say
No reviews yet
Be the first
Safety scan
B82/100

full report

Adoption
New

0 stars

Reviews

Write one

Nobody has reviewed Env Secret Exposure Analyzer yet.

If you have run it, two minutes of your experience saves the next person an afternoon.

Env Secret Exposure Analyzer tools (5)

write = sends, deletes, buys or posts

Read from the package source without running it. The installed server may list more.

  • check_gitignore_coverage

    Check whether sensitive files (.env, .env.local, secrets.json, etc.) are properly covered by .gitignore rules. Flags files that contain secrets but could be accidentally committed.

  • scan_ci_workflows

    Scans GitHub Actions (.github/workflows/*.yml), CircleCI (.circleci/config.yml), and GitLab CI (.gitlab-ci.yml) workflow files for dangerous secret interpolation patterns. Detects …} and …} used directly in run: steps (log_leak risk — GitHub Actions logs the expanded plaintext) and …} / issue / commit content interpolated in shell commands (injection risk — attacker-controlled input). Returns file

  • scan_for_log_leaks

    Scan source files for console.log / logger calls that may print environment variables or secrets at runtime. Catches patterns like console.log(process.env.SECRET) or logger.info({ apiKey }) before they reach production logs.

  • scan_for_secrets

    Scan a project directory for hardcoded secrets, API keys, tokens, and passwords. Detects patterns like AWS keys, GitHub tokens, Stripe keys, private keys, and generic high-entropy strings. Returns file path, line number, severity, and a masked preview.

  • scan_git_history

    Scan the git commit history of a repository for secrets that were ever committed, even if later deleted. Detects hardcoded API keys, tokens, passwords, and other credentials added in diff hunks across recent commits. Returns each finding with its commit hash, file, line, severity, a masked preview, entropy score, whether the secret is still present in the working tree, and whether rotation is requ

Public scan report

scanner v0.1.9 · 2026-09-27 · same rubric, same numbers if you re-run it

no findings
  • Code scan11 source files scanned25/25
  • –Live reliabilityno gateway calls yet and no remote to proben/a
  • –Tool poisoningtools not inspected (local package is not executed); not countedn/a
  • Auth qualitylocal package, no credentials required12/15
  • Maintenancelast push 130 days ago8/15
  • Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
Overall 82/100. Components that don't apply are left out of the denominator. Any critical finding is an F.RubricAppeal a findingJSON

How Env Secret Exposure Analyzer compares

Against every graded Security MCP server, from our own scans and uptime checks. Updated after each scan run.

Safety score
82/100
higher than 66% of 918 Security servers
Tools
5
the typical Security server has 6
Tools that change things
0%
typical: 0%. Fewer write tools means less an agent can break

What its tools let an agent do: 5 read

Install Env Secret Exposure Analyzer in Claude Code, Cursor or VS Code

Runs npx -y env-secret-exposure-analyzer-mcp on your machine. Read the scan report first; the gateway never runs local packages.

claude mcp add env-secret-exposure-analyzer-mcp -- npx -y env-secret-exposure-analyzer-mcp
Add to Cursor

What the publisher says

From the Env Secret Exposure Analyzer repository's README, as published. We do not edit it. Read it on GitHub

🔐 env-secret-exposure-analyzer-mcp

Your AI agent is one debug session away from leaking your secrets.

MCP server that scans your project for secret exposure risks — hardcoded API keys, unprotected .env files, and console.log calls that print credentials at runtime. Before your agent accidentally reads them out loud.

🤔 The problem

You ask your AI agent to debug a config issue. It reads src/config.ts. Inside:

console.log('Config loaded:', JSON.stringify(config));
console.log(process.env.DATABASE_PASSWORD);

The agent now has your database password in its context. It might log it, include it in a summary, or pass it to another tool. And your .env isn't in .gitignore, so the next git push will do the rest.

None of this requires the agent to be malicious. It just needs to be helpful.

env-secret-exposure-analyzer-mcp catches this before it happens. 🔐

🛠️ Tools

scanforsecrets

Scans source files, config files, and .env files for 20+ secret patterns. Returns file path, line number, severity, and a masked preview — never the full value.

Detects:

  • AWS access keys + secret keys
  • GitHub tokens (ghp, gho, ghs_)
  • Stripe secret/publishable keys + webhook secrets (whsec_)
  • Anthropic, OpenAI API keys
  • SendGrid (SG.xxx), Twilio auth token + account SID
  • Google API keys + OAuth client secrets (GOCSPX-)
  • Slack tokens (xox*)
  • Private keys (-----BEGIN ... PRIVATE KEY-----)
  • Database URLs with embedded credentials (postgres://user:pass@host)
  • JWT secrets, session secrets, encryption keys
  • Sentry DSN, Datadog API key
  • Generic hardcoded passwords, secrets, tokens
Secret Scan Results
  Project:       /project
  Files scanned: 24
  Findings:      5

  [CRITICAL] .env:3 — AWS Access Key
    Preview: AKIA****MPLE
  [CRITICAL] .env:7 — Database URL with password
    Preview: post****sswd
  [CRITICAL] src/auth.ts:12 — Hardcoded JWT secret
    Preview: my-s****ecret
  [HIGH] .env:14 — Hardcoded session secret
    Preview: sess****key!
  [MEDIUM] .env:28 — Sentry DSN
    Preview: http****7890

checkgitignorecoverage

Checks whether sensitive files (.env, .env.local, secrets.json, private keys, certificates) are covered by .gitignore. Flags files that could be accidentally committed.

Gitignore Coverage Check
  Project: /project

  ✗ .env → Add to .gitignore: .env
  ✗ .env.local → Add to .gitignore: .env.local
  ✓ secrets.json

scanforlog_leaks

Scans source files for console.log / logger calls that print process.env variables or objects with secret-sounding names at runtime. Catches the most common "it's just a debug line" mistakes.

Log Leak Scan
  Project:       /project
  Files scanned: 18
  Findings:      3

  [CRITICAL] src/config.ts:8
    console.log("Config loaded:", JSON.stringify(config));
  [HIGH] src/server.ts:42
    console.log(process.env.AWS_SECRET_ACCESS_KEY);
  [HIGH] src/db.ts:15
    logger.info({ password: dbConfig.password });

🧪 What it looks like in practice

A realistic .env with 20 secrets — database URLs, AWS, Stripe, Twilio, SendGrid, Google OAuth, Sentry, JWT secrets, encryption keys. Before this MCP: an AI agent reads the file, has no idea what's sensitive, and proceeds to use those values in generated code or responses.

After one scanforsecrets call: 16 findings, all categorized by severity, all previews masked. The agent knows exactly what's dangerous before it touches anything.

⚡ Setup

Shortened. The full README is on GitHub.

Nothing above is checked by us. What we check is on the safety report.

Env Secret Exposure Analyzer: common questions

Is Env Secret Exposure Analyzer MCP server safe?
Mostly: it is graded B (82/100). Read the Env Secret Exposure Analyzer safety report
How do I install Env Secret Exposure Analyzer?
It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
Does Env Secret Exposure Analyzer need an API key?
Not as far as the registry entry and our scan can tell: no credentials are declared or required.
Is Env Secret Exposure Analyzer maintained?
The last commit was 166 days ago (2026-05-20). The latest release is v0.2.0.
What can I use instead of Env Secret Exposure Analyzer?
Servers from other publishers that do the same job: Secret Scanner MCP server, Secret Scanner MCP server and Keyspoor MCP server.
How does Env Secret Exposure Analyzer compare with other Security MCP servers?
safety score 82/100 (higher than 66% of 918 Security servers); tools 5 (the typical Security server has 6); tools that change things 0% (typical: 0%. Fewer write tools means less an agent can break). Full comparison.

Alternatives to Env Secret Exposure Analyzer

Same job from other publishers: the closest match first, then the best rated.

  • Secret Scanner
    Scans files for leaked secrets and API keys
    A
  • Secret Scanner
    Scans files for leaked secrets and API keys
    A
  • Keyspoor
    Offline secret scanning for AI agents. Redacted findings; scans text and files in a chosen root.
    A
  • Jikida
    Security tools for your AI: scan, pentest, check headers, guard code and scan repos for secrets.
    A
  • Skylos
    Dead code, security, secrets detection and code quality for Python, TypeScript, Go.
    C

More from vola-trebla →