Skip to content

AI Agents (MCP)

PostClaw runs a remote Model Context Protocol server. Connect an AI assistant to it and you can ask, in plain words, “write three posts for next week and schedule them on my Facebook Page”. The assistant checks your channels, drafts the posts and puts them on your calendar, as you.

Available on every plan, including Free. Your plan’s limits apply exactly as they do in the app.


What you need

  • A PostClaw account with at least one connected channel.
  • An MCP client that can send an Authorization header over Streamable HTTP: Claude Code, Cursor, VS Code, and most other MCP clients.
  • A token from Settings → AI agents.

Claude.ai and ChatGPT in the browser are not supported yet. They need an OAuth sign-in, which is planned.


Connect in two minutes

  1. Open Settings → AI agents and click New token.
  2. Give it a name you will recognise (for example “Cursor on my laptop”) and choose its permissions.
  3. Copy the token. It is shown only once. If you lose it, revoke it and create a new one.
  4. Add the server to your client. The settings page shows these snippets with your token already filled in.

Server URL: https://app.postclaw.fun/mcp

Claude Code

claude mcp add --transport http postclaw https://app.postclaw.fun/mcp --header "Authorization: Bearer YOUR_TOKEN"

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "postclaw": {
      "url": "https://app.postclaw.fun/mcp",
      "headers": { "Authorization": "Bearer YOUR_TOKEN" }
    }
  }
}

VS Code (.vscode/mcp.json)

{
  "servers": {
    "postclaw": {
      "type": "http",
      "url": "https://app.postclaw.fun/mcp",
      "headers": { "Authorization": "Bearer YOUR_TOKEN" }
    }
  }
}

Then ask your assistant something like “Which channels do I have in PostClaw?” to check the connection.


Permissions

Each token has its own permissions. The assistant only sees the tools its token allows.

PermissionWhat the assistant can do
Read (always on)See channels, posts, media and analytics, and get posting-time suggestions
WriteCreate and edit drafts, upload media, write posts with AI, create AI images
Publish (off by default)Schedule, publish, unschedule and delete posts on your real accounts

Without Publish, an assistant can only leave drafts for you to review and approve in PostClaw. Turn it on only for assistants you trust to post on your behalf.

You can keep up to 10 active tokens. Revoking a token takes effect on the assistant’s next request.


Tools

ToolPermissionWhat it does
list_channelsReadConnected accounts and pages you can publish to
list_posts, get_postReadDrafts, scheduled and published posts, with live URLs and errors
get_analyticsReadTotals, per-platform breakdown, best times, top posts
suggest_posting_timesReadGood time slots per platform
list_mediaReadRecently uploaded media
generate_postWritePost text from a brief, optionally in your brand voice
adapt_postWriteOne piece of content rewritten for each platform
create_imageWriteAI images for your posts
upload_media, add_media_to_postWriteAttach your own images and video
create_post, update_postWriteCreate and edit drafts; setting a time schedules the post (needs Publish)
publish_postPublishPublish now and return each platform’s live post URL
unschedule_postPublishMove a scheduled post back to draft
delete_postPublishRemove a post from PostClaw

Media must be an https:// URL or a file sent through upload_media.

create_post and publish_post accept an optional idempotency_key. If the assistant retries a call with the same key within 24 hours, PostClaw returns the first result instead of creating or publishing twice.


Limits and credits

An assistant works under the same plan as you do in the app:

  • Posts per month, AI credits and image quota count the same whether you work in PostClaw or through an assistant.
  • AI tools use your own AI key when you have one connected in Settings.
  • Each token can make up to 60 requests per minute.
  • Every call is logged to your account.

Troubleshooting

What you seeWhyWhat to do
401 / “invalid token”The token is wrong or was revokedCreate a new token and update your client
429More than 60 requests a minute from one tokenWait a few seconds; the response says how long
A tool is missingThe token lacks the permission for itCreate a token with that permission
scope_missingScheduling or publishing without the Publish permissionEnable Publish on a new token, or schedule from the app
quota_exceeded, credit_cap_exceededYour plan’s monthly limit is used upWait for the next period or upgrade
”your … configuration failed”Your own AI key returned an error (quota, billing, expired sign-in)Fix or remove the key in Settings → Providers

Keep your tokens safe

A token acts as you. Treat it like a password:

  • Do not commit it to a repository or paste it into shared chats.
  • Use one token per device or tool, so you can revoke one without breaking the others.
  • Revoke tokens you no longer use in Settings → AI agents.