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

# n8n

> Use PostChamp from an n8n AI Agent with the MCP Client Tool.

Use PostChamp from an n8n AI Agent with the MCP Client Tool. The connection URL is the same for every client:

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

> [!NOTE]
>
> Update n8n first. Older versions offer only the SSE transport, which PostChamp does not use. n8n's page for this node mentions only an SSE endpoint, so the transport step below could not be confirmed there.

> [!NOTE]
>
> These steps follow the standard remote MCP format. n8n changes its menus often, so check the [vendor documentation](https://docs.n8n.io/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.toolmcp/) if a label differs.

## Before you start

* An n8n version whose MCP Client Tool supports Streamable HTTP.
* An AI Agent node in your workflow.
* 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 n8n

**Step 1**

Add an **AI Agent** node, then add the **MCP Client Tool** to it.

**Step 2**

Set the endpoint URL to `https://api.postchampai.com/api/v1/mcp` and the server transport to **HTTP Streamable**.

**Step 3**

Set authentication to **MCP OAuth2** and create a new MCP OAuth2 API credential. Keep **Register Client Automatically** (Dynamic Client Registration) on.

**Step 4**

Choose **Connect**. Sign in to PostChamp, choose the workspaces to share and approve.

**Step 5**

Under **Tools to Include**, pick the tools the agent may use.

## 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:

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

## Disconnect

* Delete the credential in n8n, or remove the node.
* In PostChamp, open Settings and choose Assistants to disconnect it, so the sign-in is revoked.

## Troubleshooting

> [accordion] The node offers only SSE.
>
> Your n8n is too old. Update it and use HTTP Streamable.

> [accordion] The credential cannot connect.
>
> Keep **Register Client Automatically** on, so n8n registers itself with PostChamp.

> [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] Should an unattended workflow schedule posts?
>
> We suggest drafts only, and a person schedules them. A workflow that runs with nobody watching should not decide what goes out under your name.

## 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.
