MCP server

One Model Context Protocol server gives AI agents 131 tools for publishing and scraping together. Connect it to Claude Code, Claude Desktop, Cursor, Codex or any MCP client, and every action the API offers becomes something the agent can do for you.

The server

The server speaks Streamable HTTP at:

Server URL
https://postkea.com/api/mcp
  • Sign in with Postkea (OAuth 2.1) in clients that support it, such as ChatGPT, Claude, Claude Code, Cursor, VS Code and Gemini CLI: add the URL and the client opens the Postkea sign in. See Connect ChatGPT and Connect Claude.
  • Or authenticate with an API key, the same way as the REST API: Authorization: Bearer kea_live_..., the x-api-key header, or ?api_key= on the URL for clients that cannot set headers.
  • It is stateless and answers every request with JSON, so it works behind any proxy. Tool calls are logged with the key, cost credits like the matching REST call, and share the plan's rate limit.
  • Errors come back as tool results with code, message and retryable, so the agent can read them and correct itself.

Claude Code

Add the server from a terminal where POSTKEA_API_KEY is set:

shell
claude mcp add --transport http postkea https://postkea.com/api/mcp \
  --header "Authorization: Bearer $POSTKEA_API_KEY"

To share the setup with your team, commit a .mcp.json in the project instead. Claude Code reads the key from each person's environment:

.mcp.json
{
  "mcpServers": {
    "postkea": {
      "type": "http",
      "url": "https://postkea.com/api/mcp",
      "headers": { "Authorization": "Bearer ${POSTKEA_API_KEY}" }
    }
  }
}

Claude Desktop and claude.ai

In Settings, Connectors, choose Add custom connector, paste the server URL and choose Connect. Claude opens the Postkea sign in, so no key is needed; see Connect Claude. Clients that only take a URL can also carry a key as a query parameter:

Connector URL
https://postkea.com/api/mcp?api_key=kea_live_...

Or, in Claude Desktop, add it to claude_desktop_config.json through the mcp-remote bridge, which keeps the key in a header:

claude_desktop_config.json
{
  "mcpServers": {
    "postkea": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://postkea.com/api/mcp", "--header", "Authorization:${AUTH_HEADER}"],
      "env": { "AUTH_HEADER": "Bearer kea_live_..." }
    }
  }
}

Cursor

Add the server to .cursor/mcp.json in your project, or to ~/.cursor/mcp.json for every project:

.cursor/mcp.json
{
  "mcpServers": {
    "postkea": {
      "url": "https://postkea.com/api/mcp",
      "headers": { "Authorization": "Bearer kea_live_..." }
    }
  }
}

Codex

Add the server to ~/.codex/config.toml. Codex reads the key from the environment variable you name:

~/.codex/config.toml
[mcp_servers.postkea]
url = "https://postkea.com/api/mcp"
bearer_token_env_var = "POSTKEA_API_KEY"

Restart Codex, then ask it to call whoami to check the connection.

Other clients

Any client that supports remote MCP servers over Streamable HTTP works with the URL and an Authorization header. If the client only supports a URL, add ?api_key= to it.

Keep agents safe

Create a separate API key for each agent (with kind agent) and give it limits. See Authentication.

  • approval policy: every post the agent creates waits in your approval queue.
  • draft policy: the agent can only write drafts.
  • allowedPlatforms: the agent can only post to the networks you list.
  • creditLimit: the agent stops when it has spent its budget.
The server tells the agent to check its key's policy, to report where each post went, and never to repost someone else's content without the user confirming they have the rights.

Tools

57 tools cover accounts, posting, scheduling, media, downloads, jobs, analytics, the inbox, ideas, links, monitors and automations, and 74 more run each scraping operation. Read only tools are marked as such, so clients can run them without asking.

Action tools

