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

# Integrating MCP clients

> Connect Claude, ChatGPT, Claude Code, Cursor, Codex, Grok Bot, Grok, OpenClaw, Gemini CLI, Antigravity, OpenBot, VS Code and other MCP clients to PostSyncer, with OAuth or an API key.

Most clients connect to PostSyncer with OAuth: you add the server, the client sends you to PostSyncer, and you click **Allow**. There is no key to create or paste. An API key is for scripts, servers and clients that can't sign in with OAuth (see [Connect with a Bearer token](#connect-with-a-bearer-token)).

| Setting | Value |
| - | - |
| **URL** | `https://postsyncer.com/mcp` |
| **Transport** | Streamable HTTP |
| **Sign-in** | OAuth, or `Authorization: Bearer YOUR_API_KEY` |

In PostSyncer, **Settings → AI Agents** has the same setup for each client, with the links and commands ready to copy.

## Let your agent set itself up

Claude Code, Cursor, Codex, OpenClaw, Gemini CLI and most other coding agents can add PostSyncer themselves. Give your agent this message:

```text theme={null}
Connect yourself to PostSyncer, my social media scheduler. Add its remote MCP server https://postsyncer.com/mcp (Streamable HTTP; sign in with OAuth when asked). Setup steps for each tool: https://postsyncer.com/docs/mcp/integrating-clients. Then list my PostSyncer workspaces to check it works.
```

## Sign up from your coding agent

A coding agent that runs commands (Claude Code, Codex, Cursor, OpenClaw, Gemini CLI and others) can also make your PostSyncer account and its own key, with no browser sign-in. Give it this message:

```text theme={null}
Set up PostSyncer for me: read https://postsyncer.com/agents/setup.md and follow it.
```

