---
title: "Facebook MCP Server · SocialToAI"
canonical: https://socialtoai.com/mcp/facebook/
updated: 2026-11-05
---

# Facebook MCP Server

SocialToAI is a hosted MCP server that lets your AI read Facebook: read post details, comments, account profiles and an account's posts. You add one address to Claude, ChatGPT or Cursor; there is no Facebook account, login or cookie to provide and nothing to install. Each call costs 2 credits (from $0.004); failed calls are free. Last tested 2026-11-05.

- Page: https://socialtoai.com/mcp/facebook/
- Last updated: 2026-11-05
- Last tested: 2026-11-05

## Connect SocialToAI

Address: `https://mcp.socialtoai.com/mcp`

Add an MCP server in your AI and enter this address. If a sign-in page opens, sign in with your email and press Allow. If your tool asks for a key instead, copy one from the console and put it in a header: `Authorization: Bearer <YOUR_API_KEY>`. [Get a key](https://socialtoai.com/console/keys/)

In a terminal: run a command, then sign in: 

Claude Code: 

```
claude mcp add --transport http socialtoai https://mcp.socialtoai.com/mcp
```

Then in Claude Code type /mcp, pick socialtoai and sign in.

Codex: 

```
codex mcp add socialtoai --url https://mcp.socialtoai.com/mcp
```

Then sign in in the browser that opens.

Writing code? Call the API with a key: see [the API docs](https://socialtoai.com/docs.md).

## Step-by-step for your client

The same address everywhere. Each client has a page: where to enter it, how it signs in, and what to ask first.

- [Claude Code](https://socialtoai.com/connect/claude-code.md): Run a command, then sign in
- [Claude app](https://socialtoai.com/connect/claude.md): Paste the address, then sign in
- [ChatGPT](https://socialtoai.com/connect/chatgpt.md): Paste the address, then sign in
- [Cursor](https://socialtoai.com/connect/cursor.md): Add the address, then sign in
- [Codex](https://socialtoai.com/connect/codex.md): Run a command, then sign in
- [Trae](https://socialtoai.com/connect/trae.md): A few lines of settings and a key
- [Cherry Studio](https://socialtoai.com/connect/cherry-studio.md): The address and a key in a form
- [Dify](https://socialtoai.com/connect/dify.md): The address and a key in a form
- [n8n](https://socialtoai.com/connect/n8n.md): The address and a key in a form

The MCP page: https://socialtoai.com/mcp.md

## What your AI can call on Facebook

| Tool | What it returns | Price key | Credits | Parameters and fields |
| --- | --- | --- | --- | --- |
| `detail` | One post by link: text, author, likes, comment count, views and publish time. | `facebook.detail` | 2 | https://socialtoai.com/facebook-detail-api.md |
| `comments` | The comments under one post: text, likes, reply count and time. | `facebook.comments` | 2 | https://socialtoai.com/facebook-comments-api.md |
| `user_profile` | One account: name, bio and followers. | `facebook.user_profile` | 2 | https://socialtoai.com/facebook-user-profile-api.md |
| `user_posts` | The recent posts of one account. | `facebook.user_posts` | 2 | https://socialtoai.com/facebook-user-posts-api.md |

## A recorded conversation

> What has NASA posted on Facebook this week, and how do people respond?

| Platform | Tool | Sent | Requests | Returned | Credits |
| --- | --- | --- | --- | --- | --- |
| Facebook | [`user_posts`](https://socialtoai.com/facebook-user-posts-api.md) | `username: "NASA"` | 1 | 3 posts | 2 |
| Facebook | [`comments`](https://socialtoai.com/facebook-comments-api.md) | `id: "1677103650451671"` | 1 | 8 comments | 2 |
| **Total** |  |  | 2 | 11 items | **4** |

Recorded 2026-11-05

I read the latest 3 posts of NASA's public page and one page of comments under the spacewalk notice (8 of its 84):

1. **Two of the three posts are about the spacewalk** (67%, 2 posts): [“install the final roll-out solar array”](https://www.facebook.com/reel/1490326792951141/)
2. **Most replies wish them well** (38%, 3 comments): “thank you for the amazing work you do”
3. **Some ask whether the money is well spent** (13%, 1 comment): “Maybe look after the earth we live in”

Used 4 credits · $0.013. Figures from this run.

## Questions to ask

- Read the comments on this Facebook post and tell me what people complain about. → detail, comments × 3: 8 credits ($0.027)
- How big is this Facebook account, and what has it posted lately? → user_profile, user_posts: 4 credits ($0.013)
- Look up this Facebook account and tell me who it is. → user_profile: 2 credits ($0.0067)

## What it cannot do

- **No search and trending on Facebook**: These actions are not offered on Facebook. A call answers that the action is not supported and costs nothing. `search`, `trending`
- **Fields Facebook does not give**: They come back as null and are listed in the answer's unavailable, so your AI reads them as “not given”, not as zero. `title`, `author.followers`, `metrics.collects`, `metrics.reposts`, `hashtags`, `is_pinned`, `url`, `parent_id`, `root_id`, `verified`, `following`, `posts_count`, `author.username`, `author.verified`, `metrics.shares`, `metrics.views`
- **It reads. It does not post.**: Your AI cannot post, comment, like, follow or send messages on Facebook through SocialToAI.
- **Only what is publicly visible**: Content and account information anyone can see on Facebook. Nothing behind a login: no private accounts, no direct messages, no feed of your own.

## FAQ

**Does Facebook have an official API? Is this server official?**

Only with approval: reading public Page posts and comments needs the Page Public Content Access feature, App Review and business verification. This MCP server is run by SocialToAI; it is not the platform's own and is not affiliated with it. Source: developers.facebook.com, checked 2026-10-17.

**Can Claude and ChatGPT use it?**

Yes. In Claude or ChatGPT, on the web or the desktop app, paste the address above as a custom connector, sign in with a code sent to your email and press Allow. Claude Code and Codex take one command and Cursor a short config, then the same sign-in; a tool that only takes headers uses a key.

**Do I need a Facebook account?**

No. No account of yours needed, your accounts stay out of it: no Facebook login, no cookie, nothing to install. It reads what is publicly visible on Facebook, and it cannot post.

**How much does it cost?**

From 2 credits a call, about $0.0067 at the first pack. A failed call costs nothing, and each call states what it charged. 100 free credits on sign-up, no card.

## Related pages

- [Facebook API](https://socialtoai.com/platforms/facebook.md)
- [TikTok MCP Server](https://socialtoai.com/mcp/tiktok.md)
- [Instagram MCP Server](https://socialtoai.com/mcp/instagram.md)
- [X (Twitter) MCP Server](https://socialtoai.com/mcp/x.md)
- [Reddit MCP Server](https://socialtoai.com/mcp/reddit.md)
- [YouTube MCP Server](https://socialtoai.com/mcp/youtube.md)
- [LinkedIn MCP Server](https://socialtoai.com/mcp/linkedin.md)
- [Threads MCP Server](https://socialtoai.com/mcp/threads.md)
- [Telegram MCP Server](https://socialtoai.com/mcp/telegram.md)
- [Pinterest MCP Server](https://socialtoai.com/mcp/pinterest.md)
- [Xiaohongshu (RedNote) MCP Server](https://socialtoai.com/mcp/xiaohongshu.md)
- [Douyin MCP Server](https://socialtoai.com/mcp/douyin.md)
- [Weibo MCP Server](https://socialtoai.com/mcp/weibo.md)
- [WeChat Articles MCP Server](https://socialtoai.com/mcp/wechat.md)
- [Bilibili MCP Server](https://socialtoai.com/mcp/bilibili.md)
- [Zhihu MCP Server](https://socialtoai.com/mcp/zhihu.md)
- [Kuaishou MCP Server](https://socialtoai.com/mcp/kuaishou.md)
- [WeChat Channels MCP Server](https://socialtoai.com/mcp/wechat-channels.md)
