MCPGuard
MCPGuard is a CLI tool that audits MCP (Model Context Protocol) configurations for plaintext credentials and migrates them into the operating system keychain (macOS Keychain, Linux SecretService, Windows Credential Manager). Its `mcpguard audit` command finds exposed API keys, and `mcpguard migrate` moves them to the OS keychain, replacing real keys in the config file with vault references so credentials never touch disk again. Installable via `npm install -g mcpguard-cli`.
What it addresses
API keys for services like GitHub, Linear, and Notion sit in plaintext in ~/.config/claude/claude_desktop_config.json, so anyone with read access to that file (malicious MCP server, compromised dependency, RCE) gets all the keys instantly.
Shared over time
Each entry reflects what was shared on that date. Details may have changed since then.
MCPGuard
MCPGuard is a CLI tool that audits MCP (Model Context Protocol) configurations for plaintext credentials and migrates them into the operating system keychain (macOS Keychain, Linux SecretService, Windows Credential Manager). Its `mcpguard audit` command finds exposed API keys, and `mcpguard migrate` moves them to the OS keychain, replacing real keys in the config file with vault references so credentials never touch disk again. Installable via `npm install -g mcpguard-cli`.
Problem: API keys for services like GitHub, Linear, and Notion sit in plaintext in ~/.config/claude/claude_desktop_config.json, so anyone with read access to that file (malicious MCP server, compromised dependency, RCE) gets all the keys instantly.
Posted by @julien-poitou · Original source ↗
Source text · @julien-poitou · · Source ↗
MCPGuard fixes this: it scans your MCP configs, detects plaintext credentials, and migrates them to your OS keychain (macOS Keychain, Linux SecretService, Windows Credential Manager). $ mcpguard audit # finds exposed keys $ mcpguard migrate # moves them to OS keychain Your config file then has vault references instead of real keys. The credentials never touch disk again.