Local servers are declared in files such as claude_desktop_config.json, .mcp.json, ~/.claude.json, ~/.cursor/mcp.json, .vscode/mcp.json and the MCP section of Codex config.toml. Parsing them yields the exact command, arguments and environment each server receives. Environment blocks often hold API keys, so record which variables exist and redact the values.
Read in this order
- OfficialVS Code MCP configuration referenceStart here: the exact schema of a VS Code MCP config file.
- OfficialClaude Code: MCP scopes and configurationHow Claude Code scopes server config to user, project and local.
- ArticleInsecure credential storage plagues MCP (Trail of Bits)Evidence of plaintext credentials in MCP config files, and why to redact.