How to add MCP servers to Claude Desktop (local and remote)
Claude Desktop runs on macOS, Windows and Linux. It can start local MCP servers from a config file on your computer, and it can connect to remote MCP servers as "custom connectors".
Checked against the official docs on 2026-11-26. Apps change often; the sources are linked at the bottom.
Where the config file lives
| macOS | ~/Library/Application Support/Claude/claude_desktop_config.json |
| Windows | %APPDATA%\Claude\claude_desktop_config.json |
| Linux | ~/.config/Claude/claude_desktop_config.json |
| Top-level key | mcpServers |
Add a local server (runs on your computer)
- Open the config file
Click the Claude menu in your system menu bar (not the settings inside the chat window), choose Settings…, open the Developer tab and click Edit Config. This creates the file if it doesn't exist yet. - Add the server under "mcpServers"
Each server gets a name, the command that starts it and its arguments. Use absolute paths for folders. Put API keys inenv.{ "mcpServers": { "filesystem": { "command": "npx", "args": ["-y", "@modelcontextprotocol/server-filesystem", "/Users/you/Desktop"] }, "github": { "command": "docker", "args": ["run", "-i", "--rm", "-e", "GITHUB_PERSONAL_ACCESS_TOKEN", "ghcr.io/github/github-mcp-server"], "env": { "GITHUB_PERSONAL_ACCESS_TOKEN": "<your-token>" } } } } - Fully quit and reopen Claude
Closing the window is not enough. Quit from the menu bar or tray, then start Claude again. It only reads the file at startup. - Check that it loaded
Click the Add files, connectors, and more (/) button in the chat box, point at Connectors and choose Manage connectors. Your server and its tools should be listed.
Add a remote server (a URL)
- Open Connectors
Go to Customize → Connectors, click + Add (or Add, then Custom → Web) and choose to add a custom connector. - Enter a name and the server URL
Paste the server's HTTPS URL, for examplehttps://mcp.linear.app/mcp, and click Continue. - Choose how to sign in
Review the sign-in settings Claude detected. Most hosted servers use OAuth. If the server uses an API key instead, add it as a request header. - Connect
Click Add, then Connect and finish the sign-in.
- Custom connectors connect from Anthropic's cloud, not from your computer, so the server must be reachable on the public internet. A server on
localhostor behind a VPN won't work this way (why and what to do). - Custom connectors are available on Free, Pro, Max, Team and Enterprise plans. Free accounts can add one custom connector. On Team and Enterprise plans an owner adds the connector first, then each member connects.
Tips
- Logs: macOS
~/Library/Logs/Claude, Windows%APPDATA%\Claude\logs, Linux~/.config/Claude/logs. Themcp*.logfiles show why a server failed. - On Windows, if a log mentions
${APPDATA}in a path, see this fix. - Since v7.37095.0 (November 24, 2026), tool calls to local servers set up in the app no longer stop with "Request timed out" after 60 seconds; in Chat and Cowork a call can run for up to 3 minutes by default (timeout fixes).
Common problems in Claude Desktop
- MCP server not showing in Claude Desktop
- Fix "spawn npx ENOENT" when starting an MCP server
- MCP servers fail on Windows with npx (use cmd /c)
- Claude Desktop on Windows: ENOENT with ${APPDATA} in the path
- MCP config JSON syntax errors (trailing commas, comments, quotes)
- Claude or ChatGPT can't connect to my localhost MCP server