HagaiHen/facebook-mcp-server
Facebook MCP server for automating posts, comment moderation, insights, and sentiment filtering.
61b2128555d7Paths from tool input into commands, SQL, files and URLs
How much power the tools give an agent over the machine
Hidden instructions and poisoning in text for the model
Known vulnerabilities in the packages the server uses
How the server reads credentials and where they can go
Whether the tools do only what their descriptions say
How far the analysis went
The scanner traces each tool from its input to the operations its code performs, and here it could not follow every path. Code Safety and Capability Exposure are shown as partly traced instead of a score: no finding there is not a clean result.
- In 1 place a tool's input is handed to a function whose name matches several definitions in the code; the scanner could not tell which one runs, so it stopped there
Top risks in plain words
- INFONo published risk: no tool declared to run commands, files, addresses or queries of the caller's choice, no known vulnerability in a production package, no advisory. Not every path through the code could be followed. Code findings appear here only after a person has verified them.
How to use it safely
Practical steps from what we found in this server. They lower the risk; they do not replace a review of the code.
- Keep confirmations on
Leave your MCP client's confirmation prompt on for tools that change files, run commands or send data.
What its tools can do on your machine
The server offers 40 tools. When an AI agent calls them, this is what their code can do on the machine where the server runs, as traced in the source. Tools that call code the scanner could not follow may do more.
None of the tools reaches any of these in the code the scanner could trace.
Where its requests and secrets go
Read from the names along each tool's calls, not from a run: what the code says, not every address it may reach at run time.
The literal addresses the tools' requests name.
- None: no request names a fixed host.
Constants or settings that start an address; the value comes from configuration.
- None seen.
Credential-like environment variables. Give the server a key with the least access it needs.
- None: no credential-like variable is read by the tools.
Text it brings in from outside
No tool was seen returning text from outside the server to the model.
Tool annotations
No tool declares MCP annotations (readOnlyHint, destructiveHint and the rest). Clients use them to decide what to confirm; directories such as Anthropic's and OpenAI's ask for them.
Tools, prompts and resources (40: 40 tools)
Open a row for its full description. Chips show what its code can reach, and which risky capability its own description declares.
bulk_delete_commentstool Delete multiple comments by ID.
Delete multiple comments by ID.
bulk_hide_commentstool Hide multiple comments by ID.
Hide multiple comments by ID.
bulk_unhide_commentstool Unhide multiple comments by ID.
Unhide multiple comments by ID.
delete_commenttool Delete a specific comment from the Page.
Delete a specific comment from the Page.
Input: comment_id (str)
Output: dict with deletion resultdelete_comment_from_posttool Alias to delete a comment on a post.
Alias to delete a comment on a post.
Input: post_id (str), comment_id (str)
Output: dict with deletion resultdelete_posttool Delete a specific post from the Facebook Page.
Delete a specific post from the Facebook Page.
Input: post_id (str)
Output: dict with deletion resultfilter_negative_commentstool Filter comments for basic negative sentiment.
Filter comments for basic negative sentiment.
Input: comments (dict)
Output: list of flagged negative commentsget_comment_repliestool Get all replies to a specific comment.
Get all replies to a specific comment.
get_number_of_commentstool Count the number of comments on a given post.
Count the number of comments on a given post.
Input: post_id (str)
Output: integer count of commentsget_number_of_likestool Return the number of likes on a post.
Return the number of likes on a post.
Input: post_id (str)
Output: integer count of likesget_page_fan_counttool Get the Page's total fan/like count.
Get the Page's total fan/like count.
Input: None
Output: integer fan countget_page_infotool Get extended information about the Facebook Page.
Get extended information about the Facebook Page.
get_page_poststool Fetch the most recent posts on the Page.
Fetch the most recent posts on the Page.
Input: None
Output: dict with list of post objects and metadataget_post_clickstool Fetch number of post clicks.
Fetch number of post clicks.
Input: post_id (str)
Output: dict with click countget_post_commentstool Retrieve all comments for a given post.
Retrieve all comments for a given post.
Input: post_id (str)
Output: dict with comment objectsget_post_engaged_userstool Fetch number of engaged users.
Fetch number of engaged users.
Input: post_id (str)
Output: dict with engagement countget_post_impressionstool Fetch total impressions of a post.
Fetch total impressions of a post.
Input: post_id (str)
Output: dict with total impression countget_post_impressions_organictool Fetch organic impressions of a post.
Fetch organic impressions of a post.
Input: post_id (str)
Output: dict with organic impression countget_post_impressions_paidtool Fetch paid impressions of a post.
Fetch paid impressions of a post.
Input: post_id (str)
Output: dict with paid impression countget_post_impressions_uniquetool Fetch unique impressions of a post.
Fetch unique impressions of a post.
Input: post_id (str)
Output: dict with unique impression countget_post_insightstool Fetch all insights metrics (impressions, reactions, clicks, etc).
Fetch all insights metrics (impressions, reactions, clicks, etc).
Input: post_id (str)
Output: dict with multiple metrics and their valuesget_post_permalinktool Get the permalink URL of a post.
Get the permalink URL of a post.
get_post_reactions_anger_totaltool Fetch number of 'Anger' reactions.
Fetch number of 'Anger' reactions.
Input: post_id (str)
Output: dict with anger countget_post_reactions_breakdowntool Get counts for all reaction types on a post.
Get counts for all reaction types on a post.
get_post_reactions_haha_totaltool Fetch number of 'Haha' reactions.
Fetch number of 'Haha' reactions.
Input: post_id (str)
Output: dict with haha countget_post_reactions_like_totaltool Fetch number of 'Like' reactions.
Fetch number of 'Like' reactions.
Input: post_id (str)
Output: dict with like countget_post_reactions_love_totaltool Fetch number of 'Love' reactions.
Fetch number of 'Love' reactions.
Input: post_id (str)
Output: dict with love countget_post_reactions_sorry_totaltool Fetch number of 'Sorry' reactions.
Fetch number of 'Sorry' reactions.
Input: post_id (str)
Output: dict with sorry countget_post_reactions_wow_totaltool Fetch number of 'Wow' reactions.
Fetch number of 'Wow' reactions.
Input: post_id (str)
Output: dict with wow countget_post_share_counttool Get the number of shares for a post.
Get the number of shares for a post.
Input: post_id (str)
Output: integer share countget_post_top_commenterstool Get the top commenters on a post.
Get the top commenters on a post.
Input: post_id (str)
Output: list of user IDs with comment countsget_scheduled_poststool List all scheduled (unpublished) posts on the Page.
List all scheduled (unpublished) posts on the Page.
hide_commenttool Hide a comment from public view.
Hide a comment from public view.
post_image_to_facebooktool Post an image with a caption to the Facebook page.
Post an image with a caption to the Facebook page.
Input: image_url (str), caption (str)
Output: dict of post resultpost_to_facebooktool Create a new Facebook Page post with a text message.
Create a new Facebook Page post with a text message.
Input: message (str)
Output: dict with post ID and creation statusreply_to_commenttool Reply to a specific comment on a Facebook post.
Reply to a specific comment on a Facebook post.
Input: post_id (str), comment_id (str), message (str)
Output: dict with reply creation statusschedule_posttool Schedule a new post for future publishing.
Schedule a new post for future publishing.
Input: message (str), publish_time (Unix timestamp)
Output: dict with scheduled post infosend_dm_to_usertool Send a direct message to a user.
Send a direct message to a user.
Input: user_id (str), message (str)
Output: dict of result from Messenger APIunhide_commenttool Unhide a previously hidden comment.
Unhide a previously hidden comment.
update_posttool Updates an existing post's message.
Updates an existing post's message.
Input: post_id (str), new_message (str)
Output: dict of update resultText the model reads (40)
Every tool, prompt and resource description as written in the code: the model sees all of it, the user usually does not.
filter_negative_comments tool
Filter comments for basic negative sentiment.
Input: comments (dict)
Output: list of flagged negative commentspost_to_facebook tool
Create a new Facebook Page post with a text message.
Input: message (str)
Output: dict with post ID and creation statusreply_to_comment tool
Reply to a specific comment on a Facebook post.
Input: post_id (str), comment_id (str), message (str)
Output: dict with reply creation statusget_page_posts tool
Fetch the most recent posts on the Page.
Input: None
Output: dict with list of post objects and metadataget_post_comments tool
Retrieve all comments for a given post.
Input: post_id (str)
Output: dict with comment objectsdelete_post tool
Delete a specific post from the Facebook Page.
Input: post_id (str)
Output: dict with deletion resultdelete_comment tool
Delete a specific comment from the Page.
Input: comment_id (str)
Output: dict with deletion resulthide_comment tool
Hide a comment from public view.
unhide_comment tool
Unhide a previously hidden comment.
delete_comment_from_post tool
Alias to delete a comment on a post.
Input: post_id (str), comment_id (str)
Output: dict with deletion resultget_number_of_comments tool
Count the number of comments on a given post.
Input: post_id (str)
Output: integer count of commentsget_number_of_likes tool
Return the number of likes on a post.
Input: post_id (str)
Output: integer count of likesget_post_insights tool
Fetch all insights metrics (impressions, reactions, clicks, etc).
Input: post_id (str)
Output: dict with multiple metrics and their valuesget_post_impressions tool
Fetch total impressions of a post.
Input: post_id (str)
Output: dict with total impression countget_post_impressions_unique tool
Fetch unique impressions of a post.
Input: post_id (str)
Output: dict with unique impression countget_post_impressions_paid tool
Fetch paid impressions of a post.
Input: post_id (str)
Output: dict with paid impression countget_post_impressions_organic tool
Fetch organic impressions of a post.
Input: post_id (str)
Output: dict with organic impression countget_post_engaged_users tool
Fetch number of engaged users.
Input: post_id (str)
Output: dict with engagement countget_post_clicks tool
Fetch number of post clicks.
Input: post_id (str)
Output: dict with click countget_post_reactions_like_total tool
Fetch number of 'Like' reactions.
Input: post_id (str)
Output: dict with like countget_post_reactions_love_total tool
Fetch number of 'Love' reactions.
Input: post_id (str)
Output: dict with love countget_post_reactions_wow_total tool
Fetch number of 'Wow' reactions.
Input: post_id (str)
Output: dict with wow countget_post_reactions_haha_total tool
Fetch number of 'Haha' reactions.
Input: post_id (str)
Output: dict with haha countget_post_reactions_sorry_total tool
Fetch number of 'Sorry' reactions.
Input: post_id (str)
Output: dict with sorry countget_post_reactions_anger_total tool
Fetch number of 'Anger' reactions.
Input: post_id (str)
Output: dict with anger countget_post_top_commenters tool
Get the top commenters on a post.
Input: post_id (str)
Output: list of user IDs with comment countspost_image_to_facebook tool
Post an image with a caption to the Facebook page.
Input: image_url (str), caption (str)
Output: dict of post resultsend_dm_to_user tool
Send a direct message to a user.
Input: user_id (str), message (str)
Output: dict of result from Messenger APIupdate_post tool
Updates an existing post's message.
Input: post_id (str), new_message (str)
Output: dict of update resultschedule_post tool
Schedule a new post for future publishing.
Input: message (str), publish_time (Unix timestamp)
Output: dict with scheduled post infoget_page_fan_count tool
Get the Page's total fan/like count.
Input: None
Output: integer fan countget_post_share_count tool
Get the number of shares for a post.
Input: post_id (str)
Output: integer share countget_post_reactions_breakdown tool
Get counts for all reaction types on a post.
bulk_delete_comments tool
Delete multiple comments by ID.
bulk_hide_comments tool
Hide multiple comments by ID.
bulk_unhide_comments tool
Unhide multiple comments by ID.
get_comment_replies tool
Get all replies to a specific comment.
get_post_permalink tool
Get the permalink URL of a post.
get_scheduled_posts tool
List all scheduled (unpublished) posts on the Page.
get_page_info tool
Get extended information about the Facebook Page.
What we checked
The same checks run on every server. Each line below has one of these marks:
- 8 checks: command injection, argument injection, path traversal, server-side request forgery, SQL injection, code execution, unsafe deserialization, template injectionChecked on every scan. Results in this category are published only after a person has verified them.
- Runs programs the caller choosesNo tool runs a command or program the caller supplies — 40 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Executes caller-supplied codeNo tool evaluates code the caller supplies — 40 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Reads or writes any file pathNo tool works on a file path the caller supplies without a root check — 40 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Requests any addressNo tool sends a request to an address the caller supplies — 40 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Runs caller-supplied SQLNo tool executes a query the caller supplies — 40 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Tools that start processesNot seen in the traced code of 40 capabilities
- Tools that touch filesNot seen in the traced code of 40 capabilities
- Tools that call the networkNot seen in the traced code of 40 capabilities
Where the code is: 40 handlers in 1 file at commit 61b2128555d7
- 5 checks: tool poisoning, instruction override, hidden content, exfiltration requests, metadata integrityChecked on every scan. Results in this category are published only after a person has verified them.
- Dependency manifests1 manifest: requirements.txt
- Lockfiles checked against OSV1 file resolved and checked against the OSV database; 1 not resolved: requirements.txt: 3 dependency lines carry no exact version, so the installed version was not checked; pin them or add a lockfile
- Known vulnerabilities in production dependenciesNo production dependency with a known advisory
- Known vulnerabilities in other dependenciesNo package used only for development, tests or examples has a known advisory
- MCP SDK versionmcp
- 3 checks: credential harvesting, undeclared credential access, credentials sent over the networkChecked on every scan. Results in this category are published only after a person has verified them.
- Tools that read credentialsNot seen in the traced code of 40 capabilities
- Authentication declaredNot checked: needs the live server's tools/list (a remote server declares how clients authenticate)
- 3 checks: undeclared network access, undeclared file access, undeclared process executionChecked on every scan. Results in this category are published only after a person has verified them.
- Tool descriptions presentEvery tool has a description the model and the user can read
- Statically known namesEvery tool's name could be read from the code
- Input schemasNot checked: needs the live server's tools/list (every tool declares an input schema)
- Destructive tools annotatedNot checked: needs the live server's tools/list (tools that write, delete or run commands carry destructivehint)
Dependencies with known vulnerabilities (0 in production)
Dependency ranges were not resolved against a lockfile, so the score is capped at 7.
No known vulnerabilities in the production dependencies that could be checked.
Past security advisories
Vulnerabilities published for this server itself, from the GitHub Advisory Database.
No security advisories have been published for this server in the GitHub Advisory Database.
How it runs
| Where it runs | On your machine, started by your MCP client from this repository or its package |
|---|---|
| Transport | not stated in the code the scanner read; most local servers talk over stdio |
| Sign-in | not checked needs the live server |
| MCP SDK | mcp |
| Servers in the code | 1 (FacebookMCP) |
The project's own security
| Security policy | none no SECURITY.md in the repository: report issues privately through GitHub if it is enabled |
|---|---|
| Past advisories | none in the GitHub Advisory Database |
| Last push | 2026-04-23 |
| Signed releases | not checked yet |
Where it is published
| Listed in | 3 catalogs (github_search, glama, mcp_toplist) |
|---|---|
| License | MIT |
| Created | 2025-05-08 |
Attack map
How the server is built and where its risky tools lead: servers, their tools, what the tools' code can do, and the traced route from a declared risky tool's argument to the operation it reaches. Click a node for details.