How to Install MCP Servers in Claude Desktop

How to install and configure MCP servers in Claude Desktop on macOS and Windows — the config file location, the exact JSON shape, and how to verify your tools loaded.

Where the config lives

{
  "mcpServers": {
    "filesystem": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-filesystem", "/path/to/allowed/dir"],
      "env": {}
    }
  }
}

Step by step

  1. 1

    Open the config file

    In Claude Desktop, go to Settings → Developer → Edit Config. This opens (or creates) claude_desktop_config.json in your text editor. You can also open the file directly at the path for your OS.

  2. 2

    Add the server under mcpServers

    Add an entry inside the "mcpServers" object with a name, a "command", and its "args". Put any secrets in the "env" object rather than inline in the args.

  3. 3

    Save and fully restart Claude Desktop

    Quit Claude Desktop completely (not just the window) and reopen it. MCP servers are only launched on startup, so config edits are ignored until a full restart.

  4. 4

    Verify the tools loaded

    Open a new chat and look for the tools/MCP indicator. If the server shows zero tools or an error, check the MCP log at ~/Library/Logs/Claude/mcp*.log (macOS) or %APPDATA%\Claude\logs (Windows).

Popular MCP servers to try in Claude Desktop

  1. 1
    Moxie Docs MCP
    MCP & Agent Skills for Automated Documentation, and codebase conventions + context
    7 4 2
  2. 2
    S
    Server Gitlabmodelcontextprotocol
    GitLab platform integration for project management and CI/CD operations
    4 4 2
  3. 3
    S
    Server Gitmodelcontextprotocol
    Direct Git repository operations including reading, searching, and analyzing local repositories
    3 0 1
  4. 4
    A
    Astronomy Oraclegregario
    Accurate astronomical catalog data and observing session planner. 13,000+ deep-sky objects from OpenNGC with deterministic visibility, rise/transit/set, and alt/az calculations. npx astronomy-oracle
    3 1 0
  5. 5
    M
    Mcp@agentfund
    Fundraising infrastructure for AI agents on Solana — campaigns, x402 donations, and on-chain reputation. MCP tools for registering agents, creating campaigns, and donating via the x402 pay-to-call flow, backed by Anchor programs (agentregistry, escrow, reputation). npx -y @agentfund/mcp
    5 0 0
  6. 6
    G
    GhidraMCP13bm
    MCP server for integrating Ghidra with AI assistants. This plugin enables binary analysis, providing tools for function inspection, decompilation, memory exploration, and import/export analysis via the Model Context Protocol.
    4 0 0
  7. 7
    C
    Codebeamer Mcp3KniGHtcZ
    Codebeamer ALM integration for managing work items, trackers, and projects. Provides 17 tools for reading and writing items, associations, references, comments, and risk management data via Codebeamer REST API v3.
    4 0 0
  8. 8
    S
    Server Filesystemmodelcontextprotocol
    Direct local file system access.
    4 0 0

Frequently asked questions

Where is the Claude Desktop MCP config file?

On macOS it is ~/Library/Application Support/Claude/claude_desktop_config.json; on Windows it is %APPDATA%\Claude\claude_desktop_config.json. The fastest way to open it is Settings → Developer → Edit Config, which creates the file if it does not exist.

Why does my MCP server show zero tools in Claude Desktop?

The server process usually started but crashed before responding to the tools/list request — commonly a missing environment variable, a bad command path, or non-JSON output on stdout. Open the per-server log at ~/Library/Logs/Claude/mcp*.log to see the actual error.

Do I need to restart Claude Desktop after editing the config?

Yes. Claude Desktop only launches MCP servers at startup, so you must fully quit and reopen the app — closing the window is not enough.

Install MCP servers in other clients

Claude CodeCursorWindsurfVS Code (GitHub Copilot)