meta-ads-mcp
Verified Safeby retention-corp
Overview
Interacting with Meta Ads API for AI-powered analysis, management, and optimization of advertising campaigns.
Installation
python -m meta_ads_mcp --transport streamable-http --host 0.0.0.0 --port 8080Environment Variables
- PIPEBOARD_API_TOKEN
- META_APP_ID
- META_APP_SECRET
- META_ACCESS_TOKEN
- META_ADS_DISABLE_ADS_LIBRARY
- META_ADS_ENABLE_REPORTS
- META_ADS_ENABLE_SAVE_AD_IMAGE_LOCALLY
- META_ADS_DISABLE_CALLBACK_SERVER
- META_ADS_DISABLE_LOGIN_LINK
- META_MCP_DISABLE_DELIVERY_FALLBACK
- META_ADS_ENABLE_DUPLICATION
Security Notes
The server securely handles credentials using environment variables for sensitive data (API tokens, app secrets). It implements robust token management with `contextvars` for async safety and uses standard HTTP libraries (`httpx`, `requests`) with timeouts for external network requests, mitigating common risks. A default Meta App ID is hardcoded but is explicitly designed to be overridden by environment variables or CLI arguments. The 'duplication' feature (if enabled) relies on an external Pipeboard service (mcp.pipeboard.co), introducing a third-party dependency. Users must configure their authentication tokens securely.
Similar Servers
line-bot-mcp-server
Integrates AI agents with LINE Messaging API for automated communication and management of LINE Official Accounts.
ig-mcp
Integrate AI applications with Instagram Business accounts to manage profiles, media, insights, and direct messages.
metabase-mcp-server
Enables AI assistants to interact with and manage Metabase's analytics platform by providing comprehensive API access through a Model Context Protocol server.
tiktok-ads-mcp
Provides a read-only Model Context Protocol (MCP) server for interacting with the TikTok Business API to retrieve advertising campaign data and performance reports.