Facebook Pages MCP Server — Hosted Api Connectors Integration
MCP Server language Hosted language PublicManage Facebook Page posts, comments, insights, and inbox conversations.
Use with AI AssistantsMCP
Connect Claude, Cursor, or any MCP-compatible client — then call tools directly
① Add This MCP Server
Paste into your AI client config — then all its tools are available instantly.
{
"mcpServers": {
"facebook-pages": {
"url": "https://mcp.aerostack.dev/s/aerostack/mcp-facebook-pages",
"headers": {
"Authorization": "Bearer YOUR_AEROSTACK_TOKEN"
}
}
}
}Replace YOUR_AEROSTACK_TOKEN with your API token from the dashboard.
② Call a Tool
Ask your AI assistant to call a specific tool, or send raw JSON-RPC:
Natural Language Prompt
“Use the get_page tool to get page details including id, name, about, category, fan_count, website, phone, emails, and link”
Using a Workspace?
Add this MCP to your Workspace — your team shares one token, secrets are stored securely, and every AI agent in the workspace can call it without per-user setup.
description Overview
mcp-facebook-pages — Facebook Pages MCP Server
Automate your Facebook Page — manage posts, comments, conversations, media, and page insights from any AI agent.
Facebook Pages is Meta's platform for businesses, creators, and public figures to connect with their audiences at scale. This MCP server gives your agents full access to the Facebook Graph API v21.0: creating and scheduling posts, replying to comments and inbox messages, pulling engagement insights, and managing photos and videos.
Live endpoint: https://mcp.aerostack.dev/s/aerostack/mcp-facebook-pages
What You Can Do
- Automatically publish posts, photo posts, and promotional content on your Facebook Page
- Monitor and respond to comments and inbox conversations without leaving your workflow
- Pull page-level and post-level insights to track reach, engagement, and follower growth
- List and inspect photos and videos on the page with media insights
Available Tools
| Tool | Description |
|---|---|
| get_page | Get page details: id, name, about, category, fan_count, website, phone, emails, link |
| get_page_insights | Get page-level metrics (impressions, engaged users, fans, views) with period and date range |
| get_follower_count | Get current follower/fan count via the page_fans insights metric |
| update_page_info | Update page about text, description, or website URL |
| list_posts | List page posts with engagement summaries (likes, comments, shares) |
| get_post | Get full post details by ID including story, likes, comments, and shares |
| create_post | Create a text post with optional link attachment; supports draft (published=false) |
| create_photo_post | Create a photo post by URL with an optional caption |
| delete_post | Permanently delete a post by ID |
| get_post_insights | Get engagement metrics for a post: impressions, engaged users, clicks |
| list_comments | List comments on a post with filter (toplevel/stream) and pagination |
| reply_to_comment | Reply to a comment with a message |
| delete_comment | Permanently delete a comment by ID |
| hide_comment | Hide or unhide a comment from public view |
| list_conversations | List page inbox conversations (inbox/other folder) |
| get_conversation | Get a conversation with all its messages |
| reply_to_conversation | Send a reply in an existing inbox conversation |
| list_photos | List photos published on the page with image URLs and metadata |
| list_videos | List videos on the page with title, description, duration, and creation time |
| get_media_insights | Get insights metrics for a photo or video (impressions, engaged users, clicks) |
| _ping | Validate credentials by fetching basic page identity (id + name) |
Configuration
| Variable | Required | Description | How to Get |
|---|---|---|---|
| FACEBOOK_PAGE_ACCESS_TOKEN | Yes | Page Access Token for the target Facebook Page | Meta Developer Docs — Page Access Token — Generate via Facebook Login OAuth flow or the Graph API Explorer at developers.facebook.com/tools/explorer |
| FACEBOOK_PAGE_ID | Yes | Numeric ID of the Facebook Page to manage (e.g. 123456789012345) |
Found in your Page settings → About, or via GET /me/accounts with a User Access Token |
Required Permissions
Your Page Access Token must include the following permissions:
pages_read_engagement— read posts, comments, insightspages_manage_posts— create and delete postspages_manage_engagement— reply to and hide commentspages_messaging— read and reply to inbox conversationspages_show_list— list managed pages
Quick Start
Add to Aerostack Workspace
- Go to aerostack.dev → Your Project → MCPs
- Search for "Facebook Pages" and click Add to Workspace
- Add your
FACEBOOK_PAGE_ACCESS_TOKENandFACEBOOK_PAGE_IDunder Project → Secrets
Once added, every AI agent in your workspace can post to and monitor your Facebook Page automatically.
Example Prompts
"Post an announcement to our Facebook Page: 'Excited to announce our new product launch!'"
"List the last 10 posts on our page and show me the engagement for each"
"Reply to all unanswered comments on our latest post with a thank-you message"
"Show me our page impressions and follower count for the past week"
Direct API Call
curl -X POST https://mcp.aerostack.dev/s/aerostack/mcp-facebook-pages \
-H 'Content-Type: application/json' \
-H 'X-Mcp-Secret-FACEBOOK-PAGE-ACCESS-TOKEN: your-page-access-token' \
-H 'X-Mcp-Secret-FACEBOOK-PAGE-ID: 123456789012345' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"create_post","arguments":{"message":"Hello from Aerostack! Our AI agents can now post to Facebook Pages automatically."}}}'
License
MIT
terminal Tools (20)
Available tools on this MCP server. Each tool can be called directly from any AI agent.
get_page #1 Get page details including id, name, about, category, fan_count, website, phone, emails, and link.
get_page_insights #2 Get page-level insights metrics such as impressions, engaged users, fans, and page views.
get_follower_count #3 Get the current follower/fan count for the page using the page_fans metric.
update_page_info #4 Update page about text, description, or website URL.
list_posts #5 List page posts with engagement summaries (likes, comments, shares). Supports pagination via since/until timestamps.
get_post #6 Get full details of a specific post by ID (message, created_time, story, likes, comments, shares).
create_post #7 Create a text post on the page. Optionally include a link attachment. Set published=false to schedule.
create_photo_post #8 Create a photo post on the page by providing the URL of the photo image and an optional caption.
delete_post #9 Permanently delete a post from the page by post ID.
get_post_insights #10 Get engagement metrics for a specific post: impressions, engaged users, and clicks.
list_comments #11 List comments on a post. Supports pagination and filtering by stream or top-level only.
reply_to_comment #12 Reply to a comment on a post with a message.
delete_comment #13 Permanently delete a comment by comment ID.
hide_comment #14 Hide or unhide a comment on a post. Hidden comments are not visible to users other than the author.
list_conversations #15 List page inbox conversations. Returns conversation IDs, participants, and last message preview.
get_conversation #16 Get a conversation with all its messages by conversation ID.
reply_to_conversation #17 Send a reply message in an existing conversation.
list_photos #18 List photos published on the page with metadata and image URLs.
list_videos #19 List videos on the page including title, description, duration, and creation time.
get_media_insights #20 Get insights metrics for a specific photo or video (e.g. post_impressions, post_clicks, post_engaged_users).
Details
language Live Endpoint
https://mcp.aerostack.dev/s/aerostack/mcp-facebook-pages
Sub-50ms globally · Zero cold start
Publisher
Pre-built functions for the most common MCP tool patterns. Clone, extend, and deploy.
More in API Connectors
Browse API Connectors MCPs →Aerostack Registry
by @aerostack
Discover and invoke any MCP, Function, or Skill published to the Aerostack marketplace — the universal AI capability hub.
Algolia
by @aerostack
Search indexes, manage records, browse data, and configure ranking in Algolia — AI-native instant search access.
Arangodb
by @aerostack
Query documents, run AQL, traverse graphs, and manage collections in your ArangoDB database — AI-native multi-model database access.
Ayrshare
by @aerostack
Post, schedule, and analyze social media across 13 platforms — Facebook, Instagram, X, LinkedIn, TikTok, Bluesky, Threads, Reddit, Pinterest, YouTube, Telegram, Snapchat, Google Business.
Basecamp
by @aerostack
Manage projects, to-dos, messages, schedules, and campfire chats in Basecamp — AI-native project management.
Bigquery
by @aerostack
Run SQL queries, list datasets and tables, inspect schemas, and export results from Google BigQuery — AI-native data warehouse access.
Frequently asked questions
What is the Facebook Pages MCP server and what can it do? +
The Facebook Pages MCP server is hosted on Aerostack and exposes these tools to your AI agent: `get_page`, `get_page_insights`, `get_follower_count`, `update_page_info`, `list_posts`. You get one hosted URL — no self-hosting — that works from Claude, Cursor, ChatGPT, Gemini, VS Code, or any MCP-compatible client, and you can share it with your team or combine it with other MCP servers in a workspace.
Is the Facebook Pages MCP server hosted, or do I have to run it myself? +
It's hosted on Aerostack's edge infrastructure — you don't deploy or maintain anything. Add it to a workspace and you get one authenticated URL, with secrets encrypted, that any AI agent or editor can connect to. Use it solo or share the same URL across your whole team.
Which AI agents and editors can use the Facebook Pages MCP server? +
Any MCP client: Claude and Claude Code, Cursor, ChatGPT, Gemini, Windsurf, Cline, VS Code, and custom agents. Because it's one hosted URL, the same Facebook Pages MCP server works everywhere — and you can compose it with other MCP servers, skills, and functions behind a single workspace URL.
How do I install the Facebook Pages MCP server in Claude Desktop? +
Add the following to your Claude Desktop config (`claude_desktop_config.json`): ```json { "mcpServers": { "@aerostack/mcp-facebook-pages": { "command": "npx", "args": ["-y", "@aerostack/@aerostack/mcp-facebook-pages"] } } } ``` Then restart Claude Desktop and the tools will appear automatically.
How do I use the Facebook Pages MCP server in Cursor? +
In Cursor, open **Settings → MCP** and add: ```json { "name": "@aerostack/mcp-facebook-pages", "command": "npx", "args": ["-y", "@aerostack/@aerostack/mcp-facebook-pages"] } ``` Save and reload Cursor. The MCP tools will be available in Agent mode.
Does Facebook Pages MCP require authentication? +
Yes. Facebook Pages requires authentication. Check the MCP's documentation for the required credentials.