Skip to content
MCP Shelf

Set up your app

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. 1. Pick a server

    Find one on the shelf and open its page.

  2. 2. Open the config

    Settings → Developer → Edit Config.

  3. 3. Paste and save

    Add it inside "mcpServers".

  4. 4. Quit and reopen

    Quit fully from the menu bar or tray, not just the window.

Local servers: edit the config file

  1. Step 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. Step 2: Add your server inside "mcpServers" and save the file.
  3. Step 3: Quit Claude Desktop completely (from the menu bar or system tray, not just the window) and open it again.
  4. Step 4: Open the tools menu in the message box to see the server and its tools.
SystemConfig 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" }
    }
  }
}

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, use Settings → Connectors → Add custom connector and paste the URL. Claude handles sign-in if the server needs it. Custom connectors depend on your plan.

The config file only starts programs, so a "url" entry there is ignored. If you cannot add a connector, or the server wants a fixed key header that connectors cannot send, 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.
SystemLog 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. To rule Claude out, test the same config in MCP Inspector.

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.

Plant Your First Pea

Every server on the shelf has a tab with the exact config for your app.

Browse servers

For bots & AI agents

Machine-readable versions of this guide and MCP Shelf. Fetch these instead of parsing this page.

This guide (.md)llms.txtllms-full.txtai.txtFull catalog (.md)API specMCP serverMCP manifestDeveloper docs