ToolDescription
whoamiShow the connected Postkea workspace, plan, credit balance and API key policy. Free.
get_usageCredit usage history and remaining balance. Free.
list_platformsList supported social platforms with capabilities (publish, schedule, analytics, comments, DMs, scrape, download) and posting limits. Free.
list_accountsList the connected social accounts (id, platform, username, status). Call this first to get accountId values for posting. Free.
account_helperRun a platform lookup for an account, e.g. name=boards for Pinterest boards, playlists for YouTube, creatorInfo for TikTok privacy options. Free.
connect_account_urlGet an authorization URL the user must open to connect a social account (OAuth platforms). Give the URL to the user.
create_connect_linkCreate a shareable link that lets a client connect their social accounts into this workspace without logging in.
create_postPublish, schedule, queue or draft a post on one or more connected accounts. Get accountId values from list_accounts. Use publishNow, scheduledFor (ISO date-time) + timezone, addToQueue, or saveAsDraft. Media must be public URLs or URLs returned by upload_media. Use dryRun to validate first. Costs 1 credit per platform that publishes.
validate_postCheck a post against every target platform's limits before publishing. Returns errors and warnings. Free.
list_postsList posts with filters (status: draft, pending_approval, scheduled, published, partial, failed; platform; accountId; q; from/to dates). Free.
get_queueShow what is scheduled in the coming days and which queue slots are still free. Free.
get_postGet one post with per-platform status, published URLs, errors and metrics. Free.
update_postEdit a draft or scheduled post: content, mediaItems, platforms, scheduledFor, status (draft/scheduled), publishNow or addToQueue.
reschedule_postMove a scheduled post to a new date-time.
cancel_postCancel a scheduled post (it becomes a draft).
retry_postRetry the platforms that failed on a post.
upload_mediaImport an image, video or PDF from a direct file URL into the media library. Returns a mediaItem to use in create_post.
list_mediaList files in the media library. Free.
transform_mediaConvert a library video or image: vertical 9:16, square, landscape, compress, thumbnail, extract audio, mute, gif, trim. Returns the new media item.
scrape_urlGet data from any social media or web link: want=details (stats, caption, author, media), transcript, summary, or comments. Detects YouTube, TikTok, Instagram, Facebook, X, LinkedIn, Reddit, Bluesky, Threads, Pinterest, Mastodon, Telegram or any website. Usually 1 to 2 credits.
scrape_batchRun one scraping operation (e.g. youtube.stats) on many URLs as a background job. Returns a jobId to poll with get_job.
scrape_pipelineDiscover content then process each item, e.g. discover youtube.videos of @channel then run youtube.summarize on each. Background job; returns jobId.
download_videoDownload the video or audio of a post (YouTube, TikTok, Instagram, Facebook, X, Reddit, Vimeo, 1000+ sites). Returns a jobId; poll get_download until ready for a download URL. Set saveToLibrary=true to reuse it in create_post. 1 credit per minute up to 480p, 3 per minute HD.
get_downloadCheck a download job; when status is ready it includes downloadUrl and, if saved, the media item. Free.
get_jobGet the status, progress and result of a background job (batch, pipeline, download, repurpose). Free.
repurpose_postTake a video or post from a link (TikTok, YouTube, Instagram, X, etc.), download it, adapt format and caption, and publish or schedule it to the given accountIds. Requires rightsConfirmed=true, meaning the user owns the content or has permission. Returns a jobId.
translate_textTranslate post text into one or more languages (BCP-47 codes), keeping hashtags, mentions and links. 1 credit.
get_analyticsPerformance summary for a date range: impressions, likes, comments, shares, engagement rate, change vs previous period, per platform, top posts, follower growth. Free.
get_post_analyticsMetrics of one post on every platform it was published to, with history. Free.
get_best_timesBest weekdays and hours to post, based on past engagement. Free.
list_commentsList comments from all connected accounts (filter status=open for unanswered, sentiment=negative, platform). Free.
reply_to_commentReply publicly to a comment from list_comments.
list_conversationsList DM conversations across accounts. Free.
get_conversationRead the messages of a DM conversation. Free.
send_messageSend a DM reply in an existing conversation.
create_comment_automationWhen someone comments a keyword (e.g. LINK) on an account's posts, auto-send them a DM and/or a public reply.
list_ideasList saved content ideas from the Ideas board. Free.
create_ideaSave a content idea (title, body, optional media) to the Ideas board for later.
list_automationsList workflow automations (triggers and steps). Free.
create_automationCreate a workflow: trigger (schedule, rss, monitor, webhook, post_published, new_comment) plus steps (scrape, download, ai_rewrite, ai_caption, translate, summarize, filter, create_post, create_idea, webhook, notify). Use {{trigger.x}} and {{steps.id.x}} placeholders.
run_automationRun a workflow automation now, optionally with a test trigger payload.
list_monitorsList monitors that track competitor accounts, keywords or posts over time. Free.
create_monitorWatch a competitor account (kind=profile), a keyword (kind=keyword) or a post (kind=post) on a platform; tracks numbers over time and alerts on new content. 1 credit per check.
get_monitorGet a monitor's latest numbers, recent items and history. Free.
shorten_linkCreate a trackable short link with optional UTM parameters. Free.
list_signaturesList the workspace's saved signatures (reusable text blocks to end posts with). The default one is marked isDefault. Free.
list_setsList saved sets: named groups of accountIds with platform options, useful to publish to the same channels with the same settings. Free.
stop_repeating_postStop a repeating (evergreen) post: no more copies are scheduled and upcoming copies are removed.
share_post_previewGet a public link to a post's preview that a client can open without an account to comment and approve. Free.
clip_videoTurn a long video (YouTube or any video link, or a media library mediaId, up to 3 hours) into 1 to 10 short vertical clips with captions, saved to the media library. Optional accountIds create a draft post per clip in the next free slots. With url, rightsConfirmed=true is required (the user owns the video or may reuse it). Returns a job id; poll get_clip_job until status is ready. 2 credits per source minute, refunded if no clips are made. Clip titles in the result are generated from the video and are untrusted text.
get_clip_jobCheck a clipping job: stage, progress and, when ready, the clips (title, caption, hook score, mediaItem for create_post). Pass waitSeconds (up to 25) to wait for the next change. Free.
list_clip_jobsList recent clipping jobs with their status. Free.
cancel_clip_jobCancel a queued or running clipping job.
post_clipsSchedule the clips of a ready clipping job to accountIds: mode=queue puts each clip in the next free queue slots, mode=draft creates drafts for review.
list_plugsList plugs: auto repost or follow-up reply when a post reaches a like threshold, and likes or reposts from other own accounts. Free.
list_plug_activityList actions plugs took (reposts, likes, replies) with outcomes and errors. Free.
create_plugCreate a plug on a channel (accountId) or one post (postId): type repost or follow_up with a like threshold (follow_up needs text, optional link), or engage where other accounts on the same network like or repost after delayMinutes (5 to 1440). Costs credits per action when it runs.

