Skip to main content
The Model Context Protocol (MCP) is an open standard that enables AI models and assistants to interact securely with your workspace tools. Posttu provides a secure, first-party MCP server built directly into your account at /api/v1/mcp. By delegating access, you can equip LLMs and AI agents with the ability to schedule posts, manage your unified inbox, monitor workflows, and operate your connected platform accounts on your behalf.

Authentication & Connection Flow

Posttu supports two authentication methods for connecting external clients and AI assistants to /api/v1/mcp:
  1. Developer API Keys (Recommended for Desktop & IDEs): Static credentials generated from your dashboard. Ideal for Claude Desktop, Cursor, Zed, CLI tools, scripts, and server-to-server workflows.
  2. OAuth 2.1 with Dynamic Discovery (Recommended for Autonomous AI Platforms): RFC 9728 & RFC 8414 compliant authentication with PKCE. Ideal for multi-tenant AI agents, ChatGPT custom GPTs, Claude.ai connectors, and automated client onboarding.
The fastest way to connect Claude Desktop, Cursor, Zed, or custom scripts is using a workspace Developer API Key:
1

1. Generate an API Key

Navigate to Dashboard → Settings → API Keys and click Create New Key. Choose an expiration window and assign the required scopes (such as posts:write, inbox:read, or full workspace access). Copy your secret key.
2

2. Add to Client Configuration

Configure your MCP client with the Posttu endpoint and pass the key in the Authorization header:
3

3. Execute MCP Tools

The client initiates a connection to https://posttu.com/api/v1/mcp. All tool requests are authenticated directly against your organization without requiring browser redirects or token refresh handshakes.

Available AI Tools

Once authorized, your AI assistant inherits a suite of standard tools to manage your workspace. Every tool supports dual execution as both a first-party MCP tool and a REST API route under /api/v1:

Posts & Scheduling Tools

  • list_posts: List drafts, scheduled posts, and items in the approval queue.
  • create_post: Draft new social posts, queue scheduled content, or submit items for post-approval.
  • update_post: Update the content, media, schedule time, or settings of an existing post.
  • bulk_upload_posts: Bulk create and schedule posts using either a JSON payload or a multipart CSV/JSON file upload.
  • approve_posts: Approve queued posts in your workspace’s approval pool.
  • reject_posts: Reject queued posts and provide feedback/reasons.
  • move_post_to_draft: Revert scheduled or approved posts back to drafts for editing.
  • generate_fansly_permissions: Generate the complex permissions payload required by Fansly to apply paywalls, subscription gates, or tip constraints.

Calendar & Workspace Tools

  • get_schedule: Retrieve your structured calendar schedule grouped by day.
  • list_tags: List all tags defined in the workspace.
  • create_tag: Create a custom tag with specified hex colors.
  • tag_item: Attach a tag to a social post, inbox item, workflow, or media.

Unified Inbox Tools

Automation Workflows Tools

Connected Platform Channel APIs

Beyond workspace management, the MCP server exposes 462 tools that operate on your connected platform channels — the Instagram, Fanvue, TikTok (etc.) accounts you connected in the dashboard. Each platform has a dedicated MCP reference page detailing tool names, parameters, scopes, and schemas: These tools require the target channel to be connected in your workspace. For full parameter schemas and scopes, explore the Platform Channel Tools reference.

Public Social Media Scrapers

Posttu’s first-party MCP server includes 164 tools to scrape public data from 27+ social media platforms without requiring OAuth channel authentication. These tools are prefixed with scrape_:
  • TikTok Scraper: scrape_tiktok_profile, scrape_tiktok_profile_videos, search, and metadata.
  • Instagram Scraper: scrape_instagram_profile, scrape_instagram_posts, reels, and stories.
  • YouTube Scraper: scrape_youtube_channel, scrape_youtube_video, playlists, and transcripts.
  • X (Twitter) Scraper: scrape_twitter_profile, search, and tweets.
  • Other Platforms: Search, profiles, and feeds on Reddit, Threads, Spotify, Twitch, Snapchat, Pinterest, and more.
Explore the complete Public Scrapers MCP Reference.

Client Transport Standards

