Facebook Playwright
FreeNot checkedModel Context Protocol (MCP) server for personal Facebook automation using Playwright.
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
- A visible Chrome window will open to
facebook.com. - Log into your account (complete 2FA if enabled).
- Once your feed is visible, switch back to your terminal and press ENTER.
- 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.
Install Facebook Playwright in Claude Desktop, Claude Code & Cursor
unyly install facebook-playwrightInstalls 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-mcpStep-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
Playwright
Browser automation, scraping, screenshots
by MicrosoftPuppeteer
Browser automation and web scraping.
by modelcontextprotocolGarmin Connect
An MCP server for Garmin Connect that provides access to fitness activities, health statistics, and sleep data by routing requests through a headless browser to
by etweisbergHiggsfield Unlimited
MCP server for Higgsfield AI that enables unlimited-mode image, video, audio generation, uploads, and job management via multiple parallel accounts, using brows
by nukIeeropentabs-dev/opentabs
Plugin-based server and Chrome extension that gives AI agents access to web apps through your authenticated browser session, with a plugin SDK.
by opentabs-devhlydecker/ucsc-genome-mcp
Interact with the UCSC Genome Browser API to find genomes, chromosomes and more.
by hlydecker34892002/bilibili-mcp-js
Search Bilibili content, with LangChain integration examples.
by 34892002achiya-automation/safari-mcp
Native Safari browser automation without a Chrome dependency.
by achiya-automationagent-infra/mcp-server-browser
Browser automation using Puppeteer, supporting local and remote browser connections.
by bytedanceaparajithn/agent-scraper-mcp
Web scraping: clean content extraction, CSS-selector scraping, Playwright screenshots, link and metadata extraction, and Google search.
by aparajithnCompare 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
