Facebook Analytics
Track your Facebook Page performance — reach, engagement, video views, and post-level metrics. Powered by Boring.
Security & Data Handling
- - MCP link is a credential: Your MCP Server URL (
https://boring.aiagent-me.com/mcp/t/xxxxx...) contains an embedded authentication token. Treat it like a password — do not share it publicly. - Token scope: The embedded token is read-only for analytics. It can only fetch performance metrics and account metadata. It cannot publish, delete, or modify any content on your social media accounts.
- Token storage: The token is stored server-side in Boring's database (MongoDB on DigitalOcean). It is never written to your local filesystem. You can regenerate or revoke it anytime at boring.aiagent-me.com/settings.
- Data flow: Analytics queries are sent from Boring's server (Google Cloud, us-central1) to the platform's API on your behalf. Only performance metrics are retrieved — no content is uploaded or modified.
- No local credentials: No local API keys, environment variables, or secrets are needed. All auth is embedded in the MCP link.
- Third-party service: This skill relies on Boring, an open-source social media management tool. Source code: github.com/snoopyrain.
Prerequisites
- 1. Sign up at boring.aiagent-me.com with Google
- Connect Facebook — requires admin access to a Facebook Page
- Get your MCP link: Go to Settings → copy your MCP Server URL (contains your auth token — treat it like a password)
- Add to Claude: Paste the MCP link as a Connector — no install, no API key needed
Available Tools
| Tool | Data Source | Best For |
|---|
| INLINECODE1 | Real-time platform API | Page-level overview (reach, engagement, video views) |
| INLINECODE2 |
Real-time platform API | Per-post metrics (views, likes, comments, shares) |
|
boring_get_posts_performance | Daily snapshots (collected at 2 AM) | Historical post performance over date ranges |
|
boring_get_publish_history | Boring database | Publishing history and status tracking |
Workflow
Step 1: List Accounts
Call boring_list_accounts and filter for facebook platform. Show the user their connected Pages.
Step 2: Determine What the User Wants
| User Request | Tool to Use |
|---|
| "How is my Facebook doing?" | INLINECODE7 |
| "Show my best Facebook posts" |
boring_get_video_analytics |
| "Facebook performance over the last month" |
boring_get_posts_performance |
| "What did I post on Facebook?" |
boring_get_publish_history |
Step 3: Fetch Data
Page-Level Performance
CODEBLOCK0
Per-Post Analytics (Real-Time)
CODEBLOCK1
Historical Post Performance (Snapshots)
CODEBLOCK2
Step 4: Present Results
Format the data clearly:
- - Page overview: Show key metrics in a summary table
- Post analytics: Rank posts by engagement, highlight top performers
- Historical: Show trends over time
Facebook Metrics
| Metric | Description |
|---|
| INLINECODE11 | Total video views |
| INLINECODE12 |
Likes, comments, shares |
|
page_total_actions | Total page actions |
Error Handling
| Error | Solution |
|---|
| INLINECODE14 | MCP link may be invalid — regenerate it at boring.aiagent-me.com Settings |
| INLINECODE15 |
Run
boring_list_accounts to get valid IDs |
|
TokenExpired | Reconnect account at boring.aiagent-me.com |
| No data returned | Account may be newly connected — data collection runs daily at 2 AM |
Documentation
Full API docs: boring-doc.aiagent-me.com
Facebook Analytics
追踪您的Facebook主页表现——覆盖人数、互动量、视频观看次数以及单篇帖子指标。由 Boring 提供技术支持。
安全与数据处理
- - MCP链接即凭证:您的MCP服务器URL(https://boring.aiagent-me.com/mcp/t/xxxxx...)包含嵌入式身份验证令牌。请像对待密码一样对待它——不要公开分享。
- 令牌范围:嵌入式令牌仅具有分析功能的只读权限。它只能获取性能指标和账户元数据。无法在您的社交媒体账户上发布、删除或修改任何内容。
- 令牌存储:令牌存储在Boring的服务器端数据库(DigitalOcean上的MongoDB)中。它永远不会写入您的本地文件系统。您可以随时在 boring.aiagent-me.com/settings 重新生成或撤销它。
- 数据流:分析查询从Boring的服务器(Google Cloud,us-central1)代表您发送到平台的API。仅检索性能指标——不会上传或修改任何内容。
- 无本地凭证:无需本地API密钥、环境变量或密钥。所有身份验证都嵌入在MCP链接中。
- 第三方服务:此技能依赖于 Boring,一个开源社交媒体管理工具。源代码:github.com/snoopyrain。
前提条件
- 1. 注册 boring.aiagent-me.com(使用Google账号)
- 连接Facebook——需要对Facebook主页拥有管理员权限
- 获取您的MCP链接:前往设置 → 复制您的MCP服务器URL(包含您的身份验证令牌——请像对待密码一样对待它)
- 添加到Claude:将MCP链接粘贴为连接器——无需安装,无需API密钥
可用工具
| 工具 | 数据源 | 最佳用途 |
|---|
| boringgetperformance | 实时平台API | 主页概览(覆盖人数、互动量、视频观看次数) |
| boringgetvideo_analytics |
实时平台API | 单篇帖子指标(观看次数、点赞、评论、分享) |
| boring
getposts_performance | 每日快照(凌晨2点采集) | 指定日期范围内的历史帖子表现 |
| boring
getpublish_history | Boring数据库 | 发布历史与状态追踪 |
工作流程
步骤1:列出账户
调用 boringlistaccounts 并筛选 facebook 平台。向用户展示其已连接的主页。
步骤2:确定用户需求
| 用户请求 | 使用的工具 |
|---|
| 我的Facebook表现如何? | boringgetperformance |
| 展示我表现最好的Facebook帖子 |
boring
getvideo_analytics |
| 过去一个月的Facebook表现 | boring
getposts_performance |
| 我在Facebook上发布了什么? | boring
getpublish_history |
步骤3:获取数据
主页级表现
boringgetperformance(
accountid=id>,
platform=facebook,
period=week // day、week 或 month
)
单篇帖子分析(实时)
boringgetvideo_analytics(
accountid=id>,
platform=facebook,
limit=20 // 最大100
)
历史帖子表现(快照)
boringgetposts_performance(
accountid=id>,
since=2025-12-01,
until=2025-12-31,
limit=20
)
步骤4:呈现结果
清晰格式化数据:
- - 主页概览:在汇总表中展示关键指标
- 帖子分析:按互动量对帖子排序,突出表现最佳的帖子
- 历史数据:展示随时间变化的趋势
Facebook指标
| 指标 | 描述 |
|---|
| pagemediaview | 总视频观看次数 |
| pagepostengagements |
点赞、评论、分享 |
| page
totalactions | 总主页操作次数 |
错误处理
| 错误 | 解决方案 |
|---|
| InvalidApiKey | MCP链接可能无效——在boring.aiagent-me.com设置中重新生成 |
| InvalidAccountId |
运行 boring
listaccounts 获取有效ID |
| TokenExpired | 在boring.aiagent-me.com重新连接账户 |
| 未返回数据 | 账户可能刚刚连接——数据采集每天凌晨2点运行 |
文档
完整API文档:boring-doc.aiagent-me.com