FbAdLibraryMCPServer MCP Server

Build a Model Context Protocol (MCP) server that provides access to Facebook's Ad Library through web scraping. The server should allow clients to

Local serverstdio

What is the FbAdLibraryMCPServer MCP Server?

Build a Model Context Protocol (MCP) server that provides access to Facebook's Ad Library through web scraping. The server should allow clients to search for

What it actually does

  • MCP-compliant — Built using the official MCP SDK
  • Comprehensive ad data — Extracts advertiser, content, dates, impressions, spend, and more
  • Advanced filtering — Filter by company, date range, and keywords
  • Smart pagination — Auto-scrolling to retrieve up to 100 ads per search
  • Flexible sorting — Sort by date (ascending/descending) or relevance

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

How to install the FbAdLibraryMCPServer MCP Server

{
  "mcpServers": {
    "fbadlibrarymcpserver": {
      "command": "npx",
      "args": ["-y", "playwright"],
      "env": {
        "FLYCTL_INSTALL": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

VariableDescriptionRequired
FLYCTL_INSTALLConfiguration value read at startup.Optional

Example prompts to try

  • “Use FbAdLibraryMCPServer to Development.”
  • “Use FbAdLibraryMCPServer to Production.”

Frequently asked questions

The server exposes a single tool called `search_ads` that accepts optional parameters for company, dates, keywords, limit, and sort order.