MCP-Facebook

MCP-Facebook

10

The Facebook Ads MCP Server facilitates interaction with the Facebook Marketing API through AI assistants, managing and analyzing ad campaigns, audiences, and ad sets. It provides AI-generated campaign prompts and offers comprehensive campaign insights.

Facebook Ads MCP Server

This project provides a Model Context Protocol (MCP) server designed to interact with the Facebook Marketing API, allowing AI assistants to manage and analyze Facebook ad campaigns, ad sets, audiences, etc.

Features

  • Campaign Management: Create, read, update, delete campaigns.
  • Audience Management: Create custom and lookalike audiences, list audiences.
  • Ad Set Management: Basic implementation to create ad sets.
  • Analytics: Campaign insights retrieval.
  • AI Assistance: Generate campaign prompts based on templates.

Prerequisites

  • Node.js (v18 or later) and npm
  • A Facebook App with Marketing API access
  • Facebook Ad Account ID and Access Token with permissions

Installation

  1. Clone the repository and navigate to the folder.
  2. Install dependencies using npm.
  3. Configure environment variables in a .env file.

Usage

  1. Build the server using npm commands.
  2. Run the server for MCP connections.
  3. Connect with an MCP Client for interaction.