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
- Open
claude_desktop_config.json:~/Library/Application Support/Claude/on macOS,%APPDATA%\Claude\on Windows,~/.config/Claude/on Linux. - Add the server under
mcpServersusing the JSON from its page. - 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.