HasData Facebook

com.hasdata由 hasdata.com 发布官方发布者v1.0.3更新于 Nov 23, 2026

Public Facebook pages and profiles with likes, followers, contact details and posts, as JSON.

发布方自己的服务:HasData Airbnb

已验证Streamable HTTP可网页运行网页搜索与抓取商业与电商

概览

AI 生成的概览

托管式 HasData MCP 服务器,让助手以结构化 JSON 获取公开的 Facebook 主页或个人资料,包括联系方式与帖子互动数据。

可以做什么
按账号名、@用户名或数字 ID 查询公开的 Facebook 主页或个人资料,返回名称、类别、简介、点赞数、粉丝数、联系方式、所有者,以及近期照片和最新帖子(含表情回应、评论与分享)。通过每次响应返回的 nextPageToken 逐页读取主页动态,每次三篇,直到令牌消失。从资源中读取支持的语言代码,使页面以 32 种语言之一返回。
适用场景
适合需要公开 Facebook 主页数据做调研、品牌或竞品对比、联系方式与互动情况核查,又不想申请 Meta 开发者应用或自建抓取流程的场景。不适用于群组和私密个人账号。
运行要求
需要 HasData API 密钥:远程端点通过 x-api-key 请求头传入,npm 或 PyPI 的 stdio 启动器通过 HASDATA_API_KEY 环境变量传入。需要 MCP 客户端,支持 OAuth 的客户端可直接登录。需要能访问托管端点的网络。
安装前请注意
每次成功调用消耗 10 个积分;免费额度为每月 1,000 积分,付费方案每月 59 美元起。查不到页面、页面已删除或非公开时仍返回 200 并带错误,且照常计费。公开个人资料属于个人数据,存储结果前请确认 GDPR、CCPA 与 Meta 条款下的义务。图片链接带签名且会过期。该服务与 Meta 无关联。

AI 概览如何生成和校验

安装

在 SourceWeft 中

  1. 打开 控制台中的 HasData Facebook,将其添加到工作区。
  2. 连接 x-api-key 凭据。它们会被私密存储,绝不会在公开页面上展示。
  3. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/com.hasdata%2Ffacebook/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "hasdata-facebook": {
      "type": "http",
      "url": "https://mcp.hasdata.com/mcp?apis=facebook",
      "headers": {
        "x-api-key": "<YOUR_API_KEY>"
      }
    }
  }
}

README

Facebook MCP Server

A hosted Facebook MCP server that gives Claude, Cursor, Windsurf and any other MCP client one read-only Facebook tool. Look up a public page or profile by its handle and get the page record with its exact like count, contact details and owner, plus the post feed with reactions, comments and shares, all as structured JSON, with no Meta developer app and nothing to host.

It reads public Facebook pages that a signed-out visitor can see. Groups and private personal accounts are out of scope.

1,000 free credits every month, no card required, which is 100 Facebook calls at the 10-credit rate.

https://mcp.hasdata.com/mcp?apis=facebook

[Glama score] [tool contract] [MCP] [Tools]

Contents

What you need

An MCP client and a HasData API key from the dashboard, free to create with no card, and the free tier covers about 100 calls a month at the 10-credit rate. This is a remote server, so the simplest path is a URL and an x-api-key header, with no container to run. A client that only speaks stdio reaches it through a thin launcher, published as @hasdata/facebook-mcp on npm and hasdata-facebook-mcp on PyPI, shown below.

Quick start

The server URL is the same for every client. We run it hands-on in Claude Code and Claude Desktop. The other blocks follow each client's own documented format for a remote server.

FieldValue
URLhttps://mcp.hasdata.com/mcp?apis=facebook
TransportHTTP, streamable
Auth headerx-api-key: HASDATA_API_KEY

Clients with OAuth support can add the same URL as a connector and sign in without putting a key in a config file.

Claude Code
claude mcp add --transport http facebook "https://mcp.hasdata.com/mcp?apis=facebook" \
  --header "x-api-key: HASDATA_API_KEY"
Claude Desktop

Settings, then Connectors, then Add custom connector, then paste https://mcp.hasdata.com/mcp?apis=facebook and sign in.

For the config-file route, Claude Desktop loads only local (stdio) servers, so it reaches a remote server through a stdio launcher. The @hasdata/facebook-mcp package is that launcher, and it reads the key from the environment. Add this to claude_desktop_config.json:

