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.2.tar.gz (27.4 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.2-py3-none-any.whl (20.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fb_mcp_bratrax-1.1.2.tar.gz
  • Upload date:
  • Size: 27.4 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.2.tar.gz
Algorithm Hash digest
SHA256 e7fd7d4e94d158050de4f6d574a5fc877a687ba806ca1bd9dbba13713a186fbd
MD5 26a4df8b4aa3d411a1ead69dc369674d
BLAKE2b-256 6435ad5ae32beded27dc83b6b9fb062fbd3b4eed2662a47b30ecaf584c4842b3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fb_mcp_bratrax-1.1.2-py3-none-any.whl
  • Upload date:
  • Size: 20.2 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fc8c780c1546f6e641c4b4d13109d1f7e4243acd27d29c1eb7242917c4d2ac50
MD5 bb4572dcc8896a428fc1f108aa106d1d
BLAKE2b-256 80cc481e6aa688add24b7009decb0abe7b082c297a0aa6ad431201cb85d06a76

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