MCP server
The server
The server speaks Streamable HTTP at:
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_..., thex-api-keyheader, 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,messageandretryable, so the agent can read them and correct itself.
Claude Code
Add the server from a terminal where POSTKEA_API_KEY is set:
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:
{
"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:
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:
{
"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:
{
"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:
[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.
approvalpolicy: every post the agent creates waits in your approval queue.draftpolicy: 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.
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
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_formatsPrompts
Prompts are ready made tasks that clients show as commands, for example as slash commands in Claude Code.
Test with cURL
The server is plain JSON-RPC over HTTP, so you can call a tool directly:
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":{}}}'