# Claude

> Add Cozy to Claude as a custom connector, and to Claude Code with one command.

Claude and Claude Code both connect to the same address:

```text
https://cozy.cloud/mcp
```

## Claude [#claude]

<Steps>
  <Step title="Open Claude's connector page">
    In Cozy, open **Connectors → Agents → Claude** and choose **Add to
    Claude**. Claude opens its custom connector form with Cozy filled in.
  </Step>
  <Step title="Add it">
    In Claude, choose **Add**, then **Connect**. If the form is empty, name it
    Cozy and paste the URL first.
  </Step>
  <Step title="Allow access">
    Sign in to Cozy if you need to and choose **Allow access**.
  </Step>
</Steps>

To add it by hand, open Claude's settings, then **Connectors**, choose **Add
custom connector** and paste the URL. Leave any OAuth client fields empty:
Claude registers itself with Cozy.

Claude's free plan allows one custom connector. On Team and Enterprise plans,
an owner adds it first. The connector works in claude.ai and Claude Desktop.

## Claude Code [#claude-code]

Run this in your terminal:

```sh
claude mcp add --transport http --scope user cozy https://cozy.cloud/mcp
```

Then run `/mcp` in Claude Code, choose `cozy` and sign in. `--scope user`
adds Cozy to every project; leave it out to add Cozy to the current project
only.

For CI or a committed project `.mcp.json` that uses a token instead, see
[Credentials](/docs/credentials#claude-code).

## Try it [#try-it]

- "Use Cozy to list my workspaces and show My wiki's health."
- "Search Cozy for what we decided about pricing and cite the sources."
- "Run the dream prompt on my workspace."

## Troubleshooting [#troubleshooting]

- **Claude can read but not write.** The connection probably only has read
  access. Disconnect and connect again, and allow editing.
- **Claude uses the wrong workspace.** Tools use My wiki by default. Ask
  Claude to list your Cozy workspaces and name the one you mean.
- **A write returns a conflict.** Another agent or you changed the page first. Ask Claude
  to read it again and retry.
- **Claude asks you to sign in again.** The connection was disconnected in
  **Connectors → Agents**. Connect again from Claude.

