Skip to main content
Glama

# Facebook MCP Server (facebook-mcp)

facebook-mcp MCP server License: MIT

Model Context Protocol (MCP) server for Facebook Page Auditing, Brand Asset Harvesting, Screenshots, and Official Meta Graph API Publishing for Claude Code and Claude Desktop.

Account Safety First: Browser inspection tools are strictly read-only and never bypass CAPTCHAs or security checkpoints. Publishing and scheduling use the Official Meta Graph API (fb_api_*) with dry_run=True enabled by default.

Tools (11)

Tool

Mode

What it does

fb_browser_login

Browser

Opens Facebook once in a dedicated local Chrome profile (~/.facebook-mcp/chrome-profile).

fb_inspect_page

Browser

Full read-only Page audit: name, followers, bio, links, logo/cover URLs, About tab & desktop screenshot.

fb_get_page_posts

Browser

Extracts latest posts (copy, permalinks, image URLs) for brand voice & competitive research.

fb_download_page_assets

Browser

Downloads profile logo, cover banner, and recent post assets locally.

fb_capture_screenshot

Browser

Captures desktop (1440×900) or mobile (430×932) screenshots and returns them inline.

fb_search_pages

Browser

Read-only search for Facebook Pages by brand/keyword.

fb_api_list_my_pages

Graph API

Lists managed Facebook Pages via META_ACCESS_TOKEN.

fb_api_get_page_insights

Graph API

Fetches official Page metadata, recent posts, and Insights metrics.

fb_api_publish_post

Graph API

Previews (dry_run=True default) or publishes/schedules text, photo, or link posts.

fb_show_latest

Local

Shows the most recently saved screenshot or asset.

fb_inspect_ui

Browser

Diagnostic login/checkpoint check + screenshot.

Related MCP server: webcap

Install

Claude Code

claude mcp add facebook -- uvx --from git+https://github.com/bostudioserv-alt/facebook-mcp facebook-mcp

Claude Desktop

{
  "mcpServers": {
    "facebook": {
      "command": "uvx",
      "args": ["--from", "git+https://github.com/bostudioserv-alt/facebook-mcp", "facebook-mcp"]
    }
  }
}

License

MIT

Available Tools

11 tools
fb_api_get_page_insightsB

Fetch official Page metadata, recent posts, and Insights metrics via Meta Graph API (requires META_ACCESS_TOKEN).

Args: page_id: Numeric Facebook Page ID. period: Insights period ('day', 'week', 'days_28'). Default 'days_28'.

Inputs: page_id (required), period. Returns: result

fb_api_list_my_pagesA

List Facebook Pages you manage via the Official Meta Graph API (requires META_ACCESS_TOKEN).

Inputs: no named parameters. Returns: result

fb_api_publish_postA

Preview (dry_run=True default) or publish/schedule a post to a Facebook Page you manage via Official Meta Graph API.

Args: page_id: Numeric Facebook Page ID. message: Post caption / text. image_path: Optional local path to a photo to publish with the post. link: Optional URL to attach (text/link posts only). scheduled_publish_time: Optional UNIX timestamp (at least 10 minutes in the future) to schedule the post. dry_run: Safety default True previews without publishing; pass False after user confirmation to publish.

Inputs: message (required), page_id (required), link, dry_run, +2 more. Returns: result

fb_browser_loginA

