Skip to content

How to add MCP servers to Claude Desktop and claude.ai

Claude Desktop reads MCP servers from claude_desktop_config.json, under the "mcpServers" key. A local server’s entry is a command with args. Remote servers can also be added in Customize → Connectors → Add → Add custom connector.
Last checked against Anthropic’s docs

Quick facts

Local servers
Yes (stdio)
Remote servers
Streamable HTTP: Yes · SSE: Yes
Sign-in
OAuth: Yes · Headers: PartlyConnectors can sign in with OAuth. Request headers (API keys) are in beta for a limited set of organizations.
Tool approval
Yes
Plans
Custom connectors work on Free, Pro, Max, Ultra, Team and Enterprise plans; Free accounts can add one. On Team and Enterprise, an Owner adds the connector and members connect to it.
Platforms
macOS, Windows, Linux and web

Step by step

Add a remote server

Example: a hosted server whose latest check on AI-Powered answered, Context7.

In Customize → Connectors → Add → Add custom connector

https://mcp.context7.com/mcp

Paste this URL, choose how to sign in, then click Add and Connect. On Team and Enterprise an Owner adds it in Organization settings → Connectors.

Add a local server

Example: a popular npm package that needs no keys, Chrome DevTools MCP.

Add to claude_desktop_config.json

