# Biblioteca de Anúncios — MCP server on mcp.ai > Discover who is advertising on Instagram and Facebook about a topic, and read each ad's copy, call to action and landing page. Public data from Meta's ad library, hosted by the platform, no credentials required. By: mcp.ai · official Page: https://mcp.ai/ad_library ## Connect (MCP protocol) Remote MCP endpoint (HTTP, streamable): https://api.mcp.ai/p_ad_library?ms=1788152220000 Add it as a custom/remote MCP connector, then authenticate when prompted. ## REST API (no MCP client required) Every tool is also a REST endpoint, authed with a workspace API key. Discover: GET https://api.mcp.ai/api/ad_library/_endpoints # public; lists every endpoint Call: POST https://api.mcp.ai/api/ad_library/ Authorization: Bearer sk_live_… # create one at https://mcp.ai/settings/api-keys Content-Type: application/json Body: { …args } → { "ok": true, "tool": "", "result": { … } } ## Developer docs How to use (MCP or REST), markdown: https://mcp.ai/ad_library/skill.md Postman collection (v2.1): https://mcp.ai/ad_library/postman.json ## Tools - ad_library_company_ads(page_id: string, country?: string, limit?: integer, cursor?: string, page_ids?: string[]) — List every ad one specific advertiser is running, given its `page_id` (get it from ad_library_search_advertisers). Use it to map a single competitor's whole campaign: which offers, which copy, which l - ad_library_search_ads(query: string, country?: string, limit?: integer, cursor?: string) — Find ads a competitor (or any company) is currently running on Instagram and Facebook for a keyword, using Meta's public ad library. Returns each ad's advertiser, copy, headline, call to action, landi - ad_library_search_advertisers(query: string, limit?: integer) — Look up advertisers by company name and get their page id, category, follower/like counts and Instagram handle when available. Use it to turn a company name into the `page_id` that ad_library_company_ ## Example prompts - "Who is advertising about "meal delivery" on Instagram in the US?" - "List the ads Duolingo is running right now" - "Compare the ad copy of competitors advertising "project management software"" ## Links Docs: https://mcp.ai/docs/mcps/ad_library Website: https://mcp.ai/mcps/ad_library