New Tool Radar

AI Concepts

How to Connect an MCP Server in Claude Desktop with a Config File

Add an MCP server to Claude Desktop by writing its entry in the config file and restarting the app.

Schematic illustration of connect an mcp server in claude desktop with a config file: step one find the config file, step two add the server entry, step three restart and check.

Claude Desktop connects to MCP servers through a config file that lists each server with its command and arguments. You add a server by editing that file, saving it, and restarting the app. The server then appears in the client, and its tools, resources and prompts become available to the model.

Prerequisites

  • Claude Desktop installed.
  • The MCP server’s command, arguments and any environment variables it needs, from the server’s own documentation.
  • A text editor and permission to edit the Claude Desktop config file.

Steps

Step 1: Find the config file

Open Claude Desktop settings and find the MCP configuration file location for your system. Make a backup copy of the file before editing it, so a mistake can be undone.

Step 2: Add the server entry

Add one entry under the servers section with a name, the command that starts the server, and its arguments. Keep the entry minimal: only the arguments the server’s documentation requires.

Step 3: Restart and check the listing

Save the file and restart Claude Desktop. Open the MCP server list and confirm the new server appears and its tools are listed. If it does not appear, re-check the file for a JSON error before changing anything else.

Worked example: Maple Corner bakery server entry

The fictional Maple Corner bakery adds a local file-search MCP server to Claude Desktop so the model can search recipe notes.

Field Value in the entry Checked
Server name maple-recipes Yes
Command npx Yes
Arguments recipe-search-server Yes
Working folder Maple Corner recipe notes Yes

The entry has a name, a command, one argument and a working folder, and the server appears in the client list after restart.

Expected result. The server is listed in Claude Desktop with its tools visible, and the backup of the original config file is kept. UNTESTED: this guide was not run against a live model or API. The worked example below is fictional practice material, and its result is the expected result, not a measured one.

Limits

  • The exact config file path differs by operating system; check Claude Desktop’s own settings for the path on your machine.
  • A JSON syntax error in the file can break every server entry, which is why the backup matters.
  • This guide does not run the server; it only connects it.

Sources

See all