Claude Desktop runs local MCP servers on your computer, configured in a file called claude_desktop_config.json or installed as extensions. A local server is a program Claude Desktop starts on your machine and talks to over standard input and output. The config entry names the command that starts the server and the folder it may touch, so check both before you save.
What you need
- Claude Desktop installed
- The name of the server package, for example @modelcontextprotocol/server-filesystem
- The absolute path of the folder the server may access
Step 1: Open the config file
Open the Claude menu in your system menu bar, choose Settings, open the Developer tab and click Edit Config. On macOS the file is ~/Library/Application Support/Claude/claude_desktop_config.json; on Windows it is %APPDATA%\Claude\claude_desktop_config.json. The file is created if it does not exist yet.
Step 2: Add the server under mcpServers
Add an entry under the mcpServers object with a command and arguments, for example command npx with args -y, @modelcontextprotocol/server-filesystem and the absolute folder path. Use absolute paths, and put API keys in the env field for that server only.
Step 3: Restart fully and check the list
Quit Claude Desktop completely and start it again; closing the window is not enough. Click the button at the bottom left of the message box, then Connectors, and look for the server in the list.
Worked example: synthetic filesystem server entry
The table below is a synthetic example. It shows the expected result of adding a filesystem server; no server was connected.
| Config field | Value used | Check |
|---|---|---|
| Server name | filesystem | Pass |
| command | npx | Pass |
| args | -y, @modelcontextprotocol/server-filesystem, /Users/alice/Desktop | Pass |
| After restart | Server listed under Connectors | Pass |
Expected result (UNTESTED). the filesystem server appears under Connectors after a full restart, and its tools are listed. This check was not run live; the table shows the expected result for the synthetic example.
Limits
- Local servers run only in Claude Desktop on the machine where they are configured; they do not work on claude.ai.
- The -y flag for npx is required so the package installs without prompting.
- A server only sees the folder named in its arguments; check the path before saving.
- Servers packaged as .mcpb bundles install without editing JSON and are the simpler route when one exists.
