Trusted by 2,000+ users

Facebook MCP Server for Claude, Cursor, and Any AI Agent

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

Connect Facebook

Paste this into your agent

or add the MCP yourself
  • OAuth 2.1 sign-in, no API key to paste
  • Facebook Pages you admin, on one connection
  • Posts, comments, and Page metrics

What Your Agent Gets

Facebook tools, ready to call

Every PostZen API endpoint is an MCP tool. These are the ones that matter for Facebook.

createPost

Publish or schedule Page posts

Text, a link with its preview, photos, or video, published now, at scheduledFor, or from the queue.

settings.link · settings.firstComment

Links and first comments

Attach a link as the post's preview card, or keep the post clean and put the link in a first comment.

createMediaPresign

Upload media from the agent

The agent asks for an upload URL, sends the photo or video, and references it. PostZen hosts it for Meta.

listInboxPostComments · replyToInboxPost

Answer Page comments

Comments on your Page posts, including posts published outside PostZen, with reply, hide, and delete actions.

getAnalytics · getFollowerStats

Read Page metrics

Impressions, views, and clicks per post and per day, plus Page follower counts.

getPost · updatePost · deletePost

Check, edit, and cancel

Every target reports status, the live post URL, and any error. Scheduled posts can be changed until they go out.

Example Prompts

What to say to your agent

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?

PostZen vs. building it yourself

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.

PostZen

2.3M+ posts

2,000+ users
  • One hosted MCP endpoint; the client signs in with OAuth 2.1 and nothing runs on your machine
  • Facebook access already set up on PostZen: connect an account in a browser tab and post
  • The same createPost tool for Facebook and the other nine platforms
  • Scheduling, queues, retries, and media hosting handled server-side
  • Scoped, revocable access: read-only or read-and-write keys minted at consent

Build a Facebook MCP server yourself

  • Meta developer app, Business verification, and App Review for the pages_manage_posts and engagement permissions
  • User token to Page token exchange, with long-lived tokens you have to refresh
  • Separate Graph API edges for feed, photos, videos, comments, and insights
  • Rate limits and Graph API version deprecations to track every few months
  • A tool schema, auth layer, and hosting for the MCP server itself, then again for every other platform

Any MCP Client

Connect from the client you already use

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

Send your agent this page

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.

postzen.dev/mcp/facebook
## 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-keys

Frequently asked questions

Still have questions?

What is a Facebook MCP server?

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.

Do I need a Meta developer app or App Review?

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.

Can the agent post to personal profiles or Groups?

No. Meta's API only allows publishing to Pages, so PostZen supports Facebook Pages you admin. Personal timelines and Groups are outside the API.

Can the agent reply to Page comments?

Yes. Comments on your Page posts, including posts published outside PostZen, can be listed, replied to, hidden, and deleted through the inbox tools.

Which Facebook metrics are available?

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.

Which AI clients can use it?

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.

What can the agent access once connected?

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.

How much does the MCP server cost?

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

Give your agent Facebook

Your agent already writes the post. PostZen lets it publish there.