{
  "mcpServers": {
    "facebook": {
      "command": "npx",
      "args": ["-y", "@hasdata/facebook-mcp"],
      "env": { "HASDATA_API_KEY": "YOUR_KEY" }
    }
  }
}

For Python instead of Node, swap the launcher for the PyPI package, which uvx runs without a manual install:

{
  "mcpServers": {
    "facebook": {
      "command": "uvx",
      "args": ["hasdata-facebook-mcp"],
      "env": { "HASDATA_API_KEY": "YOUR_KEY" }
    }
  }
}
Cursor

~/.cursor/mcp.json for every project, or .cursor/mcp.json for one:

{
  "mcpServers": {
    "facebook": {
      "url": "https://mcp.hasdata.com/mcp?apis=facebook",
      "headers": { "x-api-key": "HASDATA_API_KEY" }
    }
  }
}
Windsurf

~/.codeium/windsurf/mcp_config.json. Windsurf calls the field serverUrl, not url:

{
  "mcpServers": {
    "facebook": {
      "serverUrl": "https://mcp.hasdata.com/mcp?apis=facebook",
      "headers": { "x-api-key": "HASDATA_API_KEY" }
    }
  }
}
VS Code

.vscode/mcp.json in the workspace:

{
  "servers": {
    "facebook": {
      "type": "http",
      "url": "https://mcp.hasdata.com/mcp?apis=facebook",
      "headers": { "x-api-key": "HASDATA_API_KEY" }
    }
  }
}

Example prompts

  • How many people like the Nike page, and how many are talking about it this week?
  • Pull the contact details and the confirmed owner of this Facebook page.
  • Read the last ten posts on this page and tell me which got the most shares.
  • Compare the reaction mix on this brand's posts with its competitor's.
  • Is this Facebook page verified, and what category does it list?
  • Walk this page's feed back to the start of the month and list the posts with video.

One call returns the page record and the newest post. Walking the feed takes one more call per three posts, using the token the previous response returns.

Tools

ToolWhat it returns
hasdata_facebook_profile_getFacebookProfileFetches a public Facebook page or profile by handle (username, @username or numeric profile id) and returns page id, name, username, category, bio, exact likes and…. 10 credits a call

One tool, 10 credits per successful call.

Get Facebook profile

hasdata_facebook_profile_getFacebookProfile

A public page or profile, with its feed.

ParameterTypeRequiredNotes
handlestringyesThe username, with or without @, or the numeric id from a profile.php?id=… URL
languagestringLanguage the page is rendered in, one of 32 codes such as en, de, pt or zh-hans
nextPageTokenstringCursor from the previous response, to read the next three posts

The first call returns four blocks. profile is the page record, posts holds the newest post, photos is the strip of recent images, and pagination carries postsPerPage, nextPage and the nextPageToken to continue with.

Every call made with a token returns posts and pagination only, three posts at a time, with a fresh token until the feed ends and the token disappears.

{
  "profile": {
    "id": "100044541544829",
    "pageId": "15087023444",
    "name": "Nike",
    "username": "nike",
    "url": "https://www.facebook.com/nike",
    "category": "Sportswear Store",
    "biography": "Just Do It.",
    "talkingAboutCount": 173971,
    "checkInsCount": 18299,
    "followersCount": "39M followers",
    "followingCount": "24 following",
    "verified": true,
    "website": "nike.com",
    "websiteUrl": "http://nike.com/",
    "phone": "+48 58 881 27 61",
    "owner": { "name": "NIKE, Inc.", "isConfirmed": true },
    "profilePicUrl": "https://scontent.fmex5-1.fna.fbcdn.net/v/t39.30808-1/284964043_10159903868513445_7696353984967674128_n.jpg",
    "coverPhotoUrl": "https://scontent.fmex25-1.fna.fbcdn.net/v/t39.30808-6/285211224_10159903868008445_5477337468887983165_n.png"
  },
  "posts": [
    {
      "id": "1393461115481927",
      "url": "https://www.facebook.com/reel/2166091230582141/",
      "text": "Leave your limits at the surface. #JustDoIt",
      "hashtags": ["#JustDoIt"],
      "timestamp": "2025-09-15T16:01:59.000Z",
      "reactionsCount": 7885,
      "commentsCount": 2461,
      "sharesCount": 1124,
      "reactions": [{ "type": "Like", "count": 6491 }],
      "media": [{ "id": "2166091230582141", "type": "Video" }]
    }
  ],
  "photos": [{ "id": "1095811278580247", "type": "Photo", "image": "https://scontent.fmex22-1.fna.fbcdn.net/v/t39.30808-6/471313661_18515827156020081_2460706748949541958_n.jpg" }],
  "pagination": { "postsPerPage": 3, "nextPage": 2, "nextPageToken": "eyJjdXJzb3IiOiJDZzhPYjNKbllXNXBZMTlqZFhKemIzS…" }
}

