Back to Home
retention-corp icon

meta-ads-mcp

Verified Safe

by retention-corp

Overview

Interacting with Meta Ads API for AI-powered analysis, management, and optimization of advertising campaigns.

Installation

Run Command
python -m meta_ads_mcp --transport streamable-http --host 0.0.0.0 --port 8080

Environment 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

Stats

Interest Score0
Security Score8
Cost ClassMedium
Avg Tokens750
Stars0
Forks0
Last Update2026-01-19

Tags

Meta AdsAPI IntegrationCampaign ManagementAI AgentMarketing Analytics