Guide
How to Add an MCP Server to Claude Code on Mac
The exact claude mcp add syntax for local and remote servers, the three scopes, and how to check a server is connected.
Updated by Pulkit
The short answer
Run claude mcp add in your terminal. For a server that runs as a local program, put its command after --. For a remote server, pass --transport http and its URL. Then type /mcp inside Claude Code to confirm it connected. This guide covers the syntax, the scopes, and how to connect Edith's own MCP server, plus the Claude Code skills that teach Claude how to use it.
Adding a local (stdio) server
Built into Claude Code
claude mcp add with --
A stdio server is a program Claude Code starts and talks to over standard input and output. The form is claude mcp add [options] <name> -- <command> [args...]. Everything after -- goes to the server untouched, so flags meant for the server are not read as Claude Code options.
claude mcp add --env AIRTABLE_API_KEY=YOUR_KEY --transport stdio airtable -- npx -y airtable-mcp-serverclaude mcp add --env KEY=value --transport stdio myserver -- python server.py --port 8080--env, or -e, sets environment variables for the server and accepts several KEY=value pairs. Put another option between --env and the server name, as in the examples, so the name is not read as one more variable.
Adding a remote (HTTP) server
claude mcp add --transport http notion https://mcp.notion.com/mcpclaude mcp add --transport http secure-api https://api.example.com/mcp --header "Authorization: Bearer your-token"--header, or -H, sends a request header such as a token. Servers that use OAuth sign you in from the /mcp screen inside Claude Code. The SSE transport still exists for older servers but Anthropic marks it as deprecated in favour of HTTP.
Choosing a scope
--scope, or -s, decides who sees the server:
- local, the default: only you, only in the current project. Stored in
~/.claude.json. - project: everyone working in the project, through a
.mcp.jsonfile at the project root that you commit. - user: only you, in every project. Also stored in
~/.claude.json.
A tool that works on your whole Mac, rather than one repository, belongs in user scope.
Checking and removing servers
claude mcp listclaude mcp get notionclaude mcp remove notionInside a session, /mcp shows each server's status, handles OAuth sign-in, and with /mcp reconnect all retries servers that failed. If you already have a JSON definition, claude mcp add-json takes it directly. Anthropic's MCP documentation covers every flag.
Where it gets awkward
- Every client is different. Claude Code stores servers in
~/.claude.json, Codex in~/.codex/config.toml, Cursor in~/.cursor/mcp.json. Adding one server to three agents is three different edits. - You need the exact command. A wrong path to the server binary fails quietly until you open
/mcp. - Tools are not instructions. A server gives Claude tools, but not the habits for using them well, such as previewing a destructive action before running it.
The Edith way: one click for every agent
Edith ships an MCP server inside the app. Every ed command becomes a tool named after its route, so ed usage limits is edith_usage_limits and ed machines ls is edith_machines_ls. The Edith MCP server page lists what it exposes.
- 1
Open Settings, then Tools
The Coding agents section lists Claude Code, Codex, Cursor and VS Code, and shows whether each one is installed on this Mac and connected.
- 2
Press Connect next to Claude Code
Connect adds Edith to the agent's tools in user scope. Connect all does the same for every agent found on this Mac that is not connected yet. Edith changes only its own entry, keeps a backup copy of the file, and leaves a file it cannot parse untouched. Disconnect removes it again.
- 3
Restart the client and check
Restart Claude Code, type
/mcp, and look foredith. Then ask Claude what Edith can do. - 4
Teach Claude how to use it
Open the Plugins page, press Preview on a skill such as Edith Remote Work to read it, then press Install and choose the agents that should get it.
From the terminal
Prefer Claude Code's own command? Edith is a normal stdio server in user scope, pointing at the ed binary inside the app. ed mcp install does what the Connect buttons do, and --dry-run prints the exact entry first.
claude mcp add --scope user edith -- /Applications/Edith.app/Contents/MacOS/ed mcped mcp install --client all --dry-runed mcp statused skills install edith-remote-work --agent claude-code --yesWhat Claude can do once it is connected
With Edith connected, you can ask Claude Code to check its own limits through Usage, run a command on a server you added in Machines, or install an extension, which it will preview and ask you about before confirming. The Claude Code on Mac page has more, and running multiple Claude Code agents works well with a shared MCP setup in user scope.
Common questions
Why put Edith in user scope rather than project scope?
Edith works on your Mac as a whole, not on one repository, and a project-scope .mcp.json would be committed for teammates who may not have Edith installed.
Do I need ed on my PATH?
No. The Connect button and the commands above point at the binary inside /Applications/Edith.app, so the server works whether or not ed is linked onto your PATH.