Prompts and resources

The server exposes one resource, the accepted values of the single parameter that takes a fixed list. Reading it is cheaper than learning the vocabulary from a rejected call, and it costs no credits.

ParameterValuesWhat it selects
language32Language the page is rendered in. Facebook serves a page in the language of the request, so this changes the localised strings (followersCount, followingCount, category) while the exact figures (likesCount, talkingAboutCount) stay numeric in every language.

Its URI is hasdata://facebook/language.

The list is served without an API key, so a client can read it before a user has signed up.

Errors and failure paths

Plan for these rather than assuming a happy path.

Two of the counts are numbers and two are strings, and that is not a bug. talkingAboutCount and checkInsCount are the exact figures Facebook publishes. likesCount is optional: Facebook stopped showing a page like count in November 2026, so most pages come back without the field, and when it is there it is a number. followersCount and followingCount arrive as the rounded, localised text the page shows, "39M followers" in English and "39 Mio. Follower" when language is de. Compare with the numbers, display the strings.

language changes the strings, not the numbers. category moved from Sportswear Store to Sportbekleidungsgeschäft under de, while talkingAboutCount stayed a number. Pick the language for the reader, not for the maths.

A page that does not exist, was deleted or is not public still answers 200. The response then carries error instead of profile, and the call is billed. Test for profile before you read it. Groups and private personal accounts land here too.

The first page of the feed holds one post, not three. postsPerPage says 3, and pages two onward do return three, but the opening response carries the newest post alone alongside the profile and photos. Count what you got rather than what the field promises.

Later pages drop profile and photos. A call made with nextPageToken returns posts and pagination only. Keep the profile from the first response instead of expecting it again.

The token is the only way forward. nextPage is a page number for your own bookkeeping, and there is no parameter that takes it. Pass the previous nextPageToken unchanged, and stop when a response arrives without one.

Contact details are what the page shows to the request, not a canonical record. A global brand page can surface a regional phone number, and website is the display text while websiteUrl is the link. Read owner.isConfirmed before you treat the owner name as verified.

Image URLs are Facebook CDN links with signed parameters. They expire. Fetch what you need promptly and store the file, not the URL.

Results that carry data also carry a requestMetadata.id worth quoting in support.

Pricing, free tier and limits

The Facebook tool costs 10 credits per successful call. Response size does not change the price, and a page of the feed costs the same as the opening call, so a thirty-post read is one call plus ten more.

The free tier is 1,000 credits every month with no card, which is 100 Facebook calls at the base rate. It renews with the billing cycle, so a low-volume agent runs on the free tier indefinitely.

Paid plans start at $59 a month for 200,000 credits, which is 20,000 calls. The unit price falls with volume, from $2.95 per 1,000 calls on the entry plan to $1.19 on Basic and $0.83 across the Growth tiers. Current figures live on the pricing page.

Your plan also sets concurrency. The free tier allows 5 requests at a time, Startup 5, Basic 15, and the Growth tiers run from 50 to 500. Retry on the 429 with a backoff in anything unattended, because an agent that enriches a list of pages will reach the ceiling before you do.

A request that comes back non-200 is not billed. A successful call that finds no page is still a call.

How it compares

Meta's Graph API is the official route to page data, and it is built for a different situation.

Meta Graph APIThis server
EligibilityA Meta developer app, an access token, and App Review for pages you do not manageAn API key
Pages you can readYour own pages in full, others only through reviewed permissionsAny public page or profile
SetupApp creation, permissions, token handling, reviewOne header
Post reactionsPer-type counts on pages you managePer-type counts on any public page
Language of the recordYour app's localeAny of 32, per call
CostFree within rate limitsPaid past the free tier, 10 credits a call

