mcp-latchpoint is an offline audit tool for MCP client configuration files, whose core characteristic is that the audit process does not execute the servers defined in the configuration and only reads local files explicitly selected by the user, making it suitable for static checks before modifying existing configurations.
Purpose and positioning: The project is positioned as an early-stage defensive tool for discovering common risk patterns in MCP configurations. The official documentation emphasizes that audit results should be reviewed in context, and that a clean report does not mean a server is necessarily secure.
Main capabilities: The v0.1 rules cover the following areas: non-loopback remote endpoints using plaintext HTTP; shell wrappers and inline shell control syntax; recognizable npx and uvx packages without an exact version specified; literal credentials appearing in environment values, headers, arguments, or URLs; filesystem root directories and home directories passed with recognizable access scopes; wildcard hosts and recognizable wildcard scopes; and conflicting, missing, invalid, or unsupported transport settings. Each finding includes a stable rule ID, severity level, location, remediation advice, redacted evidence, and a confidence explanation provided when interpreting the server that would be launched.
Usage: Requires Python 3.11 or later. It can be installed from a local checkout, and a development installation method is also provided. The CLI can scan one or more explicit files, and parameters can be used to restrict each explicit path to approved directories. When scanning directories, only recognizable MCP configuration file names are searched for, up to 256 files, with a default per-file limit of 1 MiB, adjustable via --max-files and --max-bytes. Exit codes are: 0 when the scan completes and is below the selected threshold; 1 when findings satisfy --fail-on; 2 for input, containment, or parsing errors. The default --fail-on none only reports findings without failing the build. Commands to list and explain rules are also provided.
Recognized configuration layouts: Explicit files support multiple structures; .jsonc files are parsed as JSONC, while other .json files remain strictly parsed as JSON. --discover only checks the following paths when they exist: on all systems, ~/.claude.json, ~/.cursor/mcp.json, ~/.codex/config.toml, $COPILOT_HOME/mcp-config.json (falling back to ~/.copilot/mcp-config.json); for the current project, .mcp.json, .codex/config.toml, .cursor/mcp.json, .vscode/mcp.json; Windows, macOS, and Linux each have corresponding Claude Desktop and VS Code configuration paths. It does not search other parts of the home directory.
Read-only MCP server: the stdio server exposes two tools, list_rules and scan, and requires specifying an allowed root directory at startup. Relative scan paths are resolved under that root directory; absolute paths, .. traversal, and symbolic links cannot escape. The server returns discovery and scan metadata, not raw configuration content. stdio is the only server transport exposed by the entry point, and stdout is reserved for MCP protocol messages. The serve command is also the entry point published in the MCP Registry; before connecting clients, --root should be set to an explicitly trusted directory.
Security and limitations: The scanner never executes commands, installs packages, resolves referenced environment variables, or connects to endpoints; it does not follow configuration inclusion relationships, nor does it inspect MCP server code or runtime behavior. Argument-based rules are intentionally limited to recognizable patterns, so custom flags may be missed. Secret detection is designed to output field names and a <redacted> marker rather than concrete values. If a leak or path containment issue is found, handle it according to SECURITY.md, and do not attach real configurations to public issues. The project is under the MIT License.