tutorial
Featured

Claude MCP Setup: Config Files, Servers, and Troubleshooting

Complete guide to Claude MCP. Config file locations, server setup for Claude Desktop and Claude Code, best servers, and troubleshooting guide.

MCPize Team
MCPize TeamCore Team
October 14, 20253 min read
Claude MCP setup guide showing configuration for Claude Desktop and Claude Code

Claude MCP Setup: Config Files, Servers, and Troubleshooting

TL;DR: Edit claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/), add your servers, restart Claude. Start with Filesystem or Context7. 90% of issues are JSON syntax errors or forgetting to restart.

Want Claude to access your files, GitHub repos, or databases? Here's the complete setup guide.

30-second version: Create a config file, add your servers, restart Claude. Done.

Quick Start#

macOS: Create ~/Library/Application Support/Claude/claude_desktop_config.json

Windows: Create %APPDATA%\Claude\claude_desktop_config.json

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

Restart Claude Desktop. Ask: "Show me the latest TanStack Router documentation"

That's it. Claude now gets up-to-date library docs.

Claude MCP setup interface
Claude MCP configuration

Config File Locations#

AppPlatformLocation
Claude DesktopmacOS~/Library/Application Support/Claude/claude_desktop_config.json
Claude DesktopWindows%APPDATA%\Claude\claude_desktop_config.json
Claude CodeAll~/.claude.json (user) or .mcp.json (project)

Open the folder:

  • macOS: open ~/Library/Application\ Support/Claude/
  • Windows: Press Win+R, type %APPDATA%\Claude

Essential Servers#

Start with these — they cover 90% of use cases:

Most Popular Claude MCP Servers
ServerWhat Claude Can DoNeeds Token?
Context7Get up-to-date library docsNo
GitHubManage repos, PRs, issuesYes
PlaywrightAutomate browsers, take screenshotsNo
PostgreSQLQuery your databaseYes (connection string)
MemoryRemember context across sessionsNo

Full Config Example#

Here's a production-ready setup with multiple servers:

{
  "mcpServers": {
    "context7": {
      "command": "npx",
      "args": ["-y", "@upstash/context7-mcp"]
    },
    "github": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-github"],
      "env": { "GITHUB_TOKEN": "ghp_your_token" }
    },
    "playwright": {
      "command": "npx",
      "args": ["-y", "@playwright/mcp"]
    }
  }
}

After restart, Claude gets current library docs, manages GitHub, and automates browsers.

Claude Desktop vs Claude Code#

FeatureClaude DesktopClaude Code
InterfaceGUI appTerminal CLI
Config styleEdit JSON fileRun commands
Best forGeneral usersDevelopers
Setup time~2 minutes~30 seconds

Claude Desktop Setup#

  1. Download from claude.com/download
  2. Edit config file (see locations above)
  3. Restart Claude completely (quit from menu bar)
  4. Look for the hammer icon — MCP is ready

Claude Code Setup#

# Add filesystem access
claude mcp add filesystem -- npx -y @modelcontextprotocol/server-filesystem ~/projects

# Add GitHub with token
claude mcp add github -e GITHUB_TOKEN=ghp_xxx -- npx -y @modelcontextprotocol/server-github

# List all servers
claude mcp list

# Remove a server
claude mcp remove filesystem

One command per server. No JSON editing needed.

MCP server architecture
How Claude connects to MCP servers

Getting GitHub Token#

The GitHub server needs a personal access token:

  1. Go to github.com/settings/tokens
  2. Click "Generate new token (classic)"
  3. Give it repo scope
  4. Copy the token (starts with ghp_)

Add to your config:

"env": { "GITHUB_TOKEN": "ghp_your_token_here" }

Security tip: Use environment variables instead of hardcoding:

"env": { "GITHUB_TOKEN": "${GITHUB_TOKEN}" }

Then set in your shell: export GITHUB_TOKEN="ghp_..."

Troubleshooting#

"Server not appearing"#

CheckFix
Restarted Claude?Quit completely (menu bar), relaunch
Valid JSON?Test at jsonlint.com
Node installed?Run node --version
Correct file path?Check location table above

"Command not found"#

Claude Desktop on macOS sometimes can't find npx. Use absolute path:

{
  "command": "/usr/local/bin/npx",
  "args": ["-y", "@modelcontextprotocol/server-filesystem", "/path"]
}

Find your npx path: which npx

"Permission denied"#

IssueSolution
macOS file accessSystem Preferences → Security → Full Disk Access
Using ~ in pathsUse absolute path: /Users/yourname/...
Folder permissionsCheck with ls -la /your/path

"Server crashes immediately"#

Test manually in terminal first:

npx -y @modelcontextprotocol/server-filesystem /your/path

If it fails here, the server has an issue — not Claude.

View Logs#

  • Claude Desktop (macOS): ~/Library/Logs/Claude/
  • Claude Desktop (Windows): %LOCALAPPDATA%\Claude\Logs\
  • Claude Code: claude mcp logs servername

Common JSON Mistakes#

WrongRight
"args": ["a",] (trailing comma)"args": ["a"]
'value' (single quotes)"value"
C:\Users (backslash)C:\\Users
Missing comma between itemsAdd commas

Always validate your JSON before saving!

Frequently Asked Questions#

Where is the Claude MCP JSON file?#

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json

Can I use MCP with claude.ai (web)?#

No. MCP requires Claude Desktop or Claude Code. The web interface doesn't support servers.

What's the easiest server to start with?#

Filesystem. No tokens needed, just a file path. Immediately useful.

How many servers can I add?#

As many as you want. Just keep the JSON valid and restart after changes.

Why isn't my server working?#

90% of issues: JSON syntax error or didn't restart Claude. Check both first.

Your MCP Toolkit#

TaskRecommended Server
Read project filesFilesystem
Manage repos & PRsGitHub
Remember contextMemory
Query databasesPostgreSQL / SQLite
Automate browsersPlaywright
Fetch web contentFetch
Browse All MCP Servers Build Your Own Server

Related: What is MCP? | Cursor MCP Setup | GitHub MCP Server

Enjoyed this article?

Share it with your network

MCPize Team

MCPize Team

Core Team

The team behind MCPize - building the future of MCP server monetization.

Stay Updated

Get the latest MCP tutorials, product updates, and developer tips delivered to your inbox.

No spam, ever. Unsubscribe anytime.

Related Articles

Continue exploring similar topics

View all articles