Skip to main content

MCP server for Facebook/Meta Ads API integration enabling programmatic access to Meta Ads data

Project description

FB MCP Bratrax

A Model Context Protocol (MCP) server for Facebook/Meta Ads API integration, enabling programmatic access to Meta Ads data and management features.

Features

  • Ad Account Management: List and get details of ad accounts
  • Campaign Analytics: Retrieve performance insights for campaigns, ad sets, and ads
  • Comprehensive Insights: Access detailed metrics including impressions, clicks, spend, CTR, and more
  • Flexible Filtering: Support for date ranges, breakdowns, and custom filtering
  • Pagination Support: Automatic handling of large result sets

Installation

pip install fb-mcp-bratrax

Usage

Set your Facebook access token as an environment variable and run the MCP server:

Windows (PowerShell):

$env:FB_TOKEN = "YOUR_FACEBOOK_ACCESS_TOKEN"
fb-mcp-bratrax

Windows (Command Prompt):

set FB_TOKEN=YOUR_FACEBOOK_ACCESS_TOKEN
fb-mcp-bratrax

Linux/macOS:

export FB_TOKEN=YOUR_FACEBOOK_ACCESS_TOKEN
fb-mcp-bratrax

Requirements

  • Python 3.8+
  • Valid Facebook/Meta Ads API access token
  • mcp>=1.6.0
  • requests>=2.32.3

Available Tools

The server provides access to Facebook Ads API through various MCP tools including account insights, campaign management, ad set analytics, and creative management.

For detailed documentation and setup instructions, visit the project repository.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fb_mcp_bratrax-1.1.0.tar.gz (25.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fb_mcp_bratrax-1.1.0-py3-none-any.whl (18.6 kB view details)

Uploaded Python 3

File details

Details for the file fb_mcp_bratrax-1.1.0.tar.gz.

File metadata

  • Download URL: fb_mcp_bratrax-1.1.0.tar.gz
  • Upload date:
  • Size: 25.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.6

File hashes

Hashes for fb_mcp_bratrax-1.1.0.tar.gz
Algorithm Hash digest
SHA256 2217de7384a89cc95c22cc5468c236e6aba0af6509ffe482523de545ae23bd7e
MD5 77a5f23ea252bb09ff2105baf4371bc5
BLAKE2b-256 e1834a4f39bd04dc91bb42f6e6a5d87e0b5a5334b32114066433b2f5074cd307

See more details on using hashes here.

File details

Details for the file fb_mcp_bratrax-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: fb_mcp_bratrax-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 18.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.6

File hashes

Hashes for fb_mcp_bratrax-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a46c3c1eb17ddaa00f583f6cb27e4d94fbd296172447368c17274308c1633f9d
MD5 c85f26fc0db19508530eb0d41d5abd95
BLAKE2b-256 34a654a9599cfc63de2ccf7b1b310a79f6cee1025cb60e22be8a2dec51ba564a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page