How to add an MCP server to Claude Desktop (step by step)
By Destiny Studio ·

Claude Desktop reads its local MCP servers from one file, claude_desktop_config.json. Adding a server takes about two minutes.
1. Open the config file
In Claude Desktop open Settings → Developer → Edit Config. Claude opens claude_desktop_config.json in your editor.
2. Paste the server
Servers go under mcpServers. This example adds the reference Filesystem server for one folder:
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-filesystem", "/Users/you/Projects"]
}
}
}Already have servers? Add the new one inside the same mcpServers object, separated by a comma.
3. Add keys and settings
Many servers need an API key. Put it in an env block next to command and args, for example "env": { "NOTION_TOKEN": "your-token" }. Never paste keys into the chat.
4. Restart and check
Quit Claude Desktop completely and open it again. Start a new chat and open the tools menu: the server and its tools should be listed. Claude asks before it runs a tool.
Hosted servers: use Connectors
If a server has a URL (a hosted server), you don't need the file at all. Open Settings → Connectors → Add custom connector, paste the URL and sign in if asked.
Common problems
- Nothing appears — check the JSON with a validator; one missing comma breaks the whole file.
- "command not found" — install Node.js (for
npx), uv (foruvx) or Docker, depending on the server. - It worked, then stopped — the server may need a newer version; remove the version pin or update it.
Every server page on MCP Server Studio has a ready-made Claude Desktop block you can copy.
Frequently asked questions
Where is claude_desktop_config.json?
Open Claude Desktop, go to Settings, then Developer, then Edit Config. Claude opens the file for you, so you do not need to find the folder yourself.
Why does my MCP server not show up in Claude Desktop?
Usually the JSON is invalid, the command is not installed (for example Node.js for npx or uv for uvx), or Claude was not fully restarted. Fix the file, quit Claude completely and open it again.
Can I add a hosted MCP server without editing files?
Yes. Hosted servers with a URL can be added under Settings, Connectors, Add custom connector, where you paste the server URL and sign in if asked.