Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

OpenPromo Logo

****

Python MCP Facebook API License: MIT Code style: pyright

Facebook Business MCP Server

Unofficial MCP server implementation for Facebook Business API. You can use this with any clients/LLMs to manage your ad campaigns, ads, etc.

Features

  • Complete: implementation is wrapped on top of api specs & python sdk, for full typesafty.
  • MCP Compliant: Built with FastMCP for seamless integration with any MCP-compatible client or LLM.
  • Easy Setup: Simple configuration with environment variables and immediate connectivity to Facebook Business API.

Installation

Quick Start

You can run the server directly without installation using uvx:

uvx facebook-business-mcp

Local Installation

pip install facebook-business-mcp

Setup

  1. Set environment variables:

    export FACEBOOK_APP_ID="your-app-id"
    export FACEBOOK_APP_SECRET="your-app-secret"
    export FACEBOOK_ACCESS_TOKEN="your-access-token"
    export FACEBOOK_AD_ACCOUNT_ID="your-ad-account-id"  # optional
    
  2. Run the server:

    Using uvx (no installation needed):

    uvx facebook-business-mcp
    

    Or if installed via pip:

    facebook-business-mcp
    

    Or from source:

    uv run main.py
    

License

MIT

Metadata

Release files for facebook-business-mcp 0.0.9.dev2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for facebook-business-mcp 0.0.9.dev2
File Size Uploaded
facebook_business_mcp-0.0.9.dev2.tar.gz 415.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for facebook-business-mcp 0.0.9.dev2
File Interpreter ABI Platform
facebook_business_mcp-0.0.9.dev2-py3-none-any.whl Python 3 none any Details

Total release size: 739.7 kB

Release files / facebook_business_mcp-0.0.9.dev2.tar.gz

Download URL facebook_business_mcp-0.0.9.dev2.tar.gz
Size 415.6 kB
Tags Source
SHA-256 checksum
How to use checksums
9845bc3885406e9b01d6ee91b4105d77cbd010eaa0d54aabb854671d8d12a7f0
BLAKE2b-256 checksum
How to use checksums
b6dcd6145a3e4357a60ef5331d7e5edc9fd24d3cf8107ef44086326aab97f575
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.7.13

Release files / facebook_business_mcp-0.0.9.dev2-py3-none-any.whl

Download URL facebook_business_mcp-0.0.9.dev2-py3-none-any.whl
Size 324.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4fd13bd8289357acef1c2874508ce6fb146a86d0ef84509a7501b16404e354d3
BLAKE2b-256 checksum
How to use checksums
cfe23705b95fef2d936d1f06f68eae253e1e2f29d8aa9fba106eb21a117242f9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.7.13
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page