Command Palette

Search for a command to run...

UnylyUnyly
Browse all

Facebook Playwright

FreeNot checked

Model Context Protocol (MCP) server for personal Facebook automation using Playwright.

GitHubEmbed

About

Model Context Protocol (MCP) server for personal Facebook automation using Playwright.

README

Python 3.10+ MCP Playwright License: MIT

A Model Context Protocol (MCP) server for personal Facebook automation using Playwright.

Features

  • check_login_status: Verify whether your Facebook session is active.
  • read_newsfeed: Retrieve recent posts from your personal newsfeed.
  • post_personal_status: Publish new status updates directly to your timeline.
  • search_facebook: Search for posts, people, groups, or pages.
  • read_page_or_group: Extract readable content from any specific Facebook link.

Architecture

AI Client (Antigravity / Claude)
              │
              ▼  (JSON-RPC / stdio)
   Facebook MCP Server (FastMCP)
              │
              ▼  (Local Playwright Session)
   Chromium with Persistent Profile
              │
              ▼  (User Actions)
         Facebook.com

Installation

git clone https://github.com/thieuhoang2002/facebook-playwright-mcp.git
cd facebook-playwright-mcp
pip install -e .
playwright install chromium

Quick Start (One-Time Authentication)

Run the interactive login command:

facebook-mcp-login
  1. A visible Chrome window will open to facebook.com.
  2. Log into your account (complete 2FA if enabled).
  3. Once your feed is visible, switch back to your terminal and press ENTER.
  4. Your browser profile will be saved locally to ~/.facebook_mcp/browser_profile/.

MCP Client Configuration

Claude Desktop / Antigravity (mcp_config.json)

{
  "mcpServers": {
    "facebook": {
      "command": "facebook-mcp"
    }
  }
}

Cursor (.cursor/mcp.json)

{
  "mcpServers": {
    "facebook": {
      "command": "facebook-mcp"
    }
  }
}

Contributing

See CONTRIBUTING.md for local setup and contribution workflow.

Security & Privacy

See SECURITY.md for security notes and credential protection details.

from github.com/thieuhoang2002/facebook-playwright-mcp

Install Facebook Playwright in Claude Desktop, Claude Code & Cursor

Recommended · one command, every IDE
unyly install facebook-playwright

Installs into Claude Desktop, Claude Code, Cursor & VS Code — handles npx, uvx and build-from-source repos for you.

First time? Get the CLI: curl -fsSL https://unyly.org/install | sh

Or configure manually

Run in your terminal:

claude mcp add facebook-playwright -- uvx --from git+https://github.com/thieuhoang2002/facebook-playwright-mcp facebook-playwright-mcp

Step-by-step: how to install Facebook Playwright

FAQ

Is Facebook Playwright MCP free?

Yes, Facebook Playwright MCP is free — one-click install via Unyly at no cost.

Does Facebook Playwright need an API key?

No, Facebook Playwright runs without API keys or environment variables.

Is Facebook Playwright hosted or self-hosted?

Self-hosted: the server runs locally on your machine via the install command above.

How do I install Facebook Playwright in Claude Desktop, Claude Code or Cursor?

Open Facebook Playwright on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.

Related MCPs

Compare Facebook Playwright with

Not sure what to pick?

Find your stack in 60 seconds

Author?

Embed badge for your README

Browse similar

All browse MCPs