The agent asks for your email, PostSyncer emails you a 6-digit code, and you read it back to the agent. The agent saves the key in its user-level MCP settings, never in a project file, then helps you connect your social accounts. An email that already has an account gets a new key on that account. The key has every permission and shows in [Settings → API](https://app.postsyncer.com/settings/api) under the agent's name: delete it there to end the agent's access. [Sign up from an AI agent](/docs/guides/agent-signup.md) has the endpoints, the limits and the errors.

ChatGPT and the Claude chat app can't run these commands: they connect with the official app and plugin below.

## Connect as a connector (OAuth)

Every client below that signs in does it the same way:

1. You add `https://postsyncer.com/mcp` (or install PostSyncer from the client's directory).
2. The client opens PostSyncer in your browser. Sign in if you need to; the page says **Authorize** and the client's name.
3. Click **Allow**. The client is connected. With no social account connected yet, the page first offers to connect one: pick a network and sign in to it in the small window that opens, then click **Continue to** and the client's name, or **Skip for now**. On an iPhone or iPad the page doesn't offer this yet: connect accounts in PostSyncer afterwards.

A connector can use every tool, in the workspaces you belong to, with your role in each: on paid plans, a content creator's posts wait for approval, and a client can't create posts.

Behind the scenes this is standard OAuth 2.0: discovery, Dynamic Client Registration and PKCE. A request without a valid token gets a 401 that points the client at the discovery document, so any MCP client that supports OAuth finds the rest by itself.

**When access ends.** PostSyncer has no setting that ends a connector's access. Removing the connector in your client stops that client using it, but the tokens it was given stay valid until they run out: the access token after 15 days, the refresh token after 30. Each time the client renews, it gets new ones. To end a connector's access sooner, write to [support@postsyncer.com](mailto:support@postsyncer.com).

## Claude

PostSyncer is in the Claude directory. Adding it there adds it to Claude, Cowork and Claude Code.

1. Open [PostSyncer in the Claude directory](https://claude.ai/customize/plugins/id/40e59f73-abdc-41b6-afae-325f6f0a1018%40anthropic-plugin-directory?via=directory) (in Claude: **Customize**, then **Discover**) and click **Add**.
2. Claude sends you to PostSyncer to sign in. Click **Allow**, and you are connected.
3. Ask in any chat. Claude picks the PostSyncer tools itself.

To stop using it, remove PostSyncer in Claude.

### Custom connector

If your organization turns off directory plugins, add PostSyncer as a custom connector: [open Claude's Add custom connector dialog with PostSyncer filled in](https://claude.ai/customize/connectors?modal=add-custom-connector\&connectorName=PostSyncer\&connectorUrl=https%3A%2F%2Fpostsyncer.com%2Fmcp), or go to **Customize → Connectors → Add → Add custom connector** and use `https://postsyncer.com/mcp` as the URL. On Claude's Team and Enterprise plans an owner adds it once and members choose **Connect**. A free Claude account can add one custom connector.

### Claude Desktop

Claude Desktop uses your Claude account, and so do its plugins and connectors. Add PostSyncer once, on the web or in the app, and it is in both. There is no config file to edit. (To use an API key from a desktop config file instead, see [`mcp-remote`](#clients-that-only-run-local-commands).)

## ChatGPT: install the official app

PostSyncer is in ChatGPT's app directory, so ChatGPT needs no server address and no key.

1. Open [PostSyncer in ChatGPT](https://chatgpt.com/plugins/plugin_asdk_app_6a632759aaf08191bf66f22649ac22cd) and choose **Install plugin**. When ChatGPT asks to connect your account, choose **Connect**.
2. ChatGPT sends you to PostSyncer to sign in. Click **Allow**.
3. In a chat, mention **@PostSyncer** or pick it from the **+** menu, and ask.

Which plugins you can use depends on your ChatGPT plan, workspace, role and region. In a business workspace, an admin may need to turn PostSyncer on first. To turn it off or reconnect it, open ChatGPT's **Settings**, then **Plugins**.

## Claude Code

1. Run this in your project folder. It adds PostSyncer for that project; add `--scope user` to have it in every project.

   ```bash theme={null}
   claude mcp add --transport http postsyncer https://postsyncer.com/mcp
   ```

2. Type `/mcp` in Claude Code and choose **postsyncer**. Your browser opens to approve it.

**Or install the PostSyncer plugin.** It adds the server together with a skill that teaches Claude Code how to write and schedule posts well. Add it from the [Claude directory](https://claude.ai/customize/plugins/id/40e59f73-abdc-41b6-afae-325f6f0a1018%40anthropic-plugin-directory?via=directory), or run:

```bash theme={null}
claude plugin marketplace add PostSyncer/claude-plugin
claude plugin install postsyncer@postsyncer
```

Then sign in with `/mcp`.

## Cursor

1. Open the [Add to Cursor link](cursor://anysphere.cursor-deeplink/mcp/install?name=PostSyncer\&config=eyJ1cmwiOiJodHRwczovL3Bvc3RzeW5jZXIuY29tL21jcCJ9). Cursor opens with PostSyncer filled in. Click **Install**.
2. Cursor opens your browser. Approve the connection, and you are done.

To edit the config by hand instead, add a server named `postsyncer` with our address as its `url` to `mcp.json`. Cursor asks you to sign in the first time it is used.

```json theme={null}
{
  "mcpServers": {
    "postsyncer": {
      "url": "https://postsyncer.com/mcp"
    }
  }
}
```

## Codex

The Codex CLI, the IDE extension and the ChatGPT desktop app share one setup. PostSyncer is also in the [plugin directory](https://chatgpt.com/plugins/plugin_asdk_app_6a632759aaf08191bf66f22649ac22cd) that ChatGPT and Codex share.

1. Add PostSyncer in your terminal:

   ```bash theme={null}
   codex mcp add postsyncer --url https://postsyncer.com/mcp
   ```

2. Sign in. Your browser opens to approve it.

   ```bash theme={null}
   codex mcp login postsyncer
   ```

Running Codex in CI, where no one can sign in? Give it an API key instead: Codex reads the key from an environment variable you name in its config (`bearer_token_env_var`). Create the key in [Settings → API](https://app.postsyncer.com/settings/api) with only the permissions the job needs.

## Grok Bot

1. In the Grok Bot app on desktop, open **Connect apps** and choose **Add a custom connector** at the bottom. Name it **PostSyncer**, pick **Remote HTTPS**, paste `https://postsyncer.com/mcp` as the **Server URL** and choose **Add plugin**.
2. When Grok Bot asks you to authorize PostSyncer, approve it in your browser. If it doesn't finish, choose **Reconnect**.

## Grok

Grok on grok.com is a different app from Grok Bot, with its own setup.

1. On [Grok's Connectors page](https://grok.com/connectors), choose **New connector**, then **Custom**, and paste `https://postsyncer.com/mcp`.
2. Grok sends you to PostSyncer to sign in. Click **Allow**, and you are connected.

## OpenClaw

1. Run this on the computer where OpenClaw runs. It adds PostSyncer as a remote server that signs in with OAuth.

   ```bash theme={null}
   openclaw mcp set postsyncer '{"url":"https://postsyncer.com/mcp","transport":"streamable-http","auth":"oauth"}'
   ```

2. Sign in. OpenClaw prints a sign-in address: open it in your browser on any device and approve PostSyncer.

   ```bash theme={null}
   openclaw mcp login postsyncer
   ```

3. Add the [PostSyncer skill from ClawHub](https://clawhub.ai/abdulmejidshemsuawel/skills/postsyncer). It teaches OpenClaw how to write and schedule posts well.

## Gemini CLI

1. Run this in your terminal. `-s user` adds PostSyncer for every project.

   ```bash theme={null}
   gemini mcp add --transport http -s user postsyncer https://postsyncer.com/mcp
   ```

2. Type `/mcp auth postsyncer` in Gemini CLI. Your browser opens to approve it, so run this where a browser can open, not in a remote SSH session.

**Or install the PostSyncer extension** instead of the command above:

```bash theme={null}
gemini extensions install https://github.com/PostSyncer/claude-plugin
```

## Antigravity

1. In the Antigravity app, click **Customizations** in the sidebar, then **Installed**. Under **MCP Servers**, click **Copy Config File Path** and open that file (`mcp_config.json`).

2. Add PostSyncer to it. If the file already lists servers, add the `postsyncer` entry next to them.

   ```json theme={null}
   {
     "mcpServers": {
       "postsyncer": {
         "serverUrl": "https://postsyncer.com/mcp"
       }
     }
   }
   ```

3. Back under **MCP Servers**, click **Authenticate** next to postsyncer and approve PostSyncer in your browser. Copy the code your browser shows, paste it into **Enter authorization code** in Antigravity and click **Submit**.

Antigravity registers itself with PostSyncer, so there is no client ID to add. To use an API key instead, add `"headers": { "Authorization": "Bearer YOUR_API_KEY" }` next to `serverUrl` (see [Connect with a Bearer token](#connect-with-a-bearer-token)).

## OpenBot

1. In OpenBot, open the **Marketplace** from the puzzle-piece icon at the top of the sidebar. On the **Apps** tab, click **Add custom**.
2. Choose **Streamable HTTP**, name it **PostSyncer** and paste `https://postsyncer.com/mcp` as the **Server URL**.
3. Click **Save**. OpenBot checks the address and opens your browser, where you approve PostSyncer. The server is saved once you do.

OpenBot registers itself with PostSyncer, so there is no client ID to add. It gives each server you add to every agent it runs, so Claude, Codex, Gemini and the others all get PostSyncer at once. To use an API key instead, add a header in the same form's **Headers** section: `Authorization`, with the value `Bearer YOUR_API_KEY` (see [Connect with a Bearer token](#connect-with-a-bearer-token)). OpenBot then skips the browser sign-in.

## Other MCP clients

PostSyncer works with VS Code, Windsurf, Zed, Cline, Goose, Perplexity, Le Chat, Manus, n8n, Zapier, Make and any other MCP client. Add `https://postsyncer.com/mcp` as a remote server (Streamable HTTP) and choose sign in (OAuth) when asked.

* **VS Code:** open the [Add to VS Code link](vscode:mcp/install?%7B%22name%22%3A%22postsyncer%22%2C%22type%22%3A%22http%22%2C%22url%22%3A%22https%3A%2F%2Fpostsyncer.com%2Fmcp%22%7D) and sign in when VS Code asks.
* **Clients that browse the MCP Registry** list PostSyncer as `io.github.PostSyncer/postsyncer`.
* **Agent skills:** the PostSyncer skill teaches an agent how to write and schedule posts well. Run `npx skills add PostSyncer/claude-plugin` in your project folder; the skill is listed on [skills.sh](https://www.skills.sh/postsyncer/claude-plugin/postsyncer).

## Connect with a Bearer token

Use an API key for a script, a server, or a client that can't sign in with OAuth.

1. Create a key in [app.postsyncer.com → Settings → API](https://app.postsyncer.com/settings/api), with only the permissions the agent needs (see [Authentication](/docs/essentials/authentication.md)).
2. Send it in the `Authorization` header as `Bearer YOUR_API_KEY`.

Clients that take a remote server with headers use this shape (the key names differ a little from client to client; check its docs):

```json theme={null}
{
  "mcpServers": {
    "postsyncer": {
      "url": "https://postsyncer.com/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_API_KEY"
      }
    }
  }
}
```

A key can only do what its permissions allow. Without `posts:schedule` or `posts:publish`, it can save drafts for the user to approve in PostSyncer, and a refused tool names the permission it needs.

### Clients that only run local commands

Use this only when a client can neither sign in with OAuth nor send headers to a remote server. The [`mcp-remote`](https://www.npmjs.com/package/mcp-remote) proxy runs on your computer and forwards to PostSyncer:

```json theme={null}
{
  "mcpServers": {
    "postsyncer": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://postsyncer.com/mcp",
        "--header",
        "Authorization: Bearer YOUR_API_KEY"
      ]
    }
  }
}
```

Node 18 or later must be on your PATH. On Windows, and in some clients, a space inside one `args` string can be lost; if the header fails, use the [env workaround](https://www.npmjs.com/package/mcp-remote#custom-headers): put `Authorization:${POSTSYNCER_AUTH}` in `args` (no space after the colon) and set `POSTSYNCER_AUTH` to `Bearer YOUR_API_KEY` in `env`.

## Verify the connection

Ask your assistant to run a read-only tool:

> List my PostSyncer workspaces

It should call `list-workspaces` and show your workspaces. Then try **list my connected accounts**, which calls `list-accounts`.

## Troubleshooting

| Symptom | What to check |
| - | - |
| 401 with an API key | The key is missing or deleted, or the header isn't `Bearer ` plus your key. Create a new key in [Settings → API](https://app.postsyncer.com/settings/api) if unsure. |
| The connector won't authorize | Sign in to PostSyncer in the same browser, then click **Allow**. If the connector was removed, add `https://postsyncer.com/mcp` again and authorize again. |
| A tool is refused with a key | Each tool needs the `resource:action` [permission](/docs/essentials/authentication.md#permissions) of the API route it mirrors, such as `posts:read` for `list-posts` and `posts:create` for `create-post`. The error names the missing permission: add it by editing the key in [Settings → API](https://app.postsyncer.com/settings/api). A connector has every permission, within your workspaces. |
| Some tools are missing | All 118 tools come in one `tools/list` page. Update the client, then reconnect it. |
| The assistant can't send a file the user has | In ChatGPT, attach the file to the message. In other apps, the assistant makes an upload link with `create-media-upload-link` for the user to open, or sends the file with curl when it can run commands. See [Files from AI chats](/docs/guides/files-from-ai-chats.md). |
| HTTP 429 | The server allows 60 requests a minute per user, shared with API v1. Wait for the minute to pass (see [Rate limits](/docs/rate-limits.md)). |

## See also

* [MCP overview](/docs/mcp/overview.md)
* [Tools reference](/docs/mcp/tools-reference.md)
* [Agent guide](/docs/mcp/agent-guide.md)
* [Authentication](/docs/essentials/authentication.md)


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