get/mcp/indexSearch ⌘K

How to add an MCP server to Claude Desktop

To add an MCP server to Claude Desktop, open claude_desktop_config.json: ~/Library/Application Support/Claude/ on macOS, %APPDATA%\Claude\ on Windows, ~/.config/Claude/ on Linux.

Steps

  1. Open claude_desktop_config.json: ~/Library/Application Support/Claude/ on macOS, %APPDATA%\Claude\ on Windows, ~/.config/Claude/ on Linux.
  2. Add the server under mcpServers using the JSON from its page.
  3. Save, then completely quit and restart Claude Desktop so it starts the server.

Checked against Claude Desktop's official MCP documentation on 2026-12-01.

Copy-paste examples

Example: Playwright MCP (local package)

Claude Desktop / Cursor (mcpServers JSON)
{
  "mcpServers": {
    "playwright-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@playwright/mcp"
      ]
    }
  }
}

From the Playwright MCP server page.

Find a server

Every server page on getmcpindex has a ready-made setup for Claude Desktop under Set up in your MCP client. Search all servers, browse categories or remote servers.