Where Claude Desktop keeps its MCP config
Claude Desktop reads MCP servers from claude_desktop_config.json. The path is the easy part. The surprise is that on current builds the file can hold no servers at all while your extensions work fine. This page covers where it is, what a normal one looks like and how to add a server by hand without breaking it.
| What | macOS | Windows |
|---|---|---|
| Config file | ~/Library/Application Support/Claude/claude_desktop_config.json | %APPDATA%\Claude\claude_desktop_config.json |
| Extensions | ~/Library/Application Support/Claude/Claude Extensions | %APPDATA%\Claude\Claude Extensions |
| Extension on/off state | ~/Library/Application Support/Claude/Claude Extensions Settings | %APPDATA%\Claude\Claude Extensions Settings |
| Format and key | Plain JSON, servers under mcpServers | |
Open the file
From a terminal, on macOS reveal it in Finder, on Windows open it in Notepad. If the file does not exist yet, create it.
open -R ~/Library/Application\ Support/Claude/claude_desktop_config.json
notepad %APPDATA%\Claude\claude_desktop_config.json
Close Claude Desktop before you edit it. The app writes this file itself, and an editor holding an older copy will silently undo whatever the app saved in between.
A config with only coworkUserFilesPath and preferences is normal
On current builds claude_desktop_config.json often has no mcpServers key at all. A file containing only coworkUserFilesPath and preferences is healthy: neither key is an MCP server, and nothing is missing.
That does not mean you have no servers. Servers installed as extensions do not live in this file. Each extension is a bundle in the Claude Extensions folder, its launch command is in the bundle’s manifest.json under server.mcp_config, and whether it is switched on is stored separately in Claude Extensions Settings under an isEnabled flag.
Two consequences are worth knowing. An extension’s arguments often contain ${__dirname}, a placeholder that means the extension’s own folder and is expanded by Claude Desktop at launch, so copying such an argument into another client’s config will not work. And a server you can see in Claude Desktop but cannot find in the JSON is most likely an extension.
Add a server by hand
Add an mcpServers object next to the keys that are already there, and keep those keys. Replacing the whole file with a snippet from a README throws away settings the app wrote.
{
"coworkUserFilesPath": "…keep whatever is already here…",
"preferences": { "…": "…keep this too…" },
"mcpServers": {
"filesystem": {
"command": "/opt/homebrew/bin/npx",
"args": ["-y", "@modelcontextprotocol/server-filesystem", "/Users/you/Documents"]
}
}
}
- Strict JSON. No comments and no trailing commas. A single stray comma makes the whole file invalid, not just the new entry.
- Use the full path to the command. An app launched from the Dock does not inherit your terminal’s
PATH, so a barenpxthat works in your shell is often not found. Runwhich npx(macOS) orwhere npx(Windows) and paste the result. In JSON on Windows, write each backslash twice. - One object per server name. A repeated name is a duplicate key, and which one wins is not something to rely on.
Quit and reopen Claude Desktop afterwards.
If the server still does not appear
Work through these in order: the JSON is valid; the servers sit under mcpServers (not servers, which is VS Code’s key); the command is a full path; and you are looking for a config server rather than an extension. The causes behind a server that works in a terminal and fails in a client are catalogued in why your MCP server is not showing up.
Moving a server to another client
The same definition needs different wrapping elsewhere: VS Code keys servers under servers and allows comments, Codex uses TOML with mcp_servers tables, and Claude Code keeps servers at three scopes. The table of every client is on where every MCP client keeps its config file.