The short answer
- In Claude Desktop open Settings → Developer → Edit Config. It opens
claude_desktop_config.json(and creates it if it is missing). - Add your server under
mcpServers: acommandand itsargs, for example"command": "npx", "args": ["-y", "@modelcontextprotocol/server-everything"]. - Save, then quit Claude Desktop completely (from the menu bar or the tray, not just the window) and open it again.
- In a new chat, open the + menu → Connectors and check that the server is listed with its tools.
- If it is missing, read
mcp.logandmcp-server-<name>.login the logs folder; on Windows, aspawn npx ENOENTline means you should start it throughcmd /c.
Claude Desktop starts local MCP servers itself, from one JSON file. It reads that file only when it starts, which is the cause of most "I added it and nothing happened" moments.
The live demo loads here when scripts run. The text below says what it shows.
Type your server's name and the command that starts it (or its URL and the name of the variable that holds its key), pick your computer, and copy the result. It applies exactly the rules on this page and runs in your browser: nothing is sent or saved. With scripts off, the examples below are the same shapes.
Where the file lives
| System | Config file | Logs |
|---|---|---|
| macOS | ~/Library/Application Support/Claude/claude_desktop_config.json |
~/Library/Logs/Claude/ |
| Windows | %APPDATA%\Claude\claude_desktop_config.json |
%APPDATA%\Claude\logs\ |
Edit Config in the Developer settings opens the right one, so you rarely need the path.
A local server
{
"mcpServers": {
"everything": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-everything"]
}
}
}@modelcontextprotocol/server-everything is the MCP project's own test server: free, on npm, no key, with an echo tool, so it proves the setup before you add the server you really want. Swap in the command your server's README gives.
If the file already has servers, add yours inside the same mcpServers object, with a comma after the one before it. One missing comma and Claude Desktop starts no servers at all, so paste the file into any JSON checker if in doubt.
Windows: "spawn npx ENOENT"
On Windows, npx is not a program but a script (npx.cmd). A program that starts another without a shell, as an app does, cannot find a script by the bare name, and the log says spawn npx ENOENT. Start it through cmd:
{
"mcpServers": {
"everything": {
"command": "cmd",
"args": ["/c", "npx", "-y", "@modelcontextprotocol/server-everything"]
}
}
}We reproduced both halves on Windows 11: starting npx with no shell failed with ENOENT; starting cmd /c npx … connected and listed the server's tools. Recent Claude Desktop builds may resolve npx on their own. If yours does, keep the short form; if the log shows ENOENT, use this one.
The official MCP docs list one more Windows case: a log line with a literal ${APPDATA} in a path. The fix there is an env entry with your real folder, "APPDATA": "C:\\Users\\<you>\\AppData\\Roaming\\". Note the doubled backslashes: JSON needs them.
A server that needs a key
Claude Desktop's config has no headers field for a local entry, and its Connectors → Add custom connector form takes a URL plus OAuth, not a bearer header. For a server that wants Authorization: Bearer <key>, run a small bridge, mcp-remote, as the local command. It connects to the remote server and adds the header. The example is Clinamen's hosted server, which needs a Clinamen Signature key (sales open at launch); the shape is the same for any server that takes a bearer key:
{
"mcpServers": {
"clinamen": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://mcp.clinamen.dev/mcp", "--header", "Authorization:${AUTH_HEADER}"],
"env": { "AUTH_HEADER": "Bearer <your key>" }
}
}
}Two details matter. ${AUTH_HEADER} is filled in by mcp-remote from the env block, not by Claude Desktop. And Authorization:${AUTH_HEADER} has no space after the colon on purpose: on Windows, a space inside an argument can split it in two on the way through cmd. On Windows, wrap it like the local server: "command": "cmd", "args": ["/c", "npx", "-y", "mcp-remote", …].
The key now sits in plain text in a file in your user folder. That file never goes in a repo, but do not paste it into a support chat. See where keys live.
It still does not show up
- Quit completely. On macOS use Claude → Quit (⌘Q); on Windows, quit from the tray icon. Closing the window leaves the app running with the old config.
- Check the JSON. A trailing comma or a missing quote stops every server.
- Read the logs.
mcp.logsays whether Claude Desktop tried to start the server;mcp-server-<name>.log(heremcp-server-everything.log) holds the server's own messages.
tail -n 30 ~/Library/Logs/Claude/mcp*.logGet-Content "$env:APPDATA\Claude\logs\mcp*.log" -Tail 30- Run the command yourself. Paste the
commandandargsinto a terminal (npx -y @modelcontextprotocol/server-everything). A local MCP server waits for input, printing nothing or one startup line on its error output (the test server saysStarting default (STDIO) server...): that is success. Press Ctrl+C. An error here is the error Claude Desktop hit.
Something here did not work?
Every command on this page was run before it was published, on the systems named in "How we tested this". If a step fails for you, write to [email protected] with what you ran and what you saw, and we will fix the page.