The row that decides it is which pages you can read. The Graph API is the right tool for pages you administer, and its Page Public Content Access permission for everything else needs a business verification and a review with a stated use case. When the page is yours, use the Graph API, it is free and complete.

FAQ

Is there an official Facebook MCP server?

Meta does not publish one for reading public pages. This one is maintained by HasData and reads public Facebook pages.

What is a Facebook MCP server?

An MCP server exposes tools an AI client can call. This one turns a public Facebook page and its feed into JSON an agent can reason over, without a browser or a scraping library in your stack.

Do I need a Facebook account or a Meta developer app?

No. The only credential is your HasData key.

Can I read a personal profile or a group?

A public personal profile works the same way as a page. Private accounts and groups are not supported and come back with the not-available error.

Can I pass a numeric id instead of a username?

Yes. Both the id and the pageId a response returns resolve as handle, so a page reached once by name can be tracked by id afterwards.

How do I read the whole feed?

Call once with the handle, then keep calling with the nextPageToken from each response until a response arrives without one. Three posts come back per token.

Why is followersCount text while talkingAboutCount is a number?

Because that is how Facebook publishes them. The talking-about count and the check-ins count are exact on the page, and the follower count is shown rounded and localised. The response passes both through as they are. The page like count is a different story: Facebook stopped showing it in November 2026, so likesCount is absent on most pages now and arrives as a number only where the page still carries one. Per-post Like reactions are unaffected and sit in each post's reactions array.

Can I use this together with other HasData APIs?

Yes. One key covers everything, and one endpoint serves them all through the apis parameter. Point a client at ?apis=facebook,instagram to get both tool sets in one connection, or at mcp.hasdata.com/mcp for the full catalogue.

Is HasData affiliated with Meta or Facebook?

No. HasData is an independent service and is not affiliated with, endorsed by, or sponsored by Meta. Facebook is a trademark of its respective owner. The tools work with publicly available data only, and you are responsible for using the results in line with Meta's terms and the law that applies to you.

Compliance and personal data

A page record for a business is a business record, and a public personal profile is personal data in the plainest sense, with a name, a photo, a bio and a public feed. The tool does not tell the two apart, so your purpose has to. Keep to what your use case needs, do not build profiles of individuals you have no business with, and check your obligations under the GDPR, the CCPA and Meta's terms before storing anything. Contact details on a page are published for customers, and marketing to them is regulated separately again.

HasData links

Other HasData MCP servers: Instagram, TikTok, YouTube, Google Search, Google Images, Google Scholar, Google Maps, Google Trends, Google Flights, Bing, DuckDuckGo, Amazon, Walmart, Shopify, Yelp, Yellow Pages, Zillow, Redfin, Airbnb, Booking.com, Indeed, Glassdoor, Web Scraping.

Development

The launcher is a thin stdio bridge to the remote server, so there is nothing to build.

npm install
HASDATA_API_KEY=your_key_here npm test

The tests in test/ assert the tool contract, the part that can break without a commit here. They check that ?apis=facebook returns the one expected tool, that its name has not changed, that it still requires handle and carries a description, that language still offers the codes this README names, and that the key in use is actually accepted.

One test reads a live page and asserts the two things this README leans on: that talkingAboutCount is a number rather than display text (and likesCount too, whenever the page still carries one), and that pagination.nextPageToken arrives, because without the token the feed walk this README documents does not exist. That call costs 10 credits, which is the price of a canary that can fail for the right reason.

The contract suite also runs weekly on a schedule, because the upstream tool list can change without anyone touching this repository.

Contributing

A tool table, a response sample or a documented behaviour that does not match reality is worth an issue. There is a template for exactly that. Pull requests are welcome for the same, and for anything in the launcher.

License

MIT, see LICENSE.

来源:README.md,提交 23cd5f5

工具

0
SourceWeft 尚未读取此服务器的工具。

版本历史

3
  1. v1.0.3最新Sep 24, 2026
  2. v1.0.2Sep 22, 2026
  3. v1.0.1Sep 16, 2026

评分

已满足适用检查项的 85%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

这个评分如何计算

其他 Hasdata 集成