Claude Desktop MCP: how to add local and remote MCP servers
Claude Desktop runs MCP servers three ways: servers listed in claude_desktop_config.json, one-click desktop extensions, and remote servers added as custom connectors. This guide covers each one, where the config file and logs live, why a server doesn't show up, and what changes after a few servers.

Claude Desktop can use MCP servers in three ways: local servers you list in claude_desktop_config.json, desktop extensions you install from Settings, and remote servers you add as custom connectors. Use the config file or an extension for tools that need your computer, such as local files, and a custom connector for apps that live online.
We checked each step against the MCP documentation and Claude's help center on November 13, 2026, looked at the config file and logs of Claude Desktop 4.23118 on macOS, and ran the official filesystem server from the terminal to measure what it adds to Claude's context.
Three ways to add an MCP server to Claude Desktop
- claude_desktop_config.json. The server runs on your computer. Claude Desktop starts it from the command you write in the file. Any API key goes in the same file, in plain text. Best for local tools and servers you build yourself.
- Desktop extensions (.mcpb). The server also runs on your computer, but you install it in one click from Claude's directory or from a
.mcpbfile. Fields the extension marks as sensitive, such as API keys, are stored in Keychain on macOS or Credential Manager on Windows. Claude Desktop ships its own Node.js, so Node-based extensions need nothing else installed. - Custom connectors. The server runs on the internet, and Claude connects to it from Anthropic's cloud, not from your computer. You add it by URL under Customize > Connectors. Sign-in uses OAuth or fixed request headers, stored encrypted by Claude. The Free plan gets one custom connector, Pro, Max and Ultra can add more, and on Team and Enterprise an owner adds them.
One difference matters more than it looks: servers in claude_desktop_config.json work only in Claude Desktop. Claude's help center says they aren't available in Cowork or claude.ai, while a custom connector follows your account everywhere.
Where is claude_desktop_config.json?
The file is in a different place on each system:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json - Linux:
~/.config/Claude/claude_desktop_config.json
To open it from the app, open Claude's settings: on macOS from the Claude menu in the menu bar, then Settings…; on Windows with Ctrl+Comma, or the menu icon at the top left, then File > Settings. In the older settings layout, the Developer tab has an Edit Config button that opens the file and creates it if it doesn't exist. Newer versions list local servers under Settings > Desktop app, Manage next to Extensions, in the Local MCP servers section. You can always open the file directly at the path above.
One thing the official quickstart doesn't warn about: the file isn't only for MCP anymore. On our Mac, Claude Desktop 4.23118 keeps its own settings in it, under preferences and coworkUserFilesPath. The quickstart tells you to replace the file's contents with its example. Don't. Add an mcpServers key next to what's already there, or you reset Claude's own settings.
How to add a local MCP server
The MCP project's own example is the filesystem server, which lets Claude read and write files in folders you choose.
- Check that Node.js is installed with
node --version. Most servers in the config file start withnpx, which comes with Node.js. - Open
claude_desktop_config.jsonand add the server undermcpServers, keeping the keys that are already there. - Quit Claude Desktop completely and open it again. Closing the window isn't enough: the app loads the config when it starts.
- In a chat, select the + button at the bottom of the message box, then Connectors. Your server should be listed with its tools.
{
"preferences": { "...": "keep what is already here" },
"mcpServers": {
"filesystem": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem",
"/Users/you/Desktop",
"/Users/you/Downloads"
]
}
}
}Each folder path has to be absolute. The server runs with your user's permissions, so it can change anything in those folders that you can.
A server that needs an API key takes it in an env block next to args. That key then sits in the file in plain text and goes wherever the file goes, such as backups. A desktop extension or a custom connector keeps it out of the file.
How to install a desktop extension
- Open Settings > Desktop app and select Manage next to Extensions. In the older layout it's Settings > Extensions.
- Select Browse extensions, pick one Anthropic has reviewed and select Install.
- Fill in any settings it asks for, such as an API key.
For a .mcpb file someone sent you, open the same page, select Advanced settings, then Install Extension… in the Extension Developer section.
How to add a remote MCP server to Claude Desktop
Remote servers are added as custom connectors, the same way as in Claude on the web.
- Open Customize > Connectors, select + Add, then Add custom connector.
- Enter a name and the server's URL, which often ends in
/mcp, and select Continue. - Review the sign-in settings Claude detected, keep them unless the server needs something else, and select Add.
- Select Connect and sign in.
Claude connects to the server from Anthropic's cloud, even in Claude Desktop, so a server on a private network or behind a VPN won't connect. Our guide to Claude connectors covers the sign-in options, tool permissions and errors in detail.
On the Free plan you get one custom connector. If you need a second remote server there, the community package mcp-remote can bridge a remote URL into the config file as if it were a local server. Its README shows this format, with an optional header for servers that take a key:
{
"mcpServers": {
"remote-example": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://example.com/mcp"]
}
}
}That puts the server back in the config file, with the same plain-text and one-machine limits. The README also notes a bug on Windows where spaces inside args aren't escaped, and shows a workaround with an environment variable.
Why your MCP server doesn't show up in Claude Desktop
Work through these in order:
- Quit and reopen Claude Desktop. Fully, from the menu or the dock, not by closing the window.
- Check the JSON. A missing comma or quote is the most common mistake. Paste the file into a JSON validator if in doubt.
- Use absolute paths. The MCP docs say every path in the config has to be absolute, not relative.
- Run the server yourself. Copy the command and arguments from the config into a terminal. When we ran the filesystem server this way, it printed "Secure MCP Filesystem Server running on stdio" and waited for input, which means it starts. An error here is the error Claude Desktop hit.
- Read the logs.
mcp.loghas connection errors andmcp-server-<name>.loghas each server's own output. They're in~/Library/Logs/Claudeon macOS,%APPDATA%\Claude\logson Windows and~/.config/Claude/logson Linux. On macOS,tail -n 20 -f ~/Library/Logs/Claude/mcp*.logfollows them live.
npx -y @modelcontextprotocol/server-filesystem /Users/you/Desktop
# Secure MCP Filesystem Server running on stdioOn Windows, if a log mentions ${APPDATA} in a path, add the expanded APPDATA value to the server's env block, and install npm globally with npm install -g npm if npx keeps failing. Both fixes come from the MCP documentation.
For a custom connector that won't connect, the cause is almost always that Anthropic's cloud can't reach the URL.
What changes after the third server
Setting up one server is easy. The trouble starts at five or six.
- One block per app, per client, per machine. Claude Desktop reads
claude_desktop_config.json. Cursor reads~/.cursor/mcp.json. Codex reads~/.codex/config.toml, in its own format, which our Codex MCP guide covers. Add Gmail, Slack, GitHub and Linear to all three on two laptops and you maintain 24 entries. - Keys in plain text. Every server that takes an API key holds it in that client's file.
- Tool lists fill the context. Each server sends Claude its list of tools, with descriptions and input schemas, and that list goes into every chat where the server is on. We measured the filesystem server: 16 tools, 13,395 characters of definitions, roughly 3,300 tokens before you type anything. A GitHub server with one tool per API endpoint came to about 13,000 tokens when we compared MCP and APIs. Five servers built that way take about 65,000 tokens.
One URL for every app with Lug
Lug is Corsair's personal MCP address. You claim yourname.lug.dev, connect your apps to it once, such as Gmail, Slack, GitHub, Linear, Notion and 700+ more, and add one URL to Claude Desktop instead of a server per app.
- Claim a handle at lug.dev and connect your apps.
- In Claude Desktop, open Customize > Connectors > Add custom connector, and paste your address, such as
https://yourname.lug.dev/work. - Select Connect. Claude sends you to Corsair to sign in and allow that one link.
What that changes, against the list above:
- One entry, in every client. The same URL works in Cursor, Codex, ChatGPT and OpenCode too. Connect or remove an app in Lug and every client on that URL sees the change.
- Paths keep things apart.
/workand/personalare separate paths on one handle, each with its own apps, so the agent you use for work can't reach your personal calendar. - A short tool list. However many apps are connected, Claude sees at most 19 tools. They find and run an app's actions when needed, instead of one tool per action. All 19 come to 18,055 characters (measured November 23, 2026), about a third more than the filesystem server alone, and the list stays that size as you connect more apps.
- Rules on Corsair's side. Each path has a mode: Read, Cautious, Strict or Open. Cautious, the default, lets writes through and holds deletes for your approval, whatever the client allows.
- Tokens stay with Lug. Claude works with tool names, arguments and results. App credentials are attached on Corsair's side and never appear in a reply or in your config file.
On the Free plan, where one custom connector is all you get, that one connector carries every app on the path you add. Keep local servers such as the filesystem server in claude_desktop_config.json; Lug is for the apps that live online.
Claim your address at lug.dev, or read how the MCP server works if you're building it into a product.