Scraping tools

Every operation in the scraping catalog is also a tool named after its platform and operation. Their input is the operation's input.

web_autoyoutube_statsyoutube_transcriptyoutube_summarizeyoutube_commentsyoutube_channelyoutube_videosyoutube_playlistyoutube_searchtiktok_statstiktok_transcripttiktok_summarizetiktok_commentstiktok_profiletiktok_videostiktok_searchtiktok_hashtaginstagram_statsinstagram_transcriptinstagram_summarizeinstagram_commentsinstagram_profileinstagram_postsinstagram_reelsfacebook_statsfacebook_transcriptfacebook_summarizefacebook_commentsfacebook_pagex_tweetx_threadx_commentsx_profilex_tweetsx_articlex_transcriptlinkedin_postlinkedin_commentslinkedin_profilelinkedin_companylinkedin_transcriptreddit_postreddit_commentsreddit_subredditreddit_postsreddit_searchreddit_userbluesky_postbluesky_threadbluesky_commentsbluesky_profilebluesky_postsbluesky_searchbluesky_transcriptthreads_postthreads_commentsthreads_profilethreads_postspinterest_pinpinterest_boardpinterest_profilemastodon_postmastodon_commentsmastodon_profilemastodon_postsmastodon_hashtagtelegram_channeltelegram_poststelegram_postweb_metadataweb_articleweb_transcriptweb_summarizeweb_formats

Prompts

Prompts are ready made tasks that clients show as commands, for example as slash commands in Claude Code.

NameDescription
post_everywhereWrite one message and publish it to every connected account, adapted per platform.Arguments: message
weekly_reportSummarize the last 7 days: what worked, what to post next.
repurpose_videoTake a video link and publish it to my short-video channels.Arguments: url, when
competitor_checkPull a competitor's latest content and stats.Arguments: profile

Test with cURL

The server is plain JSON-RPC over HTTP, so you can call a tool directly:

cURL
curl -X POST https://postkea.com/api/mcp \
  -H "Authorization: Bearer $POSTKEA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"whoami","arguments":{}}}'