swiftapplications

MCP on macOS

Debug an MCP server on macOS: Inspector, logs and the PATH trap

Debug MCP servers on a Mac: run them in the MCP Inspector, read Claude Desktop’s MCP logs, and fix the usual failures (PATH, stdout noise, JSON, permissions).

Updated 8 October 2026 3 min read

The short answer

Run the server under the MCP Inspector (npx @modelcontextprotocol/inspector <command>) to call its tools directly. For Claude Desktop, read ~/Library/Logs/Claude/mcp*.log. Most failures are one of four things: a command not found because GUI apps don’t use your shell PATH, stray output on stdout, invalid JSON in the config, or a macOS permission the server never asked for.

The MCP Inspector

bash
npx @modelcontextprotocol/inspector /path/to/your/server --flag

It opens a local web UI to list and call tools, read resources and watch every message.

Claude Desktop’s logs

bash
ls ~/Library/Logs/Claude/
tail -n 50 -F ~/Library/Logs/Claude/mcp*.log

mcp.log covers connections; mcp-server-<name>.log holds each server’s stderr.

The four usual failures

  1. Command not found. Apps opened from the Dock don’t read ~/.zshrc. Use absolute paths (/opt/homebrew/bin/npx).
  2. Garbled protocol. Something printed to stdout. Send logs to stderr.
  3. Config ignored. A trailing comma or a comment in the JSON config. Validate it with python3 -m json.tool.
  4. Permission errors. The server reaches into Documents or Desktop and macOS blocks it. Check System Settings → Privacy & Security.

The safe way to do this

MoltenRock Connect

One local MCP server for 30 business platforms

Connect holds every key; your agents read Stripe, Shopify and 28 more over MCP and never see one. On Stripe they can only propose, and you approve with Touch ID.

Get MoltenRock Connect

Questions developers ask

Where are Claude Desktop’s MCP logs on Mac?

In ~/Library/Logs/Claude/, as mcp.log and mcp-server-<name>.log.

How do I test an MCP server without an AI client?

Run it with the MCP Inspector: npx @modelcontextprotocol/inspector followed by your server command.

Why does npx work in Terminal but not in my MCP config?

GUI apps don’t load your shell PATH. Use the full path, e.g. /opt/homebrew/bin/npx.