# Connect Claude Code to Edith over MCP

> Connect Claude Code to the Edith MCP server from Settings > Tools or with ed mcp install, test a tool, and see how previews and confirm keep changes safe.

- Canonical URL: https://getedith.pro/docs/tutorials/connect-claude-code-over-mcp
- Updated: 2026-12-03

When you finish, Claude Code can call Edith's tools: read your usage limits, list your machines, search your clipboard and anything else your enabled extensions offer. Changes still wait for a confirm. If you would rather click than type, Edith connects agents from **Settings > Tools** too; see [Connect from the Settings window](#connect-from-the-settings-window). You need Edith installed with `ed` working (see [Set up a new Mac](https://getedith.pro/docs/tutorials/set-up-a-new-mac)) and Claude Code installed on this Mac. For how MCP servers work in Claude Code in general, read [How to add an MCP server to Claude Code](https://getedith.pro/guides/add-mcp-server-claude-code).

## Turn on the extensions you want the agent to use

Edith's MCP server only offers tools for extensions you have enabled, plus built-in ones such as `edith_catalog`. Turn on the ones you want first, from **Library** with **Install**, or from the terminal:

```terminal
$ ed extensions ls
$ ed extensions install usage
$ ed extensions install machines
```

You can add more later. The server tells the agent when its tool list changes.

## Preview the registration

`ed mcp install` writes an `edith` entry into the client's settings file. Preview it first. `--dry-run` prints the entry and changes nothing:

```terminal
$ ed mcp install --client claude --dry-run
```

For Claude Code the entry is a user-scope `mcpServers.edith` entry in `~/.claude.json`, so it works in every project. It runs `ed mcp` from the installed app, `/Applications/Edith.app/Contents/MacOS/ed`, so it keeps working whether or not `ed` is on your `PATH`.

## Register Edith with Claude Code

Run the same command without `--dry-run`:

```terminal
$ ed mcp install --client claude
```

Edith copies `~/.claude.json` to `~/.claude.json.edith-backup`, changes only the `edith` entry and keeps every other server and setting. Claude Code rewrites that file often, so Edith retries if the file changes while it writes.

If the file is not plain JSON, Edith leaves it alone, exits 1 and prints the exact entry to paste yourself.

### Connect from the Settings window

In the Developer profile, Edith can do the same without a terminal:

1. Open **Settings > Tools**.
2. Under **Coding agents**, find Claude Code. Each agent shows **Installed on this Mac** or **Not found on this Mac**, and its status.
3. Press **Connect**. The status changes to **Connected**.

When more than one agent is waiting, **Connect all** connects every agent found on this Mac. To open that section from the terminal:

```terminal
$ ed app reveal settings --tab tools
```

## Register your other agents

In **Settings > Tools**, press **Connect** next to each agent. The same command covers Codex, Cursor and VS Code:

| Client      | `--client` | Where the entry goes                                                  |
| ----------- | ---------- | --------------------------------------------------------------------- |
| Claude Code | `claude`   | `mcpServers.edith` in `~/.claude.json`                                |
| Codex       | `codex`    | `[mcp_servers.edith]` in `~/.codex/config.toml`                       |
| Cursor      | `cursor`   | `mcpServers.edith` in `~/.cursor/mcp.json`                            |
| VS Code     | `vscode`   | `servers.edith` in `~/Library/Application Support/Code/User/mcp.json` |

`--client all` registers every client found on this Mac and skips the rest:

```terminal
$ ed mcp install --client all --dry-run
$ ed mcp install --client all
```

## Check the connection

```terminal
$ ed mcp status
```

Each client shows as `registered`, `registered, different command`, `not registered`, `client not found` or `config not readable`. The last line names the command to run next. `registered, different command` means the entry points at another `ed`, such as a moved app. Run `ed mcp install` again to fix it.

**Settings > Tools** shows the same status next to each agent: **Connected**, **Not connected**, **Points at another Edith** or **Settings file unreadable**. Press **Connect** to fix an entry that points at another Edith, or **Check again** after you repair an unreadable file.

Restart Claude Code so it loads the server. Inside a session, type `/mcp` to see that `edith` is connected.

## Test a tool

Ask Claude Code to call `edith_catalog`. It lists every extension with its status (`enabled`, `installed` or `available`), a summary and example `ed` commands. That is the agent's first step every time: discover, then call.

Then ask for something real, for example "What are my Claude rate limits right now?". The agent calls `edith_usage_limits`. Each tool is named after its command, so `ed usage limits` becomes `edith_usage_limits`, and `ed machines ls` becomes `edith_machines_ls`. A tool takes an `arguments` array with the words that follow the command. This call is the same as `ed usage limits --refresh`:

```json
{ "arguments": ["--refresh"] }
```

The tool runs the command with `--json` and returns the JSON unchanged, so the agent sees exactly what you would see from:

```terminal
$ ed usage limits --json
```

If a command fails, the tool result carries the same `error:` and `hint:` lines you would see in a terminal, marked as an error.

## See how changes are confirmed

Commands that change or remove something keep the command line's safety model. Their tools return a preview first. They apply only when the call passes `confirm: true`, which adds `--yes`. A call that slips `--yes` into `arguments` is refused, so `confirm` is the only way to apply.

Installing, updating, enabling, disabling and removing extensions follow the same rule. Try it: ask Claude Code to install an extension you do not have. It should show you the preview and ask before it confirms. After the install, the server announces that its tool list changed and the agent lists tools again.

> **Tip:** Commands that only read run as soon as they are called, so Claude Code's own tool approval still applies to them. Keep it on for tools you want to review.

## Teach Claude Code how to use Edith

Tools give the agent abilities, not habits. The [Plugins](https://getedith.pro/docs/extensions/agent-skills) extension installs skills that teach Claude Code, Cursor or Codex to drive Edith well.

![The Plugins page in Edith, listing Edith skills such as Edith Remote Work, Edith Video Edit, Edith Video Delivery and Edith LaTeX Edit, with Edith Remote Work installed and Preview and Install buttons on the others](shot:ext-plugins)

Open Plugins, press **Preview** to read a skill, then **Install**. The arrow next to **Install** picks a single agent. You can also paste the output of `ed guide agent` into a repository's instructions file.

## Remove the server

```terminal
$ ed mcp uninstall --client claude
```

Only the `edith` entry is removed. Other servers and settings stay, and the file is backed up first. In **Settings > Tools**, pressing **Disconnect** next to the agent does the same.

## Next steps

- [MCP server](https://getedith.pro/docs/mcp) for resources, protocol versions and error codes.
- [Track agent usage limits](https://getedith.pro/docs/tutorials/track-agent-usage-limits) so the limits the agent reads are fresh.
- [`ed mcp` reference](https://getedith.pro/docs/cli/mcp).
- [Agent docs](https://getedith.pro/docs/agents) for running coding agents from Edith.

## Get Edith

Edith is a native Mac app for macOS 14 or later on Apple silicon with 100+ extensions, the `ed` command line and an MCP server. $35 once for one Mac, plus $7 for each additional Mac, with no subscription and a 30-day refund.

- [Buy Edith](https://getedith.pro/pricing): $35 once for one Mac, plus $7 for each additional Mac
- [Download Edith](https://getedith.pro/download): the installer, or Homebrew
