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

# Grok

> Add PostQueen as a custom MCP connector in Grok chat on the web, iOS and Android

Grok on the web, iOS and Android can call remote MCP servers. Add PostQueen at [grok.com/connectors](https://grok.com/connectors), and Grok can list your channels, generate media and schedule posts through her [14 MCP tools](/mcp/tools).

This page is Grok chat only. [Grok Bot](/mcp/clients/grok-bot) is the cloud agent. [Grok Build](/mcp/clients/grok-build) is the terminal coding agent. Connecting here does not install PostQueen on either.

<Info>
  You need your PostQueen API key first. In [app.postqueen.ai](https://app.postqueen.ai), open **Settings → API Keys** and click **Reveal**.
</Info>

<Warning>
  With this setup, your API key travels inside the connector URL, so the URL itself is a secret. Anyone who has it can post from your accounts. Do not screenshot the connector settings. If the key leaks, regenerate it in **Settings → API Keys** and update every client that uses it.
</Warning>

## Setup

<Steps>
  <Step title="Open Grok connectors">
    Go to [grok.com/connectors](https://grok.com/connectors), then **New Connector → Custom**. Official reference: [xAI Connectors](https://docs.x.ai/grok/connectors).
  </Step>

  <Step title="Paste the MCP URL">
    Name it `PostQueen` and enter the streamable HTTP URL with your API key in the path:

    ```
    https://api.postqueen.ai/mcp/YOUR_API_KEY
    ```

    Leave extra authentication empty: the key in the URL is the authentication. If your client prefers a header instead, point it at `https://api.postqueen.ai/mcp` with `Authorization: Bearer YOUR_API_KEY`.
  </Step>

  <Step title="Confirm">
    In a Grok chat, ask it to list your connected social media accounts. Your channel names come back when Grok calls `integrationList`.
  </Step>
</Steps>

<Warning>
  Grok reaches PostQueen from xAI's infrastructure, not from your machine, so the URL has to be reachable over the public internet. `api.postqueen.ai` is. A self-hosted instance behind a VPN or on your LAN will not connect this way.
</Warning>

<Note>
  On Grok Business and Enterprise, an admin must provision the connector in [console.x.ai](https://console.x.ai) (Grok Business → Connectors) before members can use it. Availability and menu names shift; if you do not see Custom, check [xAI's connectors docs](https://docs.x.ai/grok/connectors).
</Note>

## Self-hosted

Swap the host for your `NEXT_PUBLIC_BACKEND_URL` and keep the `/mcp/YOUR_API_KEY` tail. Most self-hosted setups serve the backend under `/api`, so the path sits at `/api/mcp`. The reverse proxy has to forward `/mcp` and stream the response: [MCP on a self-hosted install](/mcp/self-hosting).

## Next steps

<CardGroup cols={2}>
  <Card title="Talk to her in Grok" icon="https://mintcdn.com/forceplay/lYbPBM3tqu53QzpP/images/brand/icon-grok.svg?fit=max&auto=format&n=lYbPBM3tqu53QzpP&q=85&s=7fe4ed59fc811cfa495db4fffc9def7d" href="/agents/grok" width="30" height="30" data-path="images/brand/icon-grok.svg">
    What to ask once the connector is on
  </Card>

  <Card title="Grok Bot" icon="https://mintcdn.com/forceplay/lYbPBM3tqu53QzpP/images/brand/icon-grok.svg?fit=max&auto=format&n=lYbPBM3tqu53QzpP&q=85&s=7fe4ed59fc811cfa495db4fffc9def7d" href="/mcp/clients/grok-bot" width="30" height="30" data-path="images/brand/icon-grok.svg">
    Cloud agent. Add the server in the Bot chat, not here.
  </Card>

  <Card title="Grok Build" icon="https://mintcdn.com/forceplay/lYbPBM3tqu53QzpP/images/brand/icon-grok.svg?fit=max&auto=format&n=lYbPBM3tqu53QzpP&q=85&s=7fe4ed59fc811cfa495db4fffc9def7d" href="/mcp/clients/grok-build" width="30" height="30" data-path="images/brand/icon-grok.svg">
    Terminal agent. grok mcp add, not grok.com/connectors.
  </Card>

  <Card title="MCP tools" icon="wrench" href="/mcp/tools">
    All 14 tools Grok gains, with every parameter
  </Card>
</CardGroup>
