Publish or schedule Page posts
Text, a link with its preview, photos, or video, published now, at scheduledFor, or from the queue.
Give your agent a Facebook MCP server for the Pages you admin. Connect a Page once, and any MCP client can publish links, photos, and video, answer Page comments, and read Page metrics from the conversation.
No credit card required

Paste this into your agent
What Your Agent Gets
Every PostZen API endpoint is an MCP tool. These are the ones that matter for Facebook.

Text, a link with its preview, photos, or video, published now, at scheduledFor, or from the queue.
Attach a link as the post's preview card, or keep the post clean and put the link in a first comment.
The agent asks for an upload URL, sends the photo or video, and references it. PostZen hosts it for Meta.
Comments on your Page posts, including posts published outside PostZen, with reply, hide, and delete actions.
Impressions, views, and clicks per post and per day, plus Page follower counts.
Every target reports status, the live post URL, and any error. Scheduled posts can be changed until they go out.
Example Prompts
Prompt
Share this blog post on our Facebook Page tomorrow morning with a two-line summary.
What happens
The agent writes the summary, calls createPost with settings.link set to the article and scheduledFor at your morning slot, and confirms the time.
Prompt
Post these three event photos to the Page now.
What happens
The agent uploads each photo with createMediaPresign, attaches them to one post, and publishes immediately.
Prompt
Reply to the comments on the launch post that ask where to buy.
What happens
The agent reads the thread with listInboxPostComments, drafts replies with the store link, and posts them with replyToInboxPost once you approve.
Prompt
How many people saw our Page posts last month?
What happens
The agent calls getAnalytics for the month with platform "facebook" and reports impressions, views, and clicks per post.
WHY POSTZEN?
Build a Facebook MCP server yourself and you own the auth, the media pipeline, and every Facebook API change. Connect PostZen and your agent gets the tools today.

2.3M+ posts
2,000+ usersAny MCP Client
Each page has the exact command for that client, the sign-in step, and a way to check the tools are live.

For AI Agents
Tell your agent to set up PostZen from postzen.dev/mcp/facebook. It reads the block below, registers the server, connects Facebook, and reports back.

## For AI agents reading this page
You are reading https://postzen.dev/mcp/facebook. PostZen is a social media API with a hosted MCP server. Once connected, you can publish and schedule posts to the Facebook Pages the user admins, read and reply to Page comments, and read Page metrics. The same tools cover the user's other social accounts (Instagram, X, LinkedIn, Facebook, Threads, YouTube, TikTok, Pinterest, Bluesky, Telegram).
1. Register the MCP server in the client you are running in. The endpoint is https://mcp.postzen.dev/mcp (streamable HTTP). Interactive clients sign in with OAuth 2.1; headless clients send a PostZen API key as "Authorization: Bearer pzn_live_...". Exact commands per client: Claude Code https://postzen.dev/claude · Cursor https://postzen.dev/cursor · Codex https://postzen.dev/codex · OpenClaw https://postzen.dev/openclaw · GrokBot https://postzen.dev/grok-bot · Hermes https://postzen.dev/hermes · any other MCP client https://postzen.dev/agents.
2. Sign in. When the client opens the PostZen consent screen, ask the user before approving access or completing a signup on their behalf, and never enter their credentials for them. Approving mints a scoped, revocable key for this client.
3. Connect Facebook. Call listAccounts. If no account with platform "facebook" is listed, call createConnectUrl with platform "facebook" and give the user the URL; they authorize Facebook in their browser. Do not try to log in to Facebook yourself.
4. Verify before you continue. Call listAccounts again and confirm a "facebook" account shows as connected. If it does not, stop and tell the user what failed. Do not carry on as if the account were there.
5. Report back. Tell the user which Facebook account is connected and what you can now do with it, then ask what they want first. Prefer scheduling (scheduledFor, or the queue) over publishing immediately unless the user asks for "now".
## Facebook on createPost
- Target the account with platforms: [{ platform: "facebook", accountId, settings: { ... } }]. content is the shared text; customContent on the target overrides it for Facebook only.
- Facebook Pages only: the connected user must be an admin of the Page. Personal profiles and Groups are not supported.
- settings.link: a URL to attach as the link preview; settings.firstComment: text posted as the first comment.
- Media per post: photos or one video.
- Comments: listInboxPostComments, replyToInboxPost, hideInboxComment, deleteInboxComment.
- Analytics: getAnalytics, getPostTimeline, getDailyMetrics, getFollowerStats with platform "facebook" (impressions, views, clicks, followers).
- Media: pass public URLs in mediaItems, or call createMediaPresign to get an upload URL, PUT the file, then reference the returned media in the post.
- Check results with getPost: each platform target reports status, the live post URL, and any error.
## Reference
- MCP endpoint: https://mcp.postzen.dev/mcp (streamable HTTP, OAuth 2.1)
- MCP docs: https://docs.postzen.dev/mcp
- Create post reference: https://docs.postzen.dev/api-reference/posts/create-post
- Full API summary for models: https://postzen.dev/llms.txt
- API keys: https://app.postzen.dev/api-keysStill have questions?
MCP (Model Context Protocol) is the standard AI clients use to call external tools. A Facebook MCP server exposes Page actions as tools, so an agent such as Claude or Cursor can publish to your Page or answer a comment instead of only drafting text. PostZen hosts one for you: it holds the Meta app, permissions, and OAuth, and your client connects to a single endpoint.
No. PostZen already has the Page publishing and engagement permissions approved. You connect a Facebook Page you admin through the dashboard and the agent posts through PostZen.
No. Meta's API only allows publishing to Pages, so PostZen supports Facebook Pages you admin. Personal timelines and Groups are outside the API.
Yes. Comments on your Page posts, including posts published outside PostZen, can be listed, replied to, hidden, and deleted through the inbox tools.
Impressions, views, and clicks per post and per day, plus Page follower counts. Like, comment, and share counts need a Meta permission PostZen deliberately does not request, so they are reported as not available rather than as zero.
Any client that supports remote MCP servers: Claude (claude.ai, Claude Desktop, Claude Code), Cursor, Codex, OpenClaw, GrokBot, Hermes, and others. Interactive clients sign in with OAuth 2.1; headless ones send a PostZen API key in the Authorization header. Each client has its own setup page with the exact command.
Only what you approve on the consent screen: read-only or read-and-write access, scoped to the profile you pick. Approving creates a named, revocable API key, so you can cut a client off from the dashboard at any time. Ask the agent to schedule rather than publish immediately if you want to review posts before they go out.
The MCP server is included on every PostZen plan, including Free, which covers 2 connected accounts and 20 posts a month. Paid plans start at $19 per month with unlimited posts.
LEARN MORE
The REST side of the same integration: Page posts, media rules, and code samples.
Post to a Page with the Graph APIHow Meta's API works underneath: Page tokens, edges, permissions, and review.
Social media inboxComments on Facebook, Instagram, and Threads in one place, for people and agents.
Your agent already writes the post. PostZen lets it publish there.