{
  "mcpServers": {
    "chrome-devtools-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "chrome-devtools-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

Add a server that needs an API key or header

Local servers read keys from environment variables. Replace each <NAME> placeholder with your own value in the file on your computer; never paste real keys into a website.

Example: Context7.

Add to claude_desktop_config.json

{
  "mcpServers": {
    "context7": {
      "command": "npx",
      "args": [
        "-y",
        "@upstash/context7-mcp"
      ],
      "env": {
        "CONTEXT7_API_KEY": "<CONTEXT7_API_KEY>"
      }
    }
  }
}

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

Request headers for remote servers: partly. Connectors can sign in with OAuth. Request headers (API keys) are in beta for a limited set of organizations.

Add a server that signs in with OAuth

OAuth sign-in: yes. Add the server by its URL as a remote server, then sign in when asked. Connectors can sign in with OAuth. Request headers (API keys) are in beta for a limited set of organizations.

Config file locations

ForSystemPath
You (every project)macOS~/Library/Application Support/Claude/claude_desktop_config.json
You (every project)Windows%APPDATA%\Claude\claude_desktop_config.json
You (every project)Linux~/.config/Claude/claude_desktop_config.json

Get the config for any server

Search the MCP servers on AI-Powered and copy the Claude Desktop snippet for one.

Adding several servers? Build one config with the MCP config generator.

Servers that work in Claude Desktop

Popular servers with an install config for Claude Desktop and no failing latest check.
  1. REA

    MCP server

    CLI and MCP server that lets coding agents reverse engineer apps and binaries

    Runs locally
    • Open source
    • 476K GitHub stars
    • Developer tools
  2. Browser Use

    MCP server

    Browser agents and cloud browsers for AI, with an MCP server for web tasks

    • 7 tools
    • Remote
    • Freemium
    • 122K GitHub stars
    • Browser automation
  3. MCP server for AI clients to scrape sites with HTTP and stealth browser sessions

    Runs locally
    • 17 tools
    • Open source
    • 105K GitHub stars
    • Web search and scraping
  4. Hosted MCP connector for creating and rendering videos from HTML through AI chat

    • Remote
    • Freemium
    • 89K GitHub stars
    • Design and media
  5. Context7

    MCP server

    Version-specific library docs and code examples piped into coding agents via MCP

    • 2 tools
    • Remote
    • Freemium
    • 65.4K GitHub stars
    • Developer tools
  6. MCP server and CLI that let coding agents drive and inspect a live Chrome browser

    Runs locally
    • Open source
    • 59.1K GitHub stars
    • Browser automation
  7. Codebase Memory

    MCP server

    Local MCP server that builds a code knowledge graph for AI coding agents

    Runs locally
    • Open source
    • 49.1K GitHub stars
    • Knowledge and memory
  8. GitHub

    MCP server

    Official MCP server connecting AI assistants to GitHub repos, issues and workflows

    • Remote
    • Open source
    • 34.7K GitHub stars
    • Developer tools
  9. MCP toolkit giving coding agents symbol-level code retrieval and editing

    Runs locally
    • Open source
    • 31.7K GitHub stars
    • Developer tools
  10. ffmpeg-skill

    MCP server

    Local FFmpeg video and audio editing tools for coding agents over MCP

    Runs locally
    • Open source
    • 10.3K GitHub stars
    • Design and media
  11. Ha MCP

    MCP server

    MCP server for managing and automating Home Assistant from AI assistants

    Runs locally
    • 8 tools
    • Open source
    • 8.1K GitHub stars
    • Productivity
  12. Open-source analytics app where an AI agent builds charts and dashboards from your data

    • Remote
    • Open source
    • 7.8K GitHub stars
    • Analytics and data

Troubleshooting

A local server doesn’t show up
Check that claude_desktop_config.json is valid JSON and uses absolute paths, then quit Claude Desktop completely and open it again.
A local server fails to start
Run the same command in a terminal to see its error, and read mcp-server-<name>.log in the logs folder.
ENOENT with ${APPDATA} in the path on Windows
Add "APPDATA": "C:\Users\<you>\AppData\Roaming" to the server’s env, and make sure npm is installed globally.
A custom connector can’t reach the server
Connectors connect from Anthropic’s cloud, not your computer. The server must be public on HTTPS port 443, or allow Anthropic’s IP ranges.
You need to change a connector’s sign-in or URL
Authentication settings can’t be edited. Remove the connector and add it again.
A local server fails with “npx” (or uvx, docker) not found
Apps started from a dock or menu may not see your terminal’s PATH. Use the full path of the command (run which npx in a terminal to find it), then restart Claude Desktop.
You can’t tell whether the server or Claude Desktop is at fault
Test the server on its own with the MCP Inspector (npx @modelcontextprotocol/inspector). If it lists tools there, check the Claude Desktop setup.

Where to find logs

  • macOS: ~/Library/Logs/Claude (mcp.log and mcp-server-<name>.log)
  • Windows: %APPDATA%\Claude\logs (mcp.log and mcp-server-<name>.log)
  • Linux: ~/.config/Claude/logs (mcp.log and mcp-server-<name>.log)

Safety notes

  • Local servers run with your user account’s permissions. Only give them access to folders you are happy to share.
  • Custom connectors reach unverified services: only add servers from organisations you trust and review the scopes you grant.
  • Choose “Always allow” only for trusted tools, and set tools you don’t need to Blocked on the connector’s page.
  • A local server runs on your computer with your access to files and the network. Add only servers whose source you trust.

Questions about MCP in Claude Desktop

Where is claude_desktop_config.json?

Open Settings from the Claude menu (not the account settings inside the window), go to Developer and click Edit Config. The file is in ~/Library/Application Support/Claude on macOS, %APPDATA%\Claude on Windows and ~/.config/Claude on Linux.

Can I use local servers on claude.ai?

No. claude.ai and the mobile apps only use remote servers added as custom connectors. Local servers run in Claude Desktop.

How many custom connectors can I add on the Free plan?

One. Paid plans have no stated limit.

Can I add a remote server to claude_desktop_config.json?

Remote servers are added as custom connectors in Customize → Connectors. They then work in Claude Desktop, claude.ai and the mobile apps.

What is a .mcpb file?

A desktop extension: a local server packaged as an MCP Bundle. Drag it onto Settings → Extensions in Claude Desktop and click Install.

Can Claude Desktop sign in to MCP servers with OAuth?

Yes. Connectors can sign in with OAuth. Request headers (API keys) are in beta for a limited set of organizations.

Other MCP clients