Back to Home
dvalley56 icon

envshield-mcp

Verified Safe

by dvalley56

Overview

Securely expose environment variables to AI coding assistants by acting as a Model Context Protocol (MCP) server, preventing direct access to sensitive data while enabling execution of commands with injected secrets.

Installation

Run Command
npx envshield-mcp

Security Notes

The server employs robust scrubbing of secrets from command output, includes pre-defined and custom regex patterns for detection, and validates custom regexes against ReDoS attacks. Dangerous commands like 'rm -rf' and 'sudo' are blocked by default, using word-boundary-aware matching. A rate limiter helps prevent command flooding, protecting against abuse. The core functionality involves `child_process.spawn` with `shell: true`, which is an inherent risk vector when executing arbitrary commands, but this is mitigated by the command blocking list and the design's focus on containing AI access. A security warning is logged if scrubbing is detected to be ineffective. Overall, it implements a strong set of controls for its stated purpose.

Similar Servers

Stats

Interest Score0
Security Score8
Cost ClassLow
Avg Tokens100
Stars0
Forks0
Last Update2026-01-17

Tags

secrets managementAI securitydeveloper toolsModel Context Protocol (MCP)environment variables