Facebook Ads MCP Server logo

Facebook Ads MCP Server

by Tisik79

This MCP server provides an interface for communicating with the Facebook Marketing API using the MCP protocol. It allows Claude AI and other LLM models to work with Facebook ads, enabling campaign creation, management, analysis, and performance optimization.

View on GitHub

Last updated: N/A

What is Facebook Ads MCP Server?

The Facebook Ads MCP Server is a Model Context Protocol server designed for managing and evaluating advertising campaigns on Facebook using Claude AI and other Large Language Models (LLMs). It acts as an intermediary between the LLMs and the Facebook Marketing API.

How to use Facebook Ads MCP Server?

To use this server, you need to clone the repository, install dependencies using npm, configure environment variables with your Facebook App credentials, compile the TypeScript code, and start the server. You can then configure Claude Desktop to communicate with the server using the provided configuration snippet.

Key features of Facebook Ads MCP Server

  • Campaign Management (creation, listing, modification, deletion)

  • Analytics and Reporting (performance overview, campaign comparison, account analysis, demographic analysis)

  • Audience Management (custom audience creation, lookalike audience creation, user list management)

  • AI Assistance (prompt templates, performance analysis, optimization recommendations)

Use cases of Facebook Ads MCP Server

  • Automated campaign creation and management using AI

  • AI-powered analysis of campaign performance

  • AI-driven optimization of ad targeting and bidding

  • Integration of Facebook Ads with other AI-powered marketing tools

FAQ from Facebook Ads MCP Server

What is MCP?

MCP stands for Model Context Protocol, a protocol that allows LLMs to interact with external tools and services.

What are the prerequisites for using this server?

You need Node.js, a Facebook Business Manager account, a Facebook App with access to the Marketing API, an access token with appropriate permissions, and Claude AI or another LLM with MCP support.

How do I configure this server for Claude Desktop?

You need to add a configuration block to your Claude Desktop configuration file, specifying the command to run the server and the necessary environment variables.

What kind of security measures should I take?

Ensure your access token is securely stored, use a token with minimal required permissions, use environment variables for sensitive data, regularly refresh access tokens, and implement additional security layers like firewalls and VPNs.

What tools are available for campaign management?

Tools include create_campaign, get_campaigns, get_campaign_details, update_campaign, and delete_campaign.