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.1.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.1-py3-none-any.whl (18.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fb_mcp_bratrax-1.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 b887a008acde815b8b9cbf6a8403b3216429c61ab205b7880377d54ee92876ef
MD5 5bca053f738f5c3f63d22114c95b9a8e
BLAKE2b-256 f9bc6185e920ec7aede3e08a2d99749474468e6445827a2d13cd4060eb38a597

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fb_mcp_bratrax-1.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8076d5cd4f071f1afda66ba473c6c6cf9ccdace74883b0903e3bd7ae0f2d646c
MD5 e7a3fa583c9456b908944d639d1f059b
BLAKE2b-256 b96c26e5189a6d7ca135a729f9b1bc6cc5a8de530211572618474395ef0f6d5c

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