# HasData Facebook

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.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 11
- Author: HasData
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/HasData/facebook-mcp
- Updated: 2026-10-12
- HTML: https://affpapa.org/en/nevibecode/mcp/hasdata-facebook

## What it 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.

## Requirements
- Needs: Node.js (commands run via npx)
- Remote server: `https://mcp.hasdata.com/mcp?apis=facebook`
- Environment variables: `HASDATA_API_KEY` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

1. **Platform CLI**
```bash
claude mcp add facebook -e HASDATA_API_KEY=<HASDATA_API_KEY> -- npx -y @hasdata/facebook-mcp
```
Replace <…> with your own values

2. **Platform CLI: remote server**
```bash
claude mcp add --transport http hasdata-facebook 'https://mcp.hasdata.com/mcp?apis=facebook'
```

### Codex

1. **Platform CLI: remote server**
```bash
codex mcp add hasdata-facebook --url 'https://mcp.hasdata.com/mcp?apis=facebook'
```

2. **Platform CLI**
```bash
codex mcp add hasdata-facebook --env HASDATA_API_KEY=<HASDATA_API_KEY> -- npx -y @hasdata/facebook-mcp
```
Replace <…> with your own values

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "hasdata-facebook": {
            "url": "https://mcp.hasdata.com/mcp?apis=facebook"
        }
    }
}
```
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "hasdata-facebook": {
            "command": "npx",
            "args": [
                "-y",
                "@hasdata/facebook-mcp"
            ],
            "env": {
                "HASDATA_API_KEY": "<HASDATA_API_KEY>"
            }
        }
    }
}
```
Replace <…> with your own values

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "hasdata-facebook": {
            "type": "http",
            "url": "https://mcp.hasdata.com/mcp?apis=facebook"
        }
    }
}
```
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "hasdata-facebook": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "@hasdata/facebook-mcp"
            ],
            "env": {
                "HASDATA_API_KEY": "<HASDATA_API_KEY>"
            }
        }
    }
}
```
Replace <…> with your own values

### Gemini CLI

1. **Platform CLI: remote server**
```bash
gemini mcp add -t http hasdata-facebook 'https://mcp.hasdata.com/mcp?apis=facebook'
```

2. **Platform CLI**
```bash
gemini mcp add -e HASDATA_API_KEY=<HASDATA_API_KEY> hasdata-facebook npx -y @hasdata/facebook-mcp
```
Replace <…> with your own values

## When to use it
- 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
- 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.

## Similar
- [HasData Redfin](https://affpapa.org/en/nevibecode/mcp/hasdata-redfin.md) — MCP server · ★ 10
- [HasData Instagram](https://affpapa.org/en/nevibecode/mcp/hasdata-instagram.md) — MCP server · ★ 15
- [facebook-research](https://affpapa.org/en/nevibecode/skills/facebook-research.md) — skill · 1100 installs
- [facebook-strategy](https://affpapa.org/en/nevibecode/skills/facebook-strategy.md) — skill · 645 installs
- [facebook-groups](https://affpapa.org/en/nevibecode/skills/facebook-groups.md) — skill · 616 installs
- [dashboarding](https://affpapa.org/en/nevibecode/skills/dashboarding.md) — skill · 8500 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
