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

# Unified MCP

> Let AI agents drive Postsiva through the Model Context Protocol — publish, analytics, comments, and AI content.

The **Postsiva Unified MCP** lets AI agents call Postsiva tools instead of hand-writing REST requests. Each tool runs the same backend logic as the website/WhatsApp agent.

## How it works

1. Your MCP client connects to the right endpoint:
   * **CLI** (Cursor / Claude Code): `https://mcp.postsiva.com/mcp`
   * **Web** (Claude.ai / ChatGPT): `https://mcp.postsiva.com/web/mcp`
2. The agent calls tools (`publish`, `get_user_posts`, `upload_media`, …).
3. Each call resolves `workspace_id` from the key/OAuth and invokes the shared tool layer.
4. Results are JSON returned to the agent.

There is no separate MCP business logic — quotas, plan gates, and platform rules match the REST API.

## Endpoints

| | URL | Auth |
| - | - | - |
| CLI (Cursor / Claude Code) | `https://mcp.postsiva.com/mcp` | API key **header** `X-API-Key` |
| Web (Claude.ai) | `https://mcp.postsiva.com/web/mcp` | **OAuth only** |
| Web (ChatGPT MCP) | `https://mcp.postsiva.com/web/mcp?api-key=…` | API key **query param** |

* **Transport:** Streamable HTTP (stateless)

## Who it's for

* **Claude.ai / ChatGPT** — web MCP with in-chat upload widget
* **Cursor / Claude Code** — CLI MCP with curl upload
* **n8n / automation** — AI Agent node with MCP
* **Custom agents** — any MCP-compatible client

## Requirements

* **Pro plan** (`mcp_enabled`)
* Valid workspace API key or OAuth connector
* Social accounts connected in that workspace

## Tool count

Core tools on both servers (accounts, posting, queue, posts, analytics, comments, AI, platform connect). **Upload** differs (iframe vs curl). **No** MCP web-search tool (hosts provide search).

See the full [Tool catalog](https://docs.postsiva.com/mcp/tools.md).

## vs REST API

| | REST | MCP |
| - | - | - |
| Caller | Your code | AI agent |
| Interface | HTTP paths + JSON bodies | Named tools + arguments |
| Best for | Pipelines, CRON, webhooks | Natural language workflows |

Use REST when you know the exact call; use MCP when an agent should decide which action to take.

## Next steps

> [card] [Connect & setup](https://docs.postsiva.com/mcp/connect.md)
>
> Cursor, Claude, headers

> [card] [Tool catalog](https://docs.postsiva.com/mcp/tools.md)
>
> All tools

> [card] [Cursor guide](https://docs.postsiva.com/mcp/cursor.md)
>
> Postsiva MCP in Cursor

> [card] [n8n](https://docs.postsiva.com/mcp/n8n.md)
>
> AI Agent + MCP


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