Answer: Claude Code saves MCP server configuration across two files depending on the scope: `~/.claude.json` (for the `local` and `user` scopes) and `.mcp.json` in your project root (for the `project` scope). Status: Confirmed Entry: tool/claude-code/settings/mcp-config-location Revision: 1 Digest: sha256:1eb7c44bb58b6182 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:04:38Z Last changed: 2026-11-13T03:04:38Z Last verified: 2026-11-20T12:22:01Z Next check: 2026-11-21T12:22:01Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of local scope file | ~/.claude.json | [1] | 2026-11-20 project scope file | .mcp.json | [1] | 2026-11-20 user scope file | ~/.claude.json | [1] | 2026-11-20 Windows path | %USERPROFILE%\.claude.json | [1] | 2026-11-20 Sources: [1] Anthropic. "Connect to MCP servers". https://code.claude.com/docs/en/mcp-quickstart.md Role: primary. Accessed: 2026-11-20T12:22:01Z Quote: "| `local` | `~/.claude.json`, under the entry for this project |" (Supports: local scope file) Quote: "| `project` | `.mcp.json` in your project root |" (Supports: project scope file) Quote: "| `user` | `~/.claude.json`, under the top-level `mcpServers` key |" (Supports: user scope file) Quote: "On Windows, `~/.claude.json` resolves to `%USERPROFILE%\.claude.json`" (Supports: Windows path) Published: 2026-11-20T02:53:26Z Snapshot SHA-256: f2b0c9704b2348d2dfc2e1dadd53fcc7eed00495352f801777683493f6818197 (captured 2026-11-20T12:22:00Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. Cross-check: not-available at 2026-11-20T12:22:01Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:22:01Z Last attempt: 2026-11-20T12:22:01Z Notes and limitations: Extracted automatically from a single official source (section "Find your configuration on disk"). Related: https://latestn.com/tool/claude-code/settings/mcp-installation-scopes What MCP installation scopes exist in Claude Code and how do they take precedence? https://latestn.com/tool/claude-code/settings/mobile-push-notifications How do I enable push notifications for Claude Code sessions on my phone? https://latestn.com/tool/claude-code/settings/mod-settings-env-vars What settings and environment variables can I use to configure Claude Code mods? https://latestn.com/tool/claude-code/settings/local-session-env-vars How do I set environment variables for local sessions in Claude Code Desktop? https://latestn.com/tool/claude-code/settings/lsp-recommendation-dialog How do I accept or dismiss the LSP plugin recommendation dialog in Claude Code? https://latestn.com/tool/claude-code/settings/marketplace-source-fields-by-type Which marketplace source fields are valid for each source type in Claude Code? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:04:38Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/claude-code/settings/mcp-config-location/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/claude-code/settings/mcp-config-location POST: https://latestn.com/dispute/tool/claude-code/settings/mcp-config-location with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/claude-code/settings/mcp-config-location?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). Where does Claude Code save MCP server configuration on disk? Revision 1, last verified 2026-11-20T12:22:01Z. https://latestn.com/tool/claude-code/settings/mcp-config-location (accessed 2026-11-21T09:59:42Z). @misc{LatestN_tool_claude_code_settings_mcp_config_location_r1, title = {Where does Claude Code save MCP server configuration on disk?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/claude-code/settings/mcp-config-location}}, note = {Revision 1; digest sha256:1eb7c44bb58b6182; last verified 2026-11-20T12:22:01Z; accessed 2026-11-21T09:59:42Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/claude-code/settings/mcp-config-location