> For the complete documentation index, see [llms.txt](https://docs.plurality.network/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.plurality.network/the-plurality-mcp-server/connect-your-agents-via-mcp/claude-code.md).

# Claude Code

> **TL;DR** One CLI command, one OAuth flow.

#### Prerequisites

* Claude Code installed and logged in

#### Setup

In your terminal:

```
claude mcp add --transport http plurality-memory https://app.plurality.network/mcp
```

Then authenticate inside Claude Code:

```
> /mcp
```

This opens an OAuth browser window. Sign in with your Plurality account. Tokens are cached locally.

#### Verify

In a Claude Code session, ask: *"List my memory buckets."*

If Claude calls `get_user_memory_buckets` and returns results, you're connected.

#### Troubleshoot

**`claude: command not found`.** Make sure Claude Code is installed and on your `$PATH`.

**`/mcp` shows the server but no tools.** OAuth may not have completed. Run `/mcp` again and follow the browser prompt.

**Need to disconnect.** Run `claude mcp remove plurality-memory`.
