Skip to main content
All connectors
qbash Connectors / Facebook

Facebook MCP serverand Python AI tasks

qbash hosts a Facebook MCP server you can use in Claude, ChatGPT, Codex, Cursor, Grok Bot and Muse. Developers use qbash Tasks to write cloud-hosted Python functions that pair Facebook with models such as Claude and GPT.

Add the qbash MCP

Use Facebook from Claude Code, Codex, Cursor and other MCP clients. Connect Facebook in qbash, and your agent can work with its data and build Tasks that call it.

claude mcp add --transport http qbash https://mcp.qbash.com/mcp

Then run /mcp in Claude Code and sign in with qbash.

  • List the Pages the connected user manages, with each Page's tasks
  • Read a Page's name, category, follower count, link and about text
  • List a Page's published posts with their message, link and created time
  • Read one post with its message, attachments, shares and permalink
  • List posts scheduled to publish later
  • Publish a text or link post now, or schedule it between 10 minutes and 30 days ahead
Read the docs

Write a Facebook task in Python

A qbash Task is a Python function hosted in the cloud. Python is the runtime and defines the process, and built-in inline prompts run on leading models such as Claude, GPT, Gemini and Grok.

Run a Task on a schedule, from an HTTP request or when a connected app sends an event. Your agents and chat tools call it over MCP.

Each run is logged with its inputs and results, and you can turn data logging off for any Task. Every Task has version control, and each run is locked to the version it ran.

Find the comments on your latest post that need a reply

list_comments reads the comments on a Page post. An inline prompt picks out the questions and complaints that need an answer and drafts a reply for each one.

main.py
comments = qbash.integrations.facebook.list_comments(
object_id="your-page-id_your-post-id",
filter="toplevel",
order="reverse_chronological",
fields=["id", "message", "created_time", "like_count", "comment_count"],
limit=100,
)
rows = comments["data"]
if rows:
replies = qbash.ai.run_prompt(
slug="facebook-comment-replies",
variables={"comments": json.dumps(rows)},
)
qbash.output(replies)
else:
qbash.output("This post has no comments yet.")
Sample list_comments response
{
"status": "success",
"data": [
{
"id": "1029384756_901827364",
"message": "Do you ship to Canada? The site only shows US addresses at checkout.",
"created_time": "2026-11-11T16:42:10+0000",
"like_count": 3,
"comment_count": 0
},
{
"id": "1029384756_901827391",
"message": "Love the new colourway, ordered two.",
"created_time": "2026-11-11T17:05:48+0000",
"like_count": 5,
"comment_count": 0
},
{
"id": "1029384756_901827412",
"message": "My order from the 2nd still says processing. Order 48213.",
"created_time": "2026-11-11T18:20:03+0000",
"like_count": 0,
"comment_count": 0
}
],
"paging": {
"cursors": {
"before": "QVFIUjR",
"after": "QVFIUmF"
}
}
}

Custom MCP server

Build a custom MCP server with Facebook

Create a hosted MCP server that combines Facebook tools with your other connectors, Tasks and memory folders. You choose each tool it exposes, so a server can share Facebook reads with write tools left off.

Share the server with your team, and each person adds it to the client they already use.

How to set it up

  1. Connect Facebook on the qbash Connectors page.
  2. Create an MCP server and add the Facebook tools you want to share.
  3. Paste the server URL into your client. It connects with OAuth or an access token.

Facebook MCP questions

Does Facebook have an official MCP server?

Meta has not published an MCP server for organic Facebook Pages as of November 2026. Its official Meta Ads MCP server at mcp.facebook.com/ads manages ad campaigns, and the Meta Ads connector covers that side. The qbash server covers Page posts, comments and insights on one URL with your other connectors, and the same methods run in Python Tasks.

What does the Facebook connector need to connect?

A Facebook sign-in from someone with a task on the Page, granting pages_show_list and pages_read_engagement to read posts and insights. Publishing needs pages_manage_posts, and replying to, hiding or deleting comments needs pages_manage_engagement.

Does the Facebook connector work with personal profiles or groups?

It works with Facebook Pages only. Meta's Graph API does not let apps post to personal profiles, so every post and reply goes out as the Page.

Build a Facebook task

Write it in Python with AI steps, or describe it to your coding agent through the qbash MCP.