proxy-intell/facebook-ads-library-mcp
MCP Server for Facebook ADs Library - Get instant answers from FB's ad library
485f86582bba@proxy-intell/facebook-ads-library-mcp1.1.0 in package.jsonPaths 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 is shown as partly traced instead of a score: no finding there is not a clean result. The score of Capability Exposure counts only what it could follow.
- 1 of 10 tools, prompts and resources could not be followed through the code
- 1 place in the code registers tools whose names are computed at run time; how many tools that makes cannot be read from the code
Top risks in plain words
- HIGHTools
analyze_ad_image,analyze_ad_videorequest any address by design: an agent steered by prompt injection can use them that way.
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.
- Limit where it can connect
analyze_ad_image,analyze_ad_videocan request any address. Block access to internal hosts and cloud metadata endpoints. - Turn off the tools you do not use
Most MCP clients let you disable single tools. If you do not need
analyze_ad_image,analyze_ad_video, switch them off. - Give it a narrowly scoped token
Its code reads credentials or environment variables. Use a key limited to what this server needs, not your main one.
- 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 9 tools, 1 prompt. 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.
analyze_ad_image, analyze_ad_video, get_meta_adsanalyze_ad_image, analyze_ad_video, cleanup_media_cache, get_meta_ads, get_meta_platform_id, search_meta_ads_by_keywordanalyze_ad_video, get_meta_ads, get_meta_platform_id, search_meta_ads_by_keywordanalyze_ad_video, get_meta_ads, get_meta_platform_id, search_meta_ads_by_keywordanalyze_ad_video, get_meta_ads, get_meta_platform_id, search_meta_ads_by_keywordNo tool was seen to: start other programs on the machine.
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.
SCRAPECREATORS_API_KEY· get_meta_ads, get_meta_platform_id, search_meta_ads_by_keywordGEMINI_API_KEY· analyze_ad_video
4 request addresses could not be settled from the code (built at run time).
Text it brings in from outside
Text that reaches the model from outside: an instruction hidden in it can steer the agent (prompt injection). Treat what these tools return as data, not as orders.
- web or API responses5 tools · analyze_ad_image, analyze_ad_video, get_meta_ads +2
- files2 tools · analyze_ad_image, get_meta_ads
Tool annotations
9 of 10 tools declare annotations. readOnlyHint 8, openWorldHint 6.
Tools, prompts and resources (10: 9 tools, 1 prompt)
Open a row for its full description. Chips show what its code can reach, and which risky capability its own description declares.
analyze_ad_imagetool Analyze a Facebook ad image: returns the image itself so you can see it, plus a checklist (text, hooks, people, brand elements, composition, colors). Pass one mFilesNetworkoutside textread-only (declared)Requests any address
Analyze a Facebook ad image: returns the image itself so you can see it, plus a checklist (text, hooks, people, brand elements, composition, colors). Pass one media_url from get_meta_ads or search_meta_ads_by_keyword. Downloads are cached locally.
analyze_ad_videotool REQUIRED for analyzing video ads from Facebook. Download and analyze ad videos using Gemini's advanced video understanding capabilities. Extracts visual storyteFilesNetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)Requests any address
REQUIRED for analyzing video ads from Facebook. Download and analyze ad videos using Gemini's advanced video understanding capabilities. Extracts visual storytelling, audio elements, pacing, scene transitions, brand messaging, and marketing strategy insights. Uses intelligent caching for efficiency and includes comprehensive video analysis.
(name computed at run time)prompt
No description.
cleanup_media_cachetool REQUIRED for cleaning up old cached media files (images and videos) and freeing disk space. Use this tool when users want to remove old cached media, clean up sNetwork
REQUIRED for cleaning up old cached media files (images and videos) and freeing disk space. Use this tool when users want to remove old cached media, clean up storage space, or when cache becomes too large. Essential for cache maintenance and storage management.
get_cache_statstool REQUIRED for checking media cache status and storage usage. Use this tool when users ask about cache statistics, storage space used by cached media (images and read-only (declared)
REQUIRED for checking media cache status and storage usage. Use this tool when users ask about cache statistics, storage space used by cached media (images and videos), or how many files have been analyzed and cached. Essential for cache management and monitoring.
get_meta_adstool Retrieve currently running ads for a brand using their Meta Platform ID. Use this tool after getting a platform ID from get_meta_platform_id. This tool fetches FilesNetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
Retrieve currently running ads for a brand using their Meta Platform ID. Use this tool after getting a platform ID from get_meta_platform_id. This tool fetches active advertisements from the Meta Ad Library, including ad content, media URLs, dates, and targeting information. The result's changes block lists ads launched in the last 7 days and, when the same page was fetched with the same filters 24h+ ago, which ads are new since then and how many dropped out. For complete analysis of visual elements, colors, design, or image content, you MUST also use analyze_ad_image on the media_url from each ad.
get_meta_platform_idtool Search for companies or brands in the Meta Ad Library and return their platform IDs. Use this tool when you need to find a brand's Meta Platform ID before retriNetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
Search for companies or brands in the Meta Ad Library and return their platform IDs. Use this tool when you need to find a brand's Meta Platform ID before retrieving their ads. This tool searches the Facebook Ad Library to find matching brands and their associated Meta Platform IDs for ad retrieval.
get_playbooktool read-only (declared)
No description.
search_cached_mediatool REQUIRED for finding previously analyzed ad media (images and videos) in cache. Use this tool when users want to search for cached media by brand name, find medread-only (declared)
REQUIRED for finding previously analyzed ad media (images and videos) in cache. Use this tool when users want to search for cached media by brand name, find media with people, search by colors, or filter by media type. Essential for retrieving past analysis results without re-downloading media.
search_meta_ads_by_keywordtool Search the whole Meta Ad Library by keyword, topic or phrase, without knowing the advertiser. Use it to find who advertises a product or problem, ads in a nicheNetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
Search the whole Meta Ad Library by keyword, topic or phrase, without knowing the advertiser. Use it to find who advertises a product or problem, ads in a niche, or partnership ads run through creators (get_meta_ads only returns a brand's own page). Returns ads with page_id and page_name, so you can follow up with get_meta_ads on any advertiser.
Text the model reads (10)
Every tool, prompt and resource description as written in the code: the model sees all of it, the user usually does not.
get_meta_platform_id tool
Search for companies or brands in the Meta Ad Library and return their platform IDs. Use this tool when you need to find a brand's Meta Platform ID before retrieving their ads. This tool searches the Facebook Ad Library to find matching brands and their associated Meta Platform IDs for ad retrieval.
get_meta_ads tool
Retrieve currently running ads for a brand using their Meta Platform ID. Use this tool after getting a platform ID from get_meta_platform_id. This tool fetches active advertisements from the Meta Ad Library, including ad content, media URLs, dates, and targeting information. The result's changes block lists ads launched in the last 7 days and, when the same page was fetched with the same filters 24h+ ago, which ads are new since then and how many dropped out. For complete analysis of visual elements, colors, design, or image content, you MUST also use analyze_ad_image on the media_url from each ad.
search_meta_ads_by_keyword tool
Search the whole Meta Ad Library by keyword, topic or phrase, without knowing the advertiser. Use it to find who advertises a product or problem, ads in a niche, or partnership ads run through creators (get_meta_ads only returns a brand's own page). Returns ads with page_id and page_name, so you can follow up with get_meta_ads on any advertiser.
analyze_ad_image tool
Analyze a Facebook ad image: returns the image itself so you can see it, plus a checklist (text, hooks, people, brand elements, composition, colors). Pass one media_url from get_meta_ads or search_meta_ads_by_keyword. Downloads are cached locally.
get_cache_stats tool
REQUIRED for checking media cache status and storage usage. Use this tool when users ask about cache statistics, storage space used by cached media (images and videos), or how many files have been analyzed and cached. Essential for cache management and monitoring.
search_cached_media tool
REQUIRED for finding previously analyzed ad media (images and videos) in cache. Use this tool when users want to search for cached media by brand name, find media with people, search by colors, or filter by media type. Essential for retrieving past analysis results without re-downloading media.
cleanup_media_cache tool
REQUIRED for cleaning up old cached media files (images and videos) and freeing disk space. Use this tool when users want to remove old cached media, clean up storage space, or when cache becomes too large. Essential for cache maintenance and storage management.
analyze_ad_video tool
REQUIRED for analyzing video ads from Facebook. Download and analyze ad videos using Gemini's advanced video understanding capabilities. Extracts visual storytelling, audio elements, pacing, scene transitions, brand messaging, and marketing strategy insights. Uses intelligent caching for efficiency and includes comprehensive video analysis.
get_playbook tool
(name computed at run time) prompt
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 — 9 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 — 9 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 — 9 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Requests any address HIGH1 finding in analyze_ad_video; 1 more to review
- Runs caller-supplied SQLNo tool executes a query the caller supplies — 9 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 10 capabilities; 9 more call code the scanner could not follow, where it may happen
- Tools that touch files3 of 10 capabilities touch files; 6 more call code the scanner could not follow, where it may happen
- Tools that call the network6 of 10 capabilities call the network; 3 more call code the scanner could not follow, where it may happen
Where the code is: 10 handlers in 1 file at commit 485f86582bba
- 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 manifests2 manifests: package.json, requirements.txt
- Lockfiles checked against OSV2 files resolved and checked against the OSV database
- 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 ==1.30.0
- 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 credentials4 of 10 capabilities read credentials; 5 more call code the scanner could not follow, where it may happen
- Environment variables4 capabilities read environment variables (often API keys)
- 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 (1 only in code no tool reaches)
- 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)
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 ==1.30.0 |
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-11-03 |
| Signed releases | not checked yet |
Where it is published
| Listed in | 3 catalogs (github_search, glama, mcp_toplist) |
|---|---|
| License | MIT |
| Created | 2025-06-05 |
| Topics | ad-library ai analytics api chatgpt claude competitor-analysis cursor facebook facebook-api |
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.