Open Facebook (https://www.facebook.com) in a visible Chrome window so you can sign in once.

Saves your session in ~/.facebook-mcp/chrome-profile (completely isolated from your main Chrome).

Args: wait_seconds: Seconds to wait for sign-in completion (default 120, max 140).

Inputs: wait_seconds. Returns: result

fb_capture_screenshotB

Capture a crisp desktop (1440x900) or mobile (430x932) screenshot of any Facebook Page or post and return it inline.

Args: url: Facebook Page or post URL. full_page: Capture full scrollable page height (default False). mobile_viewport: Use mobile 430x932 viewport when True (default False). output_path: Optional output PNG path.

Inputs: url (required), full_page, output_path, mobile_viewport.

fb_download_page_assetsA

Download a Facebook Page's profile photo (logo), cover banner, and recent post images locally into ~/Downloads/facebook-mcp/<page>/.

Args: page_url: Full Facebook Page URL or handle. max_post_images: Max recent post images to save (0-20, default 6). output_dir: Optional custom folder to save the downloaded images.

Inputs: page_url (required), output_dir, max_post_images. Returns: result

fb_get_page_postsA

Read the latest posts from a Facebook Page (post copy, permalinks, and image URLs) for content & brand voice audit.

Args: page_url: Full Facebook Page URL or handle. max_posts: Maximum number of posts to extract (1-25, default 10). scroll_rounds: Number of polite scroll passes (1-10, default 4).

Inputs: page_url (required), max_posts, scroll_rounds. Returns: result

fb_inspect_pageA

Audit a Facebook Page and extract real business/brand data (name, followers, bio, phones, email, website, logo/cover URLs, About tab, and screenshot).

Ideal for client discovery, marketing proposals, and competitor audits.

Args: page_url: Full Facebook Page URL or handle (e.g. 'https://www.facebook.com/SomeBrand' or 'SomeBrand'). capture_screenshots: Capture and return a desktop screenshot of the Page (default True). include_about: Also visit the Page's About tab to gather phones, addresses, and services (default True).

Inputs: page_url (required), include_about, capture_screenshots.

fb_inspect_uiB

Diagnostic tool: checks Facebook login/checkpoint status and saves a screenshot.

Args: url: Facebook URL to inspect. show_browser: Show Chrome visibly while inspecting (default False).

Inputs: url, show_browser. Returns: result

fb_search_pagesA

Search Facebook Pages by brand name or keyword (read-only discovery).

Args: query: Brand name, business name, or category keyword. max_results: Maximum results to return (1-20, default 10).

Inputs: query (required), max_results. Returns: result

fb_show_latestB

Show the most recently saved Facebook screenshot or downloaded asset from ~/Downloads/facebook-mcp.

Inputs: media_type.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 11 tools

    Disambiguation3/5

    The set splits cleanly into an official Graph API family (fb_api_*) and a browser-scraping family (fb_*), which helps, but several tools overlap: fb_api_get_page_insights, fb_inspect_page, and fb_get_page_posts all return page metadata and/or recent posts, and fb_capture_screenshot, fb_inspect_ui, and fb_inspect_page all produce screenshots. Descriptions hint at intent (owned pages via API vs. competitor audits via scraping), but an agent can easily misselect between them.

    Naming Consistency4/5

    Nearly all tools follow a consistent fb_ prefix plus verb_noun (inspect_page, get_page_posts, download_page_assets, capture_screenshot, search_pages). The fb_api_* prefix is a deliberate, readable grouping rather than an inconsistency. Minor deviation: fb_show_latest has no object noun, making it the least predictable name.

    Tool Count4/5

    Eleven tools is a well-scoped size for a page-management/auditing server. There is mild redundancy (two screenshot paths, two post-reading paths), but each tool contributes a distinct capability (login, search, publish, assets, diagnostics).

    Completeness3/5

    Core read/audit workflows and a publish path are covered, but the surface has notable gaps: no edit/delete of published posts, no comment or message handling, no way to list scheduled posts, and no video/reel support. The scraping side also dead-ends at fb_show_latest for reviewing previously downloaded assets.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables screenshotting any URL, extracting structured page data, and setting up page monitoring alerts via pay-per-call MCP tools.
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      It enables compatible AI agents to audit public web pages, crawl bounded same-host site samples, collect and compare AI answers, and read a user's own Google Search Console data locally.
      9
      164 npm
      2
      Apache 2.0
    • A
      license
      A
      quality
      C
      maintenance
      Enables users to fetch a page's raw HTML as a real browser would, render it view-source style with line numbers and highlighted matches, and capture proof screenshots. Also returns matched line numbers and text so findings can be cited without taking a shot.
      2
      MIT