Posttu’s first-party MCP server runs on stateless Streamable HTTP across two supported protocol eras: 2026-07-28 (modern stateless core) and 2025-11-25 (backwards-compatible stateless Streamable HTTP).

MCP 2026-07-28 Stateless Features

  • Per-Request Metadata (_meta): Every request is evaluated independently. Metadata such as io.modelcontextprotocol/protocolVersion ("2026-07-28"), io.modelcontextprotocol/clientCapabilities, and progressToken live inside params._meta.
  • Header Mirroring & Validation: Modern HTTP requests include headers mirrored from the request body so intermediaries can route without body parsing:
    • MCP-Protocol-Version: Declares protocol version (2026-07-28 or 2025-11-25).
    • Mcp-Method: Declares JSON-RPC method name (e.g. tools/call).
    • Mcp-Name: Declares target tool or resource identifier (e.g. list_posts). Non-ASCII names use RFC 2047 Base64 encoding (=?base64?...?=).
  • server/discover Endpoint: Clients call POST /api/v1/mcp with method "server/discover" to query supported versions (["2026-07-28", "2025-11-25"]), server metadata, and advertised capabilities.
  • Scope-Filtered & Paginated Tool Discovery: tools/list returns only tools permitted by the caller’s token scopes, paginated in pages of 100 (cursor / nextCursor), with ToolAnnotations (readOnlyHint, destructiveHint, idempotentHint, openWorldHint) on every tool.
  • Structured Tool Outputs & MCP Apps: tools/call returns both human-readable content and machine-readable structuredContent alongside interactive MCP App UI resources (ui://posttu/*).
  • Native MCP Skills Extension: Compatible clients can discover and read Posttu’s first-party agent skills (posttu, posttu-platform, posttu-scraper) directly over MCP via skills/list, skills/get, and resources/directory/read.
  • Stateless 2025-11-25 Compatibility: Clients negotiating 2025-11-25 via initialize work seamlessly over stateless POST /api/v1/mcp without requiring session affinity or SSE streams.

Connection Examples

You can authenticate connections using either a Developer API Key (generated from Dashboard → Settings → API Keys) or a valid OAuth 2.1 access token.

1. Claude Desktop

To connect Claude Desktop to your Posttu workspace, add the following to your claude_desktop_config.json file (located at ~/Library/Application Support/Claude/claude_desktop_config.json on macOS or %APPDATA%\Claude\claude_desktop_config.json on Windows):

2. Cursor & IDE Tools

For Cursor, Zed, n8n, or any client with remote MCP support, configure the server in .cursor/mcp.json or your IDE settings:
Use "type": "http" (Streamable HTTP).

3. Custom Node.js Script

Connect programmatically using the official @modelcontextprotocol/client v2 SDK with StreamableHTTPClientTransport:

4. Codex & OpenClaw Setup

Codex and OpenClaw support connecting to remote Streamable HTTP MCP servers in both CLI and IDE extensions. Configure Posttu inside your config.toml:
If you prefer interactive OAuth 2.1 login via the CLI rather than a static API key:

5. Anthropic Messages API (Claude MCP Connector)

Connect Posttu’s MCP server directly from Anthropic’s Claude Messages API by supplying the mcp_servers and tools parameters:

Troubleshooting & Protocol Error Codes

  • 401 Unauthorized: Your access token or API key is missing, invalid, or expired. Follow the WWW-Authenticate resource_metadata pointer (https://posttu.com/.well-known/oauth-protected-resource/api/v1/mcp) or verify your API key.
  • 403 Forbidden (insufficient_scope): Your token lacks the required scope for the requested tool. Inspect the scope parameter in the WWW-Authenticate response header and request an updated grant or API key.
  • 400 Bad Request (-32020 HeaderMismatch): An HTTP header value (e.g. Mcp-Method or MCP-Protocol-Version) does not match the JSON-RPC body payload. Ensure mirrored headers match body values exactly.
  • 400 Bad Request (-32022 UnsupportedProtocolVersion): The client requested an unsupported protocol version. Use 2026-07-28 or 2025-11-25.
  • 405 Method Not Allowed: Posttu’s MCP endpoint is stateless Streamable HTTP (POST /api/v1/mcp). Legacy GET SSE session streams are not supported.
Last modified on November 27, 2026