Back to Blog
Tutorial

How to Set Up MCP in Claude Desktop (Complete 2026 Guide)

January 12, 2026Updated: Jan 13, 202610 min readBy Nikhil Tiwari

📖 TL;DR - Quick Setup

  1. Open Claude Desktop → Settings → Developer → Edit Config
  2. Add MCP servers to claude_desktop_config.json
  3. Restart Claude Desktop completely
  4. Look for 🔨 icon to verify tools are loaded

Claude Desktop supports the Model Context Protocol (MCP), allowing you to extend Claude's capabilities with external tools and data sources. This guide shows you exactly how to set up MCP servers in Claude Desktop, step by step.

Prerequisites

💻
Claude Desktop Latest version Download →
🟢
Node.js 18+ For npm servers
🐍
Python 3.10+ For Python servers

Step 1: Find the Config File Location

Claude Desktop stores MCP configuration in a JSON file. The location depends on your operating system:

🍎 macOS
~/Library/Application Support/Claude/claude_desktop_config.json
🪟 Windows
%APPDATA%\Claude\claude_desktop_config.json

💡 Pro Tip: The easiest way to open this file is through Claude Desktop itself. Go to Settings → Developer → Edit Config.

Step 2: Understand the Config Structure

The config file uses this JSON structure:

{
  "mcpServers": {
    "server-name": {
      "command": "executable",
      "args": ["arg1", "arg2"],
      "env": {
        "API_KEY": "your-api-key"
      }
    }
  }
}
Field Description Example
command The executable to run npx, uvx, node, python
args Array of command-line arguments ["-y", "@server/name"]
env Environment variables {"API_KEY": "xxx"}

Step 3: Add Your First MCP Server

Let's start with a simple example - the filesystem MCP server that lets Claude read and write files:

{
  "mcpServers": {
    "filesystem": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-filesystem",
        "/Users/yourname/Documents"
      ]
    }
  }
}

✅ Result: This gives Claude access to read files in your Documents folder. You can now ask Claude to read, list, or search files!

Copy and paste these ready-to-use configurations for popular MCP servers:

🐙
GitHub MCP Server Connect Claude to your GitHub repositories
{
  "mcpServers": {
    "github": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-github"],
      "env": {
        "GITHUB_PERSONAL_ACCESS_TOKEN": "ghp_your_token_here"
      }
    }
  }
}
Supabase MCP Server Connect Claude to your Supabase database
{
  "mcpServers": {
    "supabase": {
      "command": "npx",
      "args": ["-y", "@supabase/mcp-server"],
      "env": {
        "SUPABASE_URL": "https://your-project.supabase.co",
        "SUPABASE_SERVICE_ROLE_KEY": "your-service-role-key"
      }
    }
  }
}
🎭
Playwright MCP Server Enable Claude to automate browser testing
{
  "mcpServers": {
    "playwright": {
      "command": "npx",
      "args": ["-y", "@playwright/mcp-server"]
    }
  }
}

Step 4: Configure Multiple Servers

You can run multiple MCP servers simultaneously:

{
  "mcpServers": {
    "filesystem": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-filesystem", "/path/to/folder"]
    },
    "github": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-github"],
      "env": { "GITHUB_PERSONAL_ACCESS_TOKEN": "ghp_xxx" }
    },
    "supabase": {
      "command": "npx",
      "args": ["-y", "@supabase/mcp-server"],
      "env": { "SUPABASE_URL": "https://xxx.supabase.co", "SUPABASE_SERVICE_ROLE_KEY": "xxx" }
    }
  }
}

Step 5: Restart Claude Desktop

After saving your config changes:

  1. Completely quit Claude Desktop (not just close the window)
  2. On macOS: Right-click the dock icon → Quit
  3. On Windows: Right-click the system tray icon → Exit
  4. Reopen Claude Desktop

Step 6: Verify Your MCP Servers

To check if your MCP servers are connected:

  1. Open Claude Desktop
  2. Look for the hammer icon (🔨) in the input area
  3. Click it to see available tools
  4. Your MCP server tools should be listed

Troubleshooting Common Issues

❌ MCP server not showing up +
  • Verify your JSON syntax is valid (use a JSON validator)
  • Check that Node.js/Python is installed and in your PATH
  • Make sure you completely restarted Claude Desktop (quit from dock/tray)
  • Check Settings → Developer → Logs for error messages
❌ "Command not found" error +

Use the full path to the executable:

{
  "mcpServers": {
    "github": {
      "command": "/usr/local/bin/npx",
      "args": ["-y", "@modelcontextprotocol/server-github"],
      "env": { "GITHUB_PERSONAL_ACCESS_TOKEN": "ghp_xxx" }
    }
  }
}

Find your npx path: Run which npx (macOS) or where npx (Windows)

❌ Server connects but tools don't work +
  • Check if API keys/tokens in env are correct
  • Verify the API key has the required permissions/scopes
  • Test the MCP server independently using MCP Playground

Security Best Practices

  • Limit file access: Only give filesystem servers access to specific directories
  • Use minimal permissions: Create API tokens with only the scopes you need
  • Review server code: Before running any MCP server, review its source code
  • Don't share your config: Your config contains sensitive API keys

Test Your MCP Servers Online

Before adding an MCP server to Claude Desktop, test it using MCP Playground. This browser-based tool lets you connect to remote MCP servers and test tool calls.

🚀 Ready to test your MCP servers?

Frequently Asked Questions

Where is the Claude Desktop config file located? +
On macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
On Windows: %APPDATA%\Claude\claude_desktop_config.json
The easiest way to open it is via Claude Desktop: Settings → Developer → Edit Config.
How many MCP servers can I run in Claude Desktop? +
You can run multiple MCP servers simultaneously. Simply add each server as a separate entry in the mcpServers object. Claude will load all configured servers on startup and make their tools available.
Do I need to restart Claude Desktop after changing the config? +
Yes, you must completely restart Claude Desktop after any config changes. On macOS, right-click the dock icon and select Quit. On Windows, right-click the system tray icon and select Exit. Then reopen the app.
How do I know if my MCP server is working? +
Look for the hammer icon (🔨) in the Claude Desktop input area. Click it to see the list of available tools. If your MCP server's tools appear in the list, it's working correctly. You can also check Settings → Developer → Logs for any error messages.
Can I use remote MCP servers with Claude Desktop? +
Currently, Claude Desktop primarily supports local MCP servers that run via STDIO (command-line). For remote HTTP/SSE MCP servers, you can test them using MCP Playground in your browser, or use a proxy tool to bridge remote servers to local STDIO.
NT

Nikhil Tiwari

15+ years of experience in product development, AI enthusiast, and passionate about building innovative solutions that bridge the gap between technology and real-world applications. Specializes in creating developer tools and platforms that make complex technologies accessible to everyone.