claude-meta-mcp
Integrates with Meta Ads (Facebook) for reading and writing campaigns, ad sets, ads, and creatives, including image/video uploads and Facebook Page post management.
Integrates with Instagram Business for publishing and moderating posts, reels, stories, carousels, and comments, as well as retrieving insights.
Integrates with Meta Ads platform, providing comprehensive tools for managing ad accounts, campaigns, and product catalogs across Facebook and Instagram.
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., "@claude-meta-mcpshow me last week's ad performance"
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.
claude-meta-mcp
Self-hosted Meta Ads (Facebook & Instagram) connector for Claude. Bring your campaign data into Claude conversations — no SaaS middleman, no per-seat pricing, your tokens stay on your server.
Status — v0.4.0 (single-tenant alpha). One Meta System User token, one shared Bearer secret, no database. Perfect for personal use or a single agency account. Multi-tenant + OAuth 2.1 + DCR are on the roadmap (see Roadmap).
v0.4 adds read-only Product Catalog tools (catalog discovery, feeds, products, diagnostics) on top of v0.3's full Ads CRUD and Instagram Business publishing. 47 tools across four surfaces — Ads, Pages, Instagram, Catalogs.
Why?
Existing options for connecting Meta Ads to Claude are either:
SaaS-only (Windsor.ai, Pipeboard) — your ad data flows through a third-party platform, monthly fees, vendor lock-in.
Local-only (most community MCP servers) — stdio transport, only works in Claude Desktop, can't be installed as a remote connector in claude.ai web.
claude-meta-mcp is a small, self-hostable Node service that:
Speaks MCP Streamable HTTP, so it works with claude.ai web and Claude Desktop alike.
Reads & writes Meta Ads (campaigns, ad sets, ads, creatives + image/video uploads), publishes & manages Facebook Page posts, publishes & moderates Instagram Business posts/reels/stories/carousels, and inspects Product Catalogs (feeds, products, diagnostics) for Dynamic Product Ads.
Is MIT licensed — fork it, sell it, embed it.
Quick start
Prerequisites
Node.js ≥ 20
A Meta Developer App with a System User token. For the full v0.4 toolset that's
ads_read,ads_management,business_management,pages_*,instagram_*andcatalog_managementscopes → seedocs/META_APP_SETUP.mdfor the full step-by-stepA public HTTPS URL (Claude requires HTTPS for custom connectors)
Install
git clone https://github.com/maxx3250/claude-meta-mcp.git
cd claude-meta-mcp
npm install
cp .env.example .env
# fill in META_ACCESS_TOKEN and generate AUTH_TOKEN:
echo "AUTH_TOKEN=$(openssl rand -hex 32)" >> .env
npm run build
node --env-file=.env dist/index.jsThe server listens on PORT (default 3210) and exposes:
GET /health— liveness probe (no auth)POST /mcp— MCP Streamable HTTP transport (Bearer auth)
Connect to Claude
Put the service behind a reverse proxy that terminates TLS — see
docs/DEPLOYMENT.md.In Claude → Settings → Connectors → Add custom connector.
URL:
https://your-domain.example.com/mcpAdd header
Authorization: Bearer <your AUTH_TOKEN>in the connector's advanced settings.Save. Tools should appear in the connector list.
Available tools
47 tools in v0.4 across four surfaces — Ads (read + write), Facebook Pages (read + write), Instagram Business (read + write), Product Catalogs (read).
Safety: every write tool that creates campaigns / ad sets / ads defaults to
status: PAUSED. To go live you must explicitly passstatus: "ACTIVE". This prevents an LLM from accidentally spending money.
Meta Ads — read
Tool | What it does |
| List ad accounts the token has access to |
| Fetch one ad account's details (balance, currency, spend cap, …) |
| List campaigns inside an ad account, optionally filtered by status |
| Fetch one campaign's full configuration |
| List ad sets under a campaign or an ad account |
| List ads under a campaign, ad set, or ad account |
| Performance metrics (impressions, clicks, spend, CTR, CPC, CPM, reach, conversions) at any level, with date presets / custom ranges and breakdowns |
| List ad creatives inside an ad account |
Meta Ads — write & assets
Tool | What it does |
| Upload an image (URL or base64) to an ad account's library; returns image hash |
| List images in an ad account's library |
| Upload a video (URL or base64) to an ad account; returns video id |
| Poll Meta's async transcoding status for an uploaded video |
| List videos uploaded to an ad account |
| Create an ad creative from a Page post or |
| Delete an ad creative |
| Create a campaign (default |
| Update name / status / budget / bid strategy on a campaign |
| Destructive — delete a campaign |
| Create an ad set with full targeting (geo, age, gender, interests, placements) |
| Update an ad set (status, budget, schedule, targeting) |
| Destructive — delete an ad set |
| Create an ad bound to an ad set + creative (default |
| Update an ad's name, status, or bound creative |
| Destructive — delete an ad |
| Render a preview HTML iframe for any placement (DESKTOP_FEED_STANDARD, INSTAGRAM_STANDARD, …) |
Facebook Pages (read & write)
Tool | What it does |
| List Facebook Pages the System User manages |
| List recent posts on a Page (newest first) |
| Page-level metrics (impressions, engagement, follows, page views) |
| Write — publishes a new post on a Page (text + optional link) |
| Destructive — deletes a post from a Page |
Instagram Business (read & write)
Tool | What it does |
| List IG Business accounts linked to the managed Pages |
| List recent media on an IG account |
| Account-level metrics (reach, impressions, profile_views, …) |
| Per-post metrics (likes, saves, reach, plays for video/reels) |
| Publish IMAGE / VIDEO / REELS / STORIES (2-phase: container + publish, with FINISHED-polling) |
| Publish a 2–10-item carousel post |
| Destructive — delete an IG post / reel / story |
| List comments on an IG media |
| Reply to a comment |
| Destructive — delete a comment |
| Hide / unhide a comment |
Product Catalogs (read)
Tool | What it does |
| Discover Business Manager accounts via dedup over |
| List catalogs owned by a Business (id, name, vertical, product_count, feed_count) |
| Single catalog details with business edge |
| Feeds attached to a catalog with |
| Paginated product listing with availability/condition filters (max 100/call, pass |
| Aggregated catalog issues from |
get_insights is the workhorse. Examples (in plain English from Claude):
"What did we spend in the last 7 days, broken down by campaign?"
"Compare CTR across publisher_platform breakdown for campaign 12345 last month."
"Which ad sets had the worst CPM yesterday?"
Configuration
Variable | Required | Default | Description |
| yes | — | Meta System User token (recommended, never expires) or long-lived user access token. Full v0.4 scopes: |
| no |
| Graph API version |
| yes | — | Shared bearer secret for |
| no |
| Public URL (currently informational; v0.2 will use it for OAuth callbacks) |
| no |
| TCP port to bind |
| no |
|
|
See .env.example.
How is this different from … ?
claude-meta-mcp | Windsor.ai | Pipeboard | hashcott/meta-ads-mcp-server | |
Self-hosted | ✓ | ✗ | ✗ | ✓ |
Remote claude.ai web | ✓ | ✓ | ✓ | partial |
License | MIT | proprietary | BSL 1.1 | MIT |
Your data leaves your server | ✗ | ✓ | ✓ | ✗ |
Monthly fee | $0 | from $19 | from $29 | $0 |
As of May 2026, based on each project's public README and pricing page. Names and trademarks belong to their respective owners; comparison is informational only.
Architecture (v0.4)
┌─────────────────────┐ POST /mcp ┌──────────────────────────┐
│ Claude.ai / Desktop│ ──────────────────► │ Express + MCP server │
│ │ Bearer AUTH_TOKEN │ StreamableHTTPTransport │
└─────────────────────┘ │ │ │
│ ▼ │
│ Meta Graph API client │
│ (axios, v22.0) │
└─────────────┬────────────┘
│
▼
https://graph.facebook.comNo database. No state between requests. One Meta System User token, one Bearer token, 47 tools.
For sequence diagrams and the planned v1.0 multi-tenant architecture, see docs/ARCHITECTURE.md.
Roadmap
v0.2 — Pages support ✓ shipped
list_pages,list_page_posts,get_page_insights,create_page_post,delete_page_post
v0.3 — Ads write + Instagram ✓ shipped
Ads CRUD (campaigns, ad sets, ads, creatives)
Image + video upload
Instagram Business publishing (image / video / reel / story / carousel)
Instagram comments (read / reply / delete / hide)
v0.4 — Product Catalogs (read) ✓ shipped (current)
Business discovery via adaccount + page dedup
Catalog + feed listing, single-catalog detail
Product listing with availability/condition filters
get_catalog_diagnostics(/{catalog_id}/diagnostics+ feed-upload fallback)
v0.5 — Catalog writes + Signal Diagnostics
create_product_catalog,create_product_feed,update_product_feed_schedulePixel + CAPI health (
list_pixels,get_pixel_stats,get_pixel_event_match_quality,get_capi_status)
v0.6 — proper auth
OAuth 2.1 with Dynamic Client Registration on the Claude side
.well-known/oauth-authorization-serverdiscovery endpointToken issuance + refresh
v0.7 — multi-tenant
Meta OAuth user flow + 60-day token refresh
SQLite (then Postgres) for user → meta-token mapping
AES-256-GCM encryption at rest for stored tokens
v0.8 — performance
Insights pre-aggregation cache with smart invalidation
Background refresh for "yesterday and earlier" data
v1.0 — production-ready
Audit log, rate limiting per tenant
Prometheus
/metricsendpointHealth checks for downstream Meta API
Stretch
Google Ads connector under the same umbrella
TikTok Ads connector
LinkedIn Ads connector
Project layout
src/
├── index.ts Express + MCP bootstrap, Bearer middleware
├── config.ts Env validation
├── meta-client.ts Graph API axios wrapper + pagination + multipart helpers
├── tools.ts Read tools (Ads + Pages)
├── tools-write.ts Ads write tools (campaigns/ad sets/ads/creatives + asset uploads)
├── tools-instagram.ts Instagram Business tools (publish + comments + insights)
└── tools-catalogs.ts Product Catalog read tools (businesses, catalogs, feeds, products, diagnostics)
docs/
├── ARCHITECTURE.md
├── DEPLOYMENT.md
└── META_APP_SETUP.md
ecosystem.config.cjs pm2 example
.env.example Configuration templateDevelopment
npm run dev # tsx watch mode
npm run build # tsc → dist/
npm start # node dist/index.jsSecurity notes
The Bearer token in
AUTH_TOKENis a single shared secret. Anyone with it can mutate ad campaigns, publish/delete posts on your Facebook Pages and Instagram Business accounts, and read your product catalogs via the connector. Treat it like a database password.All write tools that create campaigns/ad sets/ads default to
status: PAUSED. Activating an ad still costs nothing until you setstatus: "ACTIVE".The connector's scopes are additive. If you only want a read-only Ads experience, omit
ads_managementand the IG/Pages write scopes from your System User token — the matching tools will then fail with 403 at runtime.Always run behind HTTPS. Claude refuses to connect to non-TLS connectors anyway.
Rotate
AUTH_TOKENby editing.envand restarting the process.Rotate
META_ACCESS_TOKENby revoking the System User token in Meta Business and minting a new one.
If you find a security issue, please email security@markusstoeger.com instead of opening a public issue.
Contributing
PRs welcome. See CONTRIBUTING.md for ground rules and
CODE_OF_CONDUCT.md. Security issues should follow
SECURITY.md, not the public issue tracker.
License
MIT © 2026 Markus Stöger
Acknowledgements
Inspired by the open MCP ecosystem and prior art in hashcott/meta-ads-mcp-server, pipeboard-co/meta-ads-mcp, and the Model Context Protocol team.
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
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/maxx3250/claude-meta-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server