MCP Server Security

MCP config file: definition and example

An MCP config file is the settings file in which a client records its MCP servers: the command or URL for each, its arguments and its environment variables. Clients keep such files at user, project or managed levels, and a project file can arrive with a cloned repository. Whatever the file lists runs with the user's permissions.

Facts read on .

Example

Claude Code's MCP docs say a cloned repository cannot approve its own servers: approval settings committed to the project's .claude/settings.json are ignored in an untrusted folder, and the server stays at Pending approval.

Sources