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

# MCP

> Let Claude, ChatGPT, Cursor and other AI assistants plan and publish posts for you.

Postinger's MCP server connects AI assistants to your workspace through the [Model Context Protocol](https://modelcontextprotocol.io). Your assistant can then write and schedule posts, retry the ones that failed and tell you how they did, in plain conversation.

```text theme={"system"}
https://api.postinger.dev/mcp
```

## Connect your client

> [tab] Cursor
>
> [Install in Cursor](cursor://anysphere.cursor-deeplink/mcp/install?name=postinger\&config=eyJ1cmwiOiJodHRwczovL2FwaS5wb3N0aW5nZXIuZGV2L21jcCJ9)
>
> The link opens Cursor and adds the server. To add it by hand, put this in `~/.cursor/mcp.json` (or a project's `.cursor/mcp.json`):
>
> ```json ~/.cursor/mcp.json theme={"system"}
> {
>   "mcpServers": {
>     "postinger": {
>       "url": "https://api.postinger.dev/mcp"
>     }
>   }
> }
> ```
>
> Then open **Cursor Settings → MCP** and log in to Postinger.
>
> To use an API key instead, send it as a header:
>
> ```json ~/.cursor/mcp.json theme={"system"}
> {
>   "mcpServers": {
>     "postinger": {
>       "url": "https://api.postinger.dev/mcp",
>       "headers": {
>         "Authorization": "Bearer ${env:POSTINGER_API_KEY}"
>       }
>     }
>   }
> }
> ```
>
> Cursor reads `POSTINGER_API_KEY` from the environment it was started in. Its [MCP documentation](https://docs.cursor.com/context/model-context-protocol) covers the file format.

> [tab] Claude Code
>
> Add the server:
>
> ```bash theme={"system"}
> claude mcp add --transport http postinger https://api.postinger.dev/mcp
> ```
>
> Then run `/mcp` in Claude Code and authenticate Postinger.
>
> To use an API key instead of OAuth, pass it when you add the server:
>
> ```bash theme={"system"}
> claude mcp add --transport http postinger https://api.postinger.dev/mcp \
>   --header "Authorization: Bearer $POSTINGER_API_KEY"
> ```
>
> Claude Code's [MCP documentation](https://docs.anthropic.com/en/docs/claude-code/mcp) covers MCP servers in general.

> [tab] Codex
>
> Add the server:
>
> ```bash theme={"system"}
> codex mcp add postinger --url https://api.postinger.dev/mcp
> ```
>
> Then sign in:
>
> ```bash theme={"system"}
> codex mcp login postinger
> ```
>
> This writes the following to `~/.codex/config.toml`:
>
> ```toml ~/.codex/config.toml theme={"system"}
> [mcp_servers.postinger]
> url = "https://api.postinger.dev/mcp"
> ```
>
> To use an API key instead of OAuth, read it from an environment variable:
>
> ```toml ~/.codex/config.toml theme={"system"}
> [mcp_servers.postinger]
> url = "https://api.postinger.dev/mcp"
> bearer_token_env_var = "POSTINGER_API_KEY"
> ```
>
> Codex's [MCP documentation](https://developers.openai.com/codex/mcp) covers the file format.

> [tab] ChatGPT
>
> Open **Plugins**, press **+** and choose **Add custom MCP server**, with:
>
> * **Name:** Postinger
> * **Server URL:** `https://api.postinger.dev/mcp`
> * **Authentication:** OAuth
>
> Accept the warning and choose **Create as a plugin**. Then open the plugin under your plugins and **install** it. ChatGPT sends you to Postinger to choose a workspace and approve. In a chat, type `@` and pick Postinger.
>
> Custom MCP servers depend on your ChatGPT plan, and in Business and Enterprise workspaces an admin may need to allow them.

> [tab] Claude
>
> In Claude (web, desktop or mobile), open **Settings → Connectors → Add custom connector**:
>
> * **Name:** Postinger
> * **URL:** `https://api.postinger.dev/mcp`
>
> Click **Add**, then **Connect**. Claude sends you to Postinger to choose a workspace and approve. No API key is needed.
>
> Claude Desktop's `claude_desktop_config.json` only runs local servers. Use the connector, or the bridge in [Other clients](https://docs.postinger.dev/mcp/clients/other.md).

> [tab] VS Code
>
> [Install in VS Code](https://vscode.dev/redirect/mcp/install?name=postinger\&config=%7B%22type%22%3A%22http%22%2C%22url%22%3A%22https%3A%2F%2Fapi.postinger.dev%2Fmcp%22%7D)
>
> The link opens VS Code and adds the server. To add it by hand, put this in the project's `.vscode/mcp.json`:
>
> ```json .vscode/mcp.json theme={"system"}
> {
>   "servers": {
>     "postinger": {
>       "type": "http",
>       "url": "https://api.postinger.dev/mcp"
>     }
>   }
> }
> ```
>
> VS Code's [MCP documentation](https://code.visualstudio.com/docs/copilot/chat/mcp-servers) covers the file format.

> [tab] Hermes
>
> Add Postinger to `~/.hermes/config.yaml`, under `mcp_servers`:
>
> ```yaml ~/.hermes/config.yaml theme={"system"}
> mcp_servers:
>   postinger:
>     url: "https://api.postinger.dev/mcp"
>     auth: oauth
> ```
>
> Then run `/reload-mcp` in a Hermes chat. Hermes opens the browser so you can log in to Postinger, and keeps the tokens in `~/.hermes/mcp-tokens/`.
>
> To use an API key instead, send it as a header and leave out `auth`:
>
> ```yaml ~/.hermes/config.yaml theme={"system"}
> mcp_servers:
>   postinger:
>     url: "https://api.postinger.dev/mcp"
>     headers:
>       Authorization: "Bearer YOUR_API_KEY"
> ```
>
> The key sits in the file as plain text, so keep `config.yaml` to yourself. Hermes's [MCP documentation](https://hermes-agent.nousresearch.com/docs/user-guide/features/mcp) covers the file format.

> [tab] Other
>
> Use the URL `https://api.postinger.dev/mcp`, and OAuth when your client supports it.
>
> Without OAuth, send an API key in the `Authorization` header. Many clients take this shape, with your key in place of `YOUR_API_KEY`:
>
> ```json theme={"system"}
> {
>   "postinger": {
>     "url": "https://api.postinger.dev/mcp",
>     "headers": {
>       "Authorization": "Bearer YOUR_API_KEY"
>     }
>   }
> }
> ```
>
> Most clients don't expand `$VARIABLE` in this file; check yours for how it reads environment variables (Cursor uses `${env:NAME}`).
>
> #### Clients that only run local servers
>
> If your client only takes a `command` and `args`, bridge to the hosted server with [`mcp-remote`](https://www.npmjs.com/package/mcp-remote):
>
> ```json theme={"system"}
> {
>   "mcpServers": {
>     "postinger": {
>       "command": "npx",
>       "args": [
>         "-y",
>         "mcp-remote@latest",
>         "https://api.postinger.dev/mcp",
>         "--header",
>         "Authorization:${AUTH_HEADER}"
>       ],
>       "env": {
>         "AUTH_HEADER": "Bearer YOUR_API_KEY"
>       }
>     }
>   }
> }
> ```
>
> `mcp-remote` fills in `${AUTH_HEADER}` from `env`. Keep the header argument without spaces: some clients split arguments on spaces.
>
> Leave out the two `--header` entries and `env` to sign in with OAuth instead: `mcp-remote` opens the browser for it.

Each client connects with OAuth, or with an API key. [Setup](https://docs.postinger.dev/mcp/setup.md) explains the two, and what to do when connecting fails.

## How access works

The first time your assistant connects, it opens Postinger in your browser. Choose a workspace and approve. The connection then:

* acts as **you**, in that one workspace,
* is listed under **Settings → Connected apps**, where you can disconnect it,
* stops working if you leave the workspace,
* shares the API's [rate limit](https://docs.postinger.dev/api-reference/rate-limits.md) of 120 requests a minute.

## What your assistant can do

Read posts, accounts, media and analytics; create, change, retry and delete posts; add media from a link. See all [tools](https://docs.postinger.dev/mcp/tools.md).

> [!WARNING]
>
> Posts scheduled or published by your assistant go to real audiences. Postinger's tools ask assistants to confirm with you before publishing, and new posts are drafts unless you ask otherwise, but read what your assistant proposes before you agree.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.