FB Ads MCP Server
Provides tools to list campaigns, get campaign insights (spend, impressions, clicks, CPC, CTR), and retrieve account spend summary for Facebook Ads (Meta Ads) accounts.
Provides tools to list campaigns, get campaign insights (spend, impressions, clicks, CPC, CTR), and retrieve account spend summary for Facebook Ads (Meta Ads) accounts.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@FB Ads MCP Servershow me my campaign spend for the last 7 days"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
FB Ads MCP Server
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_readToken expiry: pilih Never expire (system user token boleh permanent)
Copy token tu — ni akan jadi
FB_ACCESS_TOKENDapatkan Ad Account ID kau dari Business Settings → Accounts → Ad Accounts (format:
act_1234567890)
Related MCP server: Meta Ads MCP Server
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 devServer akan jalan di http://localhost:3000/mcp?key=MCP_SECRET_KAU
3. Deploy ke Vercel
npm i -g vercel
vercelLepas 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_KAU4. Connect ke Claude
Claude → Settings → Connectors → Add custom connector
Paste URL penuh (dengan
?key=...sekali) dari step 3Klik 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.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/feruzfauzi/fb-ads-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server