home / mcp / facebook scraper3 mcp server
Provides access to Facebook Scraper3 data via an MCP server, enabling endpoint-driven data retrieval for profiles, posts, comments, pages, and more.
Configuration
View docs{
"mcpServers": {
"bach-ai-tools-bachai-facebook-scraper3": {
"command": "python",
"args": [
"server.py"
],
"env": {
"API_KEY": "YOUR_API_KEY_HERE"
}
}
}
}This MCP Server provides access to the Facebook Scraper3 API through a standardized MCP interface. It enables authenticated requests to a set of Facebook scraping endpoints from your applications, with a Python-based package flow and convenient runtime options.
You will run this MCP Server as a stdio-based service. Start it from your MCP client or orchestration tool, providing your API key for authentication. You can operate it alongside other MCP servers and invoke any of the supported endpoints as part of your data retrieval and automation workflows.
Prerequisites you need before installation:
pip install bach-facebook_scraper3uvx --from bach-facebook_scraper3 bach_facebook_scraper3
```
```bash
uvx --from bach-facebook_scraper3@latest bach_facebook_scraper3python server.pypip install bach-facebook_scraper3
bach_facebook_scraper3Read profile photos (from recent) and paginate using the cursor to get the next page. Endpoint: GET /profile/photos
Get a comment by its id. Endpoint: GET /comment
Search for people. Endpoint: GET /search/people
Search posts by hashtag. Endpoint: GET /search/hashtags
Get profile reels; obtain reels_profile_id from profile details. Endpoint: GET /profile/reels
Get all future events created by a page. Endpoint: GET /page/events/future
Get reactions for a post. Endpoint: GET /post/reactions
Get nested comments using legacy Facebook id. Endpoint: GET /post/comments_nested
Get page reels; use reels_page_id instead of page id. Endpoint: GET /page/reels
Get listing details from marketplace. Endpoint: GET /marketplace/details
Search marketplace listings with pagination. Endpoint: GET /marketplace/search
Get post comments using a comment_id from the post. Endpoint: GET /post/comments
Search groups for posts. Endpoint: GET /search/groups_posts
Get page videos using a delegate id (not the page id). Endpoint: GET /page/videos
Read page photos (from recent) and paginate using the cursor. Endpoint: GET /page/photos
Read page posts (from recent). Endpoint: GET /page/posts
Read page details. Endpoint: GET /page/details
Get all past events created by a page; paginate with cursor. Endpoint: GET /page/events/past
Get group posts; only PUBLIC groups can be scraped. Endpoint: GET /group/posts
Get group future events; only PUBLIC groups can be scraped; paginate with cursor. Endpoint: GET /group/future_events
Search for Facebook events. Endpoint: GET /search/events
Get game live videos; paginate with cursor. Endpoint: GET /gaming/live
Browse games; use empty query to browse all; paginate with cursor. Endpoint: GET /gaming/games
Get page reviews; paginate with cursor. Endpoint: GET /page/reviews
Search Facebook videos. Endpoint: GET /search/videos
Read profile posts (from recent) if public. Endpoint: GET /profile/posts
Get event details by event id. Endpoint: GET /event/details_id
Search for Facebook locations by id; include country or remove diacritics if needed. Endpoint: GET /search/locations
Perform Facebook posts search. Endpoint: GET /search/posts
Get event details by URL. Endpoint: GET /event/details
Get profile details by id. Endpoint: GET /profile/details_id
Get profile details by URL. Endpoint: GET /profile/details_url
Get profile id by URL. Endpoint: GET /profile/profile_id
Get post details by URL or post id; if both are set, post id is used. Endpoint: GET /post
Get group summary. Endpoint: GET /group/details
Get Facebook group id. Endpoint: GET /group/id
Get page id from URL. Endpoint: GET /page/page_id
Get post reshares. Endpoint: GET /post/share
Search for a Facebook place. Endpoint: GET /search/places
Search for Facebook pages. Endpoint: GET /search/pages