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

# MCP Server

> 51 tools for Claude, Cursor, and any AI agent to manage your social media autonomously.

Let AI assistants create posts, schedule content, run agents, search knowledge bases, and manage your entire social media presence — through natural language.

<CardGroup cols={2}>
  <Card title="Posts & Content" icon="paper-plane">
    Create, schedule, publish, retry, AI-rewrite, and AI-score posts across 5 platforms.
  </Card>

  <Card title="Brands & Agents" icon="tag">
    Manage brands, check platform connections, create and run autonomous AI agents.
  </Card>

  <Card title="Knowledge Base" icon="book">
    Search documents, ingest URLs, create knowledge bases for AI-grounded content.
  </Card>

  <Card title="Clips & Carousels" icon="film">
    Import videos, render clips, generate carousels, and convert to post drafts.
  </Card>
</CardGroup>

## Two Ways to Connect

<Tabs>
  <Tab title="CLI MCP Server (Recommended)">
    Built into the `@autoposting.ai/cli` npm package. Runs locally via stdio transport.

    ```bash theme={null}
    npm install -g @autoposting.ai/cli
    ap mcp    # starts stdio MCP server with 51 tools
    ```

    **Best for:** Claude Desktop, Cursor, Claude Code, any stdio MCP client.
  </Tab>

  <Tab title="Remote MCP Server">
    Hosted at `https://app.autoposting.ai/mcp` via Streamable HTTP transport. No install required.

    **Best for:** Cloud-hosted agents, Claude.ai (OAuth 2.1 supported).
  </Tab>
</Tabs>

## Available Tools (51)

| Domain         | Tools | Examples                                                                     |
| -------------- | :---: | ---------------------------------------------------------------------------- |
| Posts          |   10  | `create-post`, `publish-post`, `schedule-post`, `rewrite-post`, `score-post` |
| Brands         |   6   | `list-brands`, `get-brand`, `create-brand`, `brand-auth-status`              |
| Agents         |   8   | `create-agent`, `run-agent`, `toggle-agent`, `agent-runs`                    |
| Knowledge Base |   7   | `create-kb`, `search-kb`, `ingest-kb`, `kb-docs`                             |
| Ideas          |   4   | `generate-ideas`, `enrich-idea`                                              |
| Clips          |   5   | `import-clip`, `render-clip`                                                 |
| Carousels      |   6   | `generate-carousel`, `draft-carousel`                                        |
| Webhooks       |   3   | `create-webhook`, `test-webhook`                                             |
| Billing        |   2   | `billing-status`, `billing-credits`                                          |
| Usage          |   1   | `usage-summary`                                                              |

All tools use correct domain terminology (`brandSlug`, `text`) — no translation layer needed.

<CardGroup cols={2}>
  <Card title="Setup Guide" icon="gear" href="/mcp/setup">
    Connect in under 2 minutes — Claude Desktop, Cursor, or generic.
  </Card>

  <Card title="Tools Reference" icon="wrench" href="/mcp/tools">
    Input schemas, example calls, and responses for all 51 tools.
  </Card>

  <Card title="CLI" icon="terminal" href="/cli/overview">
    Prefer the terminal? Use the CLI directly.
  </Card>

  <Card title="TypeScript SDK" icon="brackets-curly" href="/sdks/typescript">
    Build your own integrations with the SDK.
  </Card>
</CardGroup>
