MCP server that scans your project for secret exposure risks — leaked API keys, unprotected .env files, secrets in logs — before your AI agent
Env MCP server is a locally run integration for AI assistants that speak the Model Context Protocol. MCP server that scans your project for secret exposure risks — leaked API keys, unprotected .env files, secrets in logs — before your AI agent accidentally exfiltrates them.
Setup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client.
Once Env is connected, these are the calls the assistant has available:
scan_for_secrets — Scans source files, config files, and .env files for 20+ secret patterns. Returns file path, line number, severity, and a masked preview — never thecheck_gitignore_coverage — Checks whether sensitive files (.env, .env.local, secrets.json, private keys, certificates) are covered by .gitignore. Flags files that could bescan_for_log_leaks — Scans source files for console.log / logger calls that print process.env variables or objects with secret-sounding names at runtime. Catches the mostYou will need one environment variable: AWS_SECRET_ACCESS_KEY. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.
Plenty of monitoring and observability servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. Env's toolset — scan_for_secrets, check_gitignore_coverage, scan_for_log_leaks — is a fair guide to whether it matches your workflow. It is maintained by vola-trebla; worth a glance at recent repository activity before you build anything load-bearing on it.
We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.
| Tool | What it does |
|---|---|
| scan_for_secrets | 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. |
| check_gitignore_coverage | Checks whether sensitive files (.env, .env.local, secrets.json, private keys, certificates) are covered by .gitignore. Flags files that could be accidentally committed. |
| scan_for_log_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. |
| Variable | Description | Required |
|---|---|---|
| AWS_SECRET_ACCESS_KEY | Credential the server authenticates with. | Yes |
Give your coding agent the full DevTools toolbox: traces, network, console, heap snapshots and Lighthouse.
Dashboards, Prometheus and Loki queries, incidents and alerts — observability by conversation.
Errors with full context — stack traces, issue triage and AI-powered root-cause analysis from Sentry's server.
Enables enhanced web research capabilities for large language models through intelligent search queuing and advanced content extraction.
Automates browser interactions and enables Large Language Models (LLMs) to interact with web pages through Playwright and Chrome DevTools Protocol
Guides tool usage by providing recommendations for MCP tools at each problem-solving stage.