# SquareMCP Docs — AI Social Media Gateway
Connect Claude, Codex CLI, and opencode to LinkedIn, TikTok, WhatsApp, and more via the Model Context Protocol.

# Build AI agents that
talk to the world

SquareMCP connects Claude, Codex CLI, and opencode to LinkedIn, TikTok, WhatsApp, Instagram, Twitter, and more — through a single MCP server.

#### 🚀 Getting started

Add SquareMCP to Claude Desktop, Codex CLI, or opencode in five minutes.

#### 🔌 Platform guides

Connect LinkedIn, TikTok, and WhatsApp. Step-by-step setup for each platform.

#### 🤖 Agent tutorial

Real code: a Claude agent that researches news and posts to LinkedIn automatically.

#### 📖 API reference ↗

Full OpenAPI spec for every social tool. Mail API available separately.

## Why MCP?

The Model Context Protocol lets AI assistants call real tools without custom integrations. Instead of writing a bespoke connector for every model and platform, you configure SquareMCP once and every MCP-compatible client gains the same 50+ tools.

SquareMCP is multi-tenant by design: each customer's credentials are encrypted at rest, isolated per account, and never shared across sessions. Bearer tokens issued through OAuth are bound to your customer record so every tool call is attributable and rate-limited.

## Supported clients

#### Claude Desktop

Add a `mcpServers` entry to `claude_desktop_config.json`. No extra software needed.

#### Codex CLI

Pass `--mcp-server` or configure in `~/.codex/config.json`. Full PKCE OAuth flow supported.

#### opencode

Add SquareMCP to your opencode MCP providers list. HTTP Bearer transport.

#### Custom agents

Any MCP client that supports Streamable HTTP transport works. See the agent tutorial for a from-scratch example.

## Supported platforms

#### in LinkedIn

Post text, images, and video. Search connections, send messages.

#### 🎵 TikTok

Upload and publish videos. View creator analytics.

#### 💬 WhatsApp

Send messages and templates. Receive inbound via webhook.

#### 📷 Instagram

Publish reels and image posts via Business API.

#### 𝕏 Twitter / X

Tweet with media. Search and read timeline.

#### f Facebook

Post to pages, share photos and video.

#### ✈️ Telegram

Send messages and photos via bot token.

#### 🎮 Discord

Send messages to channels via bot.