FB Ads Server
FreeNot checkedProvides tools to access Facebook Ads campaign data, insights, and account spend summaries without paid services.
About
Provides tools to access Facebook Ads campaign data, insights, and account spend summaries without paid services.
README
MCP server sendiri yang bagi Claude akses terus ke data Facebook Ads (Meta Ads) kau — tanpa perlu bayar Supermetrics/Windsor.ai.
Ada 3 tools:
list_campaigns— senarai campaign (active/paused/all)get_campaign_insights— spend, impressions, clicks, CPC, CTR ikut campaignget_account_spend_summary— ringkasan total spend untuk seluruh akaun
1. Dapatkan Facebook Access Token
- Pergi ke Meta Business Suite → Business Settings
- Bawah Users, pilih System Users → Add → buat satu system user (contoh:
mcp-bot) - Assign system user tu ke Ad Account kau, dengan permission Manage Campaigns (view sudah cukup untuk
ads_read) - Klik Generate New Token:
- App: pilih/buat Facebook App (kena ada App ID di developers.facebook.com)
- Permission: tick
ads_read - Token expiry: pilih Never expire (system user token boleh permanent)
- Copy token tu — ni akan jadi
FB_ACCESS_TOKEN - Dapatkan Ad Account ID kau dari Business Settings → Accounts → Ad Accounts (format:
act_1234567890)
2. Setup Local (untuk test dulu)
npm install
cp .env.example .env.local
# isi FB_ACCESS_TOKEN, FB_AD_ACCOUNT_ID, dan MCP_SECRET (guna: openssl rand -hex 24)
npm run dev
Server akan jalan di http://localhost:3000/mcp?key=MCP_SECRET_KAU
3. Deploy ke Vercel
npm i -g vercel
vercel
Lepas deploy, pergi ke Vercel Dashboard → Project → Settings → Environment Variables,
tambah FB_ACCESS_TOKEN, FB_AD_ACCOUNT_ID, MCP_SECRET (yang sama macam local), then
vercel --prod untuk deploy production.
URL server kau akan jadi macam:
https://fb-ads-mcp-xxxx.vercel.app/mcp?key=MCP_SECRET_KAU
4. Connect ke Claude
- Claude → Settings → Connectors → Add custom connector
- Paste URL penuh (dengan
?key=...sekali) dari step 3 - Klik Add
- Dalam mana-mana chat, klik + → Add connectors → toggle ON connector ni
- Cuba tanya: "Tunjuk spend campaign aku 7 hari lepas"
Nota Keselamatan
- Server ni public di internet (syarat MCP remote connector).
MCP_SECRETdi URL adalah satu-satunya proteksi — jangan share URL tu kat sesiapa, treat macam password. - Token Facebook kau disimpan sebagai environment variable di Vercel, bukan dalam kod — jangan
commit
.env.localke Git (dah ada dalam.gitignoresepatutnya, cek balik). - Kalau nak lebih selamat, boleh upgrade guna OAuth (Claude custom connector ada slot untuk OAuth Client ID/Secret) — tapi untuk penggunaan solo/peribadi, shared secret ni dah cukup.
Installing FB Ads Server
This server has no published package — it is built from source. Open the repository and follow its README.
▸ github.com/feruzfauzi/fb-ads-mcpFAQ
Is FB Ads Server MCP free?
Yes, FB Ads Server MCP is free — one-click install via Unyly at no cost.
Does FB Ads Server need an API key?
No, FB Ads Server runs without API keys or environment variables.
Is FB Ads Server hosted or self-hosted?
A hosted option is available: Unyly runs the server in the cloud, no local setup required.
How do I install FB Ads Server in Claude Desktop, Claude Code or Cursor?
Open FB Ads Server on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
GitHub
PRs, issues, code search, CI status
by GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
by mcpdotdirectCompare FB Ads Server with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All development MCPs
