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

# MCP server overview

> Connect Claude, ChatGPT, Cursor and other AI assistants to PostChamp so they can write, plan and schedule LinkedIn posts in your workspace.

PostChamp runs a remote [Model Context Protocol](https://modelcontextprotocol.io/) (MCP) server. Once you connect an AI assistant to it, the assistant can use your workspace: read your posts, voice profile and knowledge base, draft posts, check them, and schedule them after you confirm.

> [!NOTE]
>
> Assistants are included on every plan. Only owners and admins of a workspace can connect an assistant to it.

## What an assistant can do

The server offers 42 tools. They cover:

* **Write.** Generate a post in your voice, save text you wrote, update it, run the Slop Check.
* **Research.** Search popular posts, see what your own top posts have in common, find people worth talking to.
* **Visuals.** Generate an image, make a carousel, attach images, PDFs and video to a post.
* **Schedule.** Preview, schedule, reschedule or cancel posts. Nothing goes out without your yes.
* **Numbers.** Read analytics, the posts timeline and your posting consistency.
* **Setup.** List workspaces, read the voice profile, search the knowledge base, check your credit balance.

See the [tool reference](/mcp/tools/index.md) for the full list.

> [!TIP]
>
> Nothing is ever posted right away. Scheduling tools return a preview first, and the assistant must call again with your confirmation. See [Limits and errors](/mcp/limits-and-errors.md).

## Endpoints

| Endpoint | Use it for | Tools |
| - | - | - |
| `https://api.postchampai.com/api/v1/mcp` | Custom connectors in Claude, ChatGPT (custom connector), Cursor, Codex and every other client. | 42 |
| `https://api.postchampai.com/api/v1/mcp/chatgpt` | The reviewed PostChamp app for ChatGPT. See [ChatGPT app](/mcp/chatgpt-app.md). | 18 |

A token is issued for one endpoint. A token for the ChatGPT app endpoint does not work on the main endpoint, and the reverse.

## How a connection works

```mermaid
sequenceDiagram
    participant A as Assistant
    participant O as PostChamp sign-in (OAuth)
    participant M as MCP server
    participant W as Your workspace
    A->>M: POST without a token
    M-->>A: 401 and where to sign in
    A->>O: Authorize (OAuth 2.1 with PKCE)
    O->>O: You sign in and choose workspaces
    O-->>A: Access token (scope mcp)
    A->>M: tools/call with the token
    M->>W: Run the tool in a workspace you granted
    W-->>M: Result
    M-->>A: Result as text and structured content
```

1. The assistant finds the sign-in details from the server, registers itself, and opens your browser.
2. You sign in to PostChamp and choose which workspaces it may use on a consent screen.
3. The assistant receives a token. It never sees your password or a LinkedIn token.
4. Each tool call is checked again: the grant must still exist, the workspace must be active, and you must still be an owner or admin.

Details are on the [Authentication](/mcp/authentication.md) page.

## Transport

* **Streamable HTTP, POST only.** `GET`, `DELETE`, `PUT` and `PATCH` return `405` with `Allow: POST`.
* **Stateless and JSON.** There are no sessions and no server-sent events. Each request carries its token and gets one JSON response.
* **Two protocol versions.** The 2025 style (`initialize`, including `2025-11-25`) and the `2026-07-28` style (`server/discover`) both work.
* **Long calls.** Tools that run AI work, such as `generate_post`, can take up to 300 seconds. A client that hangs up cancels them.
* **Browser clients.** If a request sends an `Origin` header it must be an `https` origin, or `http` on a loopback host. Anything else gets `403`.

Access tokens last 60 minutes and refresh tokens 30 days. Your assistant refreshes them for you.

## Next steps

> [card] [Quickstart](/mcp/quickstart.md)
>
> Connect Claude in two minutes.

> [card] [Connect a client](/mcp/clients/index.md)
>
> Guides for 25 assistants and editors.

> [card] [Authentication](/mcp/authentication.md)
>
> OAuth, consent and revoking access.

> [card] [Tool reference](/mcp/tools/index.md)
>
> Every tool, its inputs and its credit cost.
