---
title: "Claude Desktop MCP Setup: Config File, Paths and Fixes"
url: "https://mcpshelf.co/guides/claude-desktop"
description: "Add MCP servers to Claude Desktop: where claude_desktop_config.json lives on Mac, Windows and Linux, API keys, extensions, remote URLs, logs and fixes."
updated: "2026-11-01"
site: "MCP Shelf"
---

# Adding MCP servers to Claude Desktop

By Sophie Filer · Updated 1 Nov 2026

Claude Desktop reads local MCP servers from claude_desktop_config.json. Remote servers can also be added as connectors in Settings without touching the file.

- **Config file:** `claude_desktop_config.json`
- **Open it from:** Settings → Developer → Edit Config
- **Local servers:** Yes
- **Remote URLs:** As connectors

**At a glance:**

1. **Pick a server.** Find one on the [shelf](https://mcpshelf.co/servers) and open its page.
2. **Open the config.** Settings → Developer → Edit Config.
3. **Paste and save.** Add it inside `"mcpServers"`.
4. **Quit and reopen.** Quit fully from the menu bar or tray, not just the window.

## Local servers: edit the config file

1. In Claude Desktop open Settings, then Developer, then Edit Config. Claude creates the file if it does not exist yet and shows it in your file manager.
2. Add your server inside "mcpServers" and save the file.
3. Quit Claude Desktop completely (from the menu bar or system tray, not just the window) and open it again.
4. Open the tools menu in the message box to see the server and its tools.

| System | Config file |
| --- | --- |
| macOS | ~/Library/Application Support/Claude/claude_desktop_config.json |
| Windows | %APPDATA%\Claude\claude_desktop_config.json |
| Linux | ~/.config/Claude/claude_desktop_config.json |

```
{
  "mcpServers": {
    "playwright": {
      "command": "npx",
      "args": ["-y", "@playwright/mcp@latest"]
    }
  }
}
```

Each server page on MCP Shelf has a Claude Desktop tab with the block to paste. If you already have servers, add the new entry inside the same "mcpServers" braces, with a comma after the one before it.

## Servers that need an API key

Put the key in an "env" block next to the command. Claude Desktop passes those values to the server when it starts it. The file sits in your user folder rather than in a project, so it does not end up in git, but anyone with access to your account can read it.

```
{
  "mcpServers": {
    "firecrawl": {
      "command": "npx",
      "args": ["-y", "firecrawl-mcp"],
      "env": { "FIRECRAWL_API_KEY": "fc-your-key" }
    }
  }
}
```

> **Watch out:** A key you exported in your terminal (in .zshrc or .bashrc) does not reach Claude Desktop, because it does not start from your shell. Put it in "env".

## One-click installs: desktop extensions

Some servers are packaged as a desktop extension, a single .mcpb file (older ones end in .dxt). Open Settings, then Extensions, to browse the directory or install a file you downloaded. Claude Desktop brings its own Node.js for these and shows a form for any keys, so you never edit the JSON.

## Remote servers: add a connector

For servers with a URL, open Customize → Connectors, add a custom connector and paste the URL. Claude handles sign-in if the server needs it, and can send a fixed API key as a request header. Free accounts get one custom connector. [Adding custom connectors to Claude](https://mcpshelf.co/guides/claude-connectors) has every step.

The config file only starts programs, so a "url" entry there is ignored. If you cannot add a connector, or the server is only reachable from your own network, [mcp-remote](https://mcpshelf.co/guides/mcp-remote) bridges a URL into a local command:

```
{
  "mcpServers": {
    "context7": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://mcp.context7.com/mcp"]
    }
  }
}
```

## If nothing appears

- Check the JSON is valid; a single stray comma breaks the whole file, and every server in it disappears.
- Use full paths for commands and files. Claude Desktop does not start from your project folder.
- On macOS, if npx or uvx is "not found", give the full path (run `which npx` in a terminal to get it).
- On Windows, if a server started with npx fails, run it through cmd: `"command": "cmd"` with `"/c", "npx"` at the start of args. If the log mentions ${APPDATA}, add `"APPDATA": "C:\\Users\\you\\AppData\\Roaming\\"` to the env block.
- Read the logs: mcp.log covers connections, and mcp-server-NAME.log holds everything that server printed.

| System | Log folder |
| --- | --- |
| macOS | ~/Library/Logs/Claude |
| Windows | %APPDATA%\Claude\logs |
| Linux | ~/.config/Claude/logs |

Follow the logs live on macOS:

```
tail -n 20 -F ~/Library/Logs/Claude/mcp*.log
```

For the exact error messages and what each one means, see [Fixing MCP server errors](https://mcpshelf.co/guides/mcp-server-errors). To rule Claude out, test the same config in [MCP Inspector](https://mcpshelf.co/guides/test-an-mcp-server).

## Popular servers to try in Claude Desktop

| Server | What it gives your assistant | You need |
| --- | --- | --- |
| [Sequential Thinking](https://mcpshelf.co/servers/sequential-thinking) | A numbered scratchpad the model fills in, revises and branches while it works. | Node.js 24 or newer (the package asks for it) |
| [Context7](https://mcpshelf.co/servers/context7) | Pulls current, version-specific library docs into the conversation. | Node.js 22.13 or newer for the ctx7 setup command, or Node.js 18 or newer for the local server alone |
| [Playwright MCP](https://mcpshelf.co/servers/playwright) | Microsoft's browser automation server: navigate, click, type, read. | Node.js 18 or newer |
| [GitHub](https://mcpshelf.co/servers/github) | GitHub's own server for repos, issues, pull requests and Actions. | A GitHub account |
| [Blender MCP](https://mcpshelf.co/servers/blender) | Prompt-driven modelling in a running copy of Blender. | Blender 3.0 or newer |
| [Serena](https://mcpshelf.co/servers/serena) | IDE-style "find symbol" and "edit symbol" for an agent, backed by language servers. | uv, which installs Serena and the Python 3.13 it runs on |
| [MCP Toolbox for Databases](https://mcpshelf.co/servers/mcp-toolbox-for-databases) | Google's toolbox for Postgres, MySQL, BigQuery, Spanner and other databases. | Node.js 18 or newer |
| [Framelink Figma MCP](https://mcpshelf.co/servers/framelink-figma) | Feeds Figma layout and styling to coding agents so the UI matches the design. | A Figma personal access token |

## Questions

### Is claude_desktop_config.json the same format as Cursor's mcp.json?

Yes, the "mcpServers" block is identical, so entries copy across unchanged.

### The config file does not exist. Should I create it?

Use Settings → Developer → Edit Config and Claude Desktop creates it in the right folder. If you make it by hand, start with { "mcpServers": {} } and add servers inside the braces.

### Do I need to restart Claude Desktop after every change?

Yes. It reads the file only at start-up, and closing the window is not enough: quit it from the menu bar or system tray, then open it again.

### Do servers in Claude Desktop also work in Claude Code?

Not automatically: they keep separate lists. In Claude Code, claude mcp add-from-claude-desktop copies them across on macOS and WSL.

---

From [MCP Shelf](https://mcpshelf.co/): A short shelf of MCP servers that are worth installing. Index for agents: https://mcpshelf.co/llms.txt

