Config Drift Guard MCP
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Config Drift Guard MCP compare my dev.yaml and prod.yaml for configuration drifts"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Config Drift Guard MCP
A read-only Model Context Protocol server for comparing environment configuration without exposing detected secrets.
Capabilities
Parse
.env, YAML, JSON, and Java Properties files.Normalize nested configuration into stable key paths.
Detect added, removed, type-changed, value-changed, and secret-changed entries.
Mask likely credentials, private keys, bearer tokens, and credential-bearing URLs.
Restrict file access to explicitly allowed directories.
Run entirely locally without network requests.
Related MCP server: vault-kv-mcp
Tools
inspect_config
Parse one file and return normalized entries, value types, warnings, and protected values.
compare_configs
Compare a baseline file with a target file and return drift items with risk levels.
scan_secrets
Find likely plaintext secrets while returning only masks and SHA-256 fingerprints.
Install
npm install
npm run buildNode.js 20 or later is required.
Configure
Set CONFIG_DRIFT_ALLOWED_ROOTS to one or more directories. Use the operating system path delimiter (; on Windows, : on Linux and macOS).
# Windows PowerShell
$env:CONFIG_DRIFT_ALLOWED_ROOTS='D:\configs\dev;D:\configs\prod'
node dist/index.js# Linux or macOS
CONFIG_DRIFT_ALLOWED_ROOTS=/srv/config/dev:/srv/config/prod node dist/index.jsIf the variable is omitted, only the current working directory is allowed.
MCP Client Configuration
{
"mcpServers": {
"config-drift-guard": {
"command": "node",
"args": ["/absolute/path/config-drift-guard-mcp/dist/index.js"],
"env": {
"CONFIG_DRIFT_ALLOWED_ROOTS": "/absolute/path/configs"
}
}
}
}Example
The repository includes examples/dev.yaml and examples/prod.yaml.
compare_configs({
"baselineFile": "/absolute/path/examples/dev.yaml",
"targetFile": "/absolute/path/examples/prod.yaml"
})The result distinguishes missing keys, type drift, ordinary value drift, and secret fingerprint changes. Detected secret plaintext is never returned.
Paired Skill
skills/config-drift-remediation converts MCP evidence into:
Expected-environment differences.
Prioritized defects.
Secret-rotation recommendations.
Key-level patch guidance.
A post-change verification checklist.
Security Model
Read-only tools.
No network access.
No expression or script execution.
Maximum input file size of 5 MiB.
Allowed-directory enforcement.
Secret masks and one-way fingerprints only.
No configuration plaintext logging.
Development
npm test
npm run build
npm pack --dry-runLicense
MIT
Available Tools
3 toolscompare_configsCompare configurationsARead-onlyIdempotent
Compare two local config files and classify added, removed, type, value, and secret drift.
Inputs: targetFile (required), baselineFile (required).
inspect_configInspect configurationARead-onlyIdempotent
Parse and normalize a local config file while masking detected secrets.
Inputs: filePath (required).
scan_secretsScan configuration secretsARead-onlyIdempotent
Find likely plaintext credentials and private keys without returning their plaintext values.
Inputs: filePath (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool targets a distinct operation: scanning for secrets, comparing config files, and inspecting a single config. There is no overlap in their purposes, making it easy for an agent to select the correct tool.
All tool names follow a consistent verb_noun pattern (scan_secrets, compare_configs, inspect_config) using snake_case. This predictable structure aids in tool discovery and understanding.
With 3 tools, the server is tightly scoped to config drift detection and secret scanning. Each tool serves a clear, essential function without excess or deficiency for the stated purpose.
The tool set covers the core workflow: scanning secrets, comparing two configs, and inspecting a single config. No obvious gaps exist for the read-only analysis focus of the server.
Related MCP Connectors
One MCP server for all your MCP servers: code mode, per-tool permissions, approvals and audit.
An MCP server that provides read access to your cloud storage providers, bank accounts and more.
Zero-log MCP server with 49 tools for AI guardrails, secret scanning, MCP linting & EU compliance.
491Diff and poisoning detection for MCP servers: catch schema drift and prompt poisoning.
Related MCP Servers
- AlicenseBqualityDmaintenanceA secure, read-only MCP server for browsing and searching files in a specified directory with path traversal protection and .gitignore support.3MIT
- AlicenseAqualityDmaintenanceA read-only MCP server that provides tools to read, list, and inspect secrets from HashiCorp Vault's KV secrets engine (versions 1 and 2) using a Vault token.5MIT
- AlicenseAqualityDmaintenanceA secure, read-only MCP server for AI-powered system monitoring. It provides real-time OS metrics, config discovery, and safe log tailing to enable autonomous infrastructure audits without shell access risks.41ISC
- FlicenseNot gradedqualityCmaintenanceThis MCP server provides read-only access to a single allowed local directory through a secure HTTP gateway, enabling remote MCP clients to read files without syncing them to cloud storage.-