facebook-automata-mcp
Provides tools to interact with the Facebook Graph API, enabling management of Pages, Posts, Comments, Reactions, Media, Events, and Insights, as well as credential handling.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@facebook-automata-mcpPublish a photo to my Facebook page"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
facebook-automata-mcp
MCP (Model Context Protocol) server for the official Facebook Graph API. Exposes a complete toolset for Pages, Posts, Comments, Likes/Reactions, Photos/Videos, Events and Insights, plus dedicated tools to store and validate your Facebook credentials.
Install & run
No install needed if you have uv:
uvx facebook-automata-mcpOr install with pip:
pip install facebook-automata-mcp
facebook-automata-mcpUse with an MCP client (e.g. Claude Desktop / Claude Code)
{
"mcpServers": {
"facebook": {
"command": "uvx",
"args": ["facebook-automata-mcp"]
}
}
}Related MCP server: Facebook MCP Server
Credentials
You do not need to edit any config file by hand. Once the server is
connected to your MCP client, just ask it (in your own words) to
configure Facebook, which will call the set_facebook_credentials
tool, e.g.:
"Set my Facebook access token to EAAB..."
This will:
Validate the token against
GET /me.Save it to
~/.facebook-automata-mcp/credentials.json(created with0700/0600permissions, owner-only).Return your validated identity (id/name).
Fields you can provide:
field | required | purpose |
| yes | User, Page, or App access token |
| no | Enables |
| no | Used together with |
| no | Default Page ID used when a tool's |
| no | Graph API version, defaults to |
Check current credentials at any time with check_facebook_credentials
(does a live validation call) or get_credentials_status (offline,
just checks the file exists). Remove them with
clear_facebook_credentials.
Credentials can also be provided via environment variables instead of (or in addition to) the stored file — env vars always win:
FACEBOOK_AUTOMATA_MCP_ACCESS_TOKEN=...
FACEBOOK_AUTOMATA_MCP_APP_ID=...
FACEBOOK_AUTOMATA_MCP_APP_SECRET=...
FACEBOOK_AUTOMATA_MCP_PAGE_ID=...
FACEBOOK_AUTOMATA_MCP_API_VERSION=v21.0
FACEBOOK_AUTOMATA_MCP_HOME=/custom/path # overrides ~/.facebook-automata-mcpGetting a token
The quickest way for a Page is Meta's Graph API
Explorer: select your
app, generate a User Access Token with pages_show_list,
pages_read_engagement, pages_read_user_content,
pages_manage_posts, and pages_manage_engagement, then call
get_my_accounts here to fetch your Page's own (page-scoped) access
token, and use that as access_token for Page-level tools.
Tools
Credentials
set_facebook_credentials— save + validate a tokencheck_facebook_credentials— live validation +/debug_tokeninfoget_credentials_status— offline checkclear_facebook_credentials— delete stored credentials
Identity
get_my_profile,get_user_profile,get_my_accounts
Pages
search_pages,get_page_info,get_page_posts,get_page_feed,get_page_tagged_posts,get_page_events,get_page_photos,get_page_videos,get_page_albums,get_page_insights
Posts
get_post,publish_page_post,delete_post
Comments
get_post_comments(includes who commented),get_comment,get_comment_replies,publish_comment,reply_to_comment,delete_comment,hide_comment
Likes / Reactions
get_post_likes,get_post_reactions(who + which reaction),get_comment_likes,get_comment_reactions,like_object,unlike_object
Media
upload_page_photo,upload_page_video
Escape hatch
graph_api_get,graph_api_post,graph_api_delete— call any Graph API edge not covered above
All list-style tools accept limit and after (pagination cursor from
the previous call's next_cursor) and return {ok, data, paging, next_cursor}.
Notes on Facebook API limitations
Modern Graph API versions restrict most personal-profile fields and the classic "who liked this / friend list" data for regular users due to privacy policy — Page-owned content (Page posts, their comments, and reactions) is the primary supported use case.
Some actions (posting, deleting, hiding comments, insights) require a Page access token with the relevant permissions (
pages_manage_posts,pages_manage_engagement,read_insights, etc.) and, for public apps, Meta App Review.
Development
python -m venv .venv && source .venv/bin/activate
pip install -e .
facebook-automata-mcpPublish to PyPI
pip install build twine
python -m build
twine upload dist/*Once published, anyone can run it with uvx facebook-automata-mcp
without installing anything permanently.
License
MIT
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityDmaintenanceAutomates Facebook Page management through the Graph API, enabling content posting, comment moderation, analytics tracking, and engagement monitoring through natural language interactions.309MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to manage Facebook profiles, pages, posts, and engagement via the Graph API with OAuth authentication.2
- AlicenseNot gradedqualityCmaintenanceEnables analytics and management of Facebook Pages through the Meta Graph API, including posts, insights, audience, and publishing.GPL 3.0
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to automate Facebook Page management including posting, commenting, and analytics via the Facebook Graph API.MIT
Related MCP Connectors
Boost posts and launch community growth campaigns from your AI assistant. OAuth, credit-billed.
Publish, schedule, and manage social media posts across major platforms via the Postproxy API.
Create, schedule and publish social posts to TikTok, Instagram, Facebook and YouTube.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ICWR-TEAM/Facebook-Automata-MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server