Skip to main content
MCP server CX Codex

HasData Facebook — Claude Code MCP server: how to install

A hosted MCP server that retrieves public Facebook page info, metrics, and post feeds as JSON. Useful for extracting engagement stats without a Meta developer account.

Install into Claude Code · Platform CLI All methods and platforms ↓
claude mcp add facebook -e HASDATA_API_KEY=<HASDATA_API_KEY> -- npx -y @hasdata/facebook-mcp
Open on GitHub

What HasData Facebook does

The server exposes hasdata_facebook_profile_getFacebookProfile to query public pages or profiles via handle, @username, or numeric ID. It responds with category details, bio text, contact information, and total likes. Private accounts and closed groups remain inaccessible.

Clients connect directly to the remote HTTP endpoint or run a local stdio runner via @hasdata/facebook-mcp. The initial request outputs the page record, the newest entry, and photo thumbnails. To inspect older entries, pass nextPageToken from the response to fetch three posts per call.

A HasData API key is mandatory. The service supplies 1000 monthly credits at no cost without credit card registration, which covers 100 profile requests at 10 credits each.

What it helps with

  • pull like counts and contact details from public Facebook pages
  • fetch engagement metrics including shares and reactions on brand posts
  • paginate through past posts using nextPageToken cursors
  • inspect verified status and categories for competitor profiles

Example prompts for the agent

  • Check the exact follower count and contact info on the @nike Facebook page.
  • Fetch recent posts and reaction counts for this Facebook brand profile.
  • Retrieve the next batch of posts using this nextPageToken.

How to install HasData Facebook

1Platform CLI

claude mcp add facebook -e HASDATA_API_KEY=<HASDATA_API_KEY> -- npx -y @hasdata/facebook-mcp

Replace <…> with your own values

2Platform CLI: remote server

claude mcp add --transport http hasdata-facebook 'https://mcp.hasdata.com/mcp?apis=facebook'

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about HasData Facebook

How do I install HasData Facebook in Claude Code?

Run claude mcp add facebook -e HASDATA_API_KEY=<HASDATA_API_KEY> -- npx -y @hasdata/facebook-mcp, replacing the placeholder with your HasData key.

What does the HasData Facebook tool return?

It returns structured JSON containing page metadata, contact details, like counts, and post statistics such as shares, comments, and reactions.

Can this server fetch posts from private Facebook groups?

No. It only reads public profiles and pages that any logged-out visitor can see.

Similar MCP servers

All MCP servers for Browser and scraping →

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor