> ## Documentation Index
> Fetch the complete documentation index at: /llms.txt
> Use this file to discover all available pages before exploring further.

# Claude Code

> Add PostChamp to Claude Code with one command and sign in from the terminal.

Add PostChamp to Claude Code with one command and sign in from the terminal. The connection URL is the same for every client:

```text
https://api.postchampai.com/api/v1/mcp
```

## Before you start

* Claude Code installed, with a browser on the same machine for the sign-in (or use `--no-browser` on a remote machine).
* A PostChamp account on a plan that includes assistants, with the owner or admin role in the workspace you want to share. See [Authentication](/mcp/authentication.md).

## Connect Claude Code

**Step 1**

Add the server: run the first command below. Add `--scope user` to make it available in all your projects. Without it, the server is private to the current project.

**Step 2**

Sign in: run `/mcp` inside Claude Code, choose `postchamp` and follow the browser sign-in. Or run `claude mcp login postchamp` from your shell. Add `--no-browser` to print the URL on a remote machine.

**Step 3**

In the browser, sign in to PostChamp, choose the workspaces to share and approve.

**Step 4**

Check it: run `claude mcp list`, or `/mcp` inside Claude Code. `postchamp` should be connected.

## Command line

```bash
claude mcp add --transport http postchamp https://api.postchampai.com/api/v1/mcp
claude mcp list
claude mcp login postchamp
```

## Check the connection

Ask:

```text
Use PostChamp to list my workspaces.
```

This reads your workspaces, costs nothing and changes nothing. Then try one of these:

* Plan next week: three posts, one on each of my main topics. Show me the plan before you schedule anything.
* Write a LinkedIn post about what I learned from my last client project, in my voice.
* How did my posts do over the last 30 days? What worked best?
* Turn my last post into a carousel and show me the slides.

## Disconnect

* Run `claude mcp logout postchamp`. This revokes the sign-in where the server supports it.
* Then run `claude mcp remove postchamp`. Removing alone deletes the local sign-in but does not revoke it at PostChamp.
* You can also disconnect in PostChamp: open Settings and choose Assistants.

## Troubleshooting

> [accordion] `claude mcp list` shows the server needs authentication.
>
> Run `/mcp` or `claude mcp login postchamp` and finish the browser sign-in.

> [accordion] The browser does not open, for example over SSH.
>
> Run `claude mcp login postchamp --no-browser`, open the printed URL on any machine and finish the sign-in.

> [accordion] The server is in the wrong place or missing in another project.
>
> Without `--scope user` the server belongs to one project. Add it again with `--scope user`.

> [accordion] The browser sign-in says I cannot connect.
>
> Only owners and admins of a workspace can connect an assistant to it, and the plan must include assistants. Sign in with an account that has that role. Check the account in Settings, Members.

## FAQ

> [accordion] Can Claude Code schedule a post without asking me?
>
> No. Scheduling shows a preview first and needs a second call with confirm set to true, which Claude Code makes only after you agree.

> [accordion] Does the server follow me across projects?
>
> Only if you add it with `--scope user`. The default scope is the current project.

## Related

> [card] [Authentication](/mcp/authentication.md)
>
> How sign-in, consent and revocation work.

> [card] [Tool reference](/mcp/tools/index.md)
>
> Every tool the assistant can call.
