# MCP config file: definition and example

URL: https://mcpservercybersecurity.com/glossary/mcp-config-file/
Updated: 2026-11-16

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.

## 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

- [Connect Claude Code to tools via MCP, Claude Code docs](https://code.claude.com/docs/en/mcp) (code.claude.com), read 2026-11-16

## Related pages

- [Server manifest](/glossary/server-manifest/)
- [npx launcher](/glossary/npx-launcher/)
- [Server pinning](/glossary/server-pinning/)
- [MCP Security Incident Response: Steps for a Bad Server](/guides/mcp-security-incident-response-steps/)
- [All glossary terms](/glossary/)
- [MCP authorization](/glossary/mcp-authorization/)
- [MCP elicitation](/glossary/mcp-elicitation/)
- [Guides](/guides/)
