/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:
- 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.
- 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.
- Developer API Key (Desktop & IDEs)
- OAuth 2.1 & OIDC (AI Agent Platforms)
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
list_inbox: List conversations, comments, direct messages, and mentions.send_message: Send a direct message inside a thread.send_comment: Post a comment on a published post or reply to an existing comment.mark_thread_read: Mark conversations as read or unread.update_thread_pin: Pin or unpin threads in your inbox.update_thread_priority: Update the priority level of an inbox thread or item.list_tracked_keywords: Retrieve all monitored social listening keywords and match counts.create_tracked_keyword: Create a new social listening keyword monitor across 12 social platforms.get_listening_analytics: Retrieve social listening metrics, mention trends, and sentiment distribution.
Automation Workflows Tools
list_workflows: List active and draft automation workflows with run statistics.create_workflow: Initialize a new automation workflow container with an empty draft.get_workflow: Retrieve details, draft trigger, step graph, and recent runs of a workflow.update_workflow: Update workflow metadata or canvas graph definition.delete_workflow: Delete an automation workflow and its execution history.activate_workflow: Toggle active/inactive production status of a workflow.set_workflow_trigger: Configure or update the trigger node (schedule, webhook, RSS, app event).upsert_workflow_step: Add or update step nodes in a workflow canvas using{{...}}expressions.delete_workflow_step: Delete a step node from a workflow draft canvas.test_workflow: Execute an isolated test run of a workflow draft.get_workflow_runs: List historical execution run logs for a workflow.get_workflow_run_details: Retrieve detailed per-step execution inputs, outputs, and logs.list_pieces: List and search available workflow triggers and actions across 75+ integrations.
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 withscrape_:
- 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.
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 asio.modelcontextprotocol/protocolVersion("2026-07-28"),io.modelcontextprotocol/clientCapabilities, andprogressTokenlive insideparams._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-28or2025-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/discoverEndpoint: Clients callPOST /api/v1/mcpwith method"server/discover"to query supported versions (["2026-07-28", "2025-11-25"]), server metadata, and advertised capabilities.- Scope-Filtered & Paginated Tool Discovery:
tools/listreturns only tools permitted by the caller’s token scopes, paginated in pages of 100 (cursor/nextCursor), withToolAnnotations(readOnlyHint,destructiveHint,idempotentHint,openWorldHint) on every tool. - Structured Tool Outputs & MCP Apps:
tools/callreturns both human-readablecontentand machine-readablestructuredContentalongside 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 viaskills/list,skills/get, andresources/directory/read. - Stateless
2025-11-25Compatibility: Clients negotiating2025-11-25viainitializework seamlessly over statelessPOST /api/v1/mcpwithout 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 yourclaude_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:
"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 yourconfig.toml:
5. Anthropic Messages API (Claude MCP Connector)
Connect Posttu’s MCP server directly from Anthropic’s Claude Messages API by supplying themcp_servers and tools parameters:
- cURL
- Node.js / TypeScript
- Python
Troubleshooting & Protocol Error Codes
401 Unauthorized: Your access token or API key is missing, invalid, or expired. Follow theWWW-Authenticateresource_metadatapointer (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 thescopeparameter in theWWW-Authenticateresponse header and request an updated grant or API key.400 Bad Request(-32020HeaderMismatch): An HTTP header value (e.g.Mcp-MethodorMCP-Protocol-Version) does not match the JSON-RPC body payload. Ensure mirrored headers match body values exactly.400 Bad Request(-32022UnsupportedProtocolVersion): The client requested an unsupported protocol version. Use2026-07-28or2025-11-25.405 Method Not Allowed: Posttu’s MCP endpoint is stateless Streamable HTTP (POST /api/v1/mcp). LegacyGETSSE session streams are not supported.

