Skip to main content

unofficial MCP server implementation for Facebook Business API

Project description

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

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

facebook_business_mcp-0.0.9.dev2.tar.gz (415.6 kB view details)

Uploaded Source

Built Distribution

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

facebook_business_mcp-0.0.9.dev2-py3-none-any.whl (324.1 kB view details)

Uploaded Python 3

File details

Details for the file facebook_business_mcp-0.0.9.dev2.tar.gz.

File metadata

File hashes

Hashes for facebook_business_mcp-0.0.9.dev2.tar.gz
Algorithm Hash digest
SHA256 9845bc3885406e9b01d6ee91b4105d77cbd010eaa0d54aabb854671d8d12a7f0
MD5 6a1186a08d4cd8c70ccc36bbaa9f6dc0
BLAKE2b-256 b6dcd6145a3e4357a60ef5331d7e5edc9fd24d3cf8107ef44086326aab97f575

See more details on using hashes here.

File details

Details for the file facebook_business_mcp-0.0.9.dev2-py3-none-any.whl.

File metadata

File hashes

Hashes for facebook_business_mcp-0.0.9.dev2-py3-none-any.whl
Algorithm Hash digest
SHA256 4fd13bd8289357acef1c2874508ce6fb146a86d0ef84509a7501b16404e354d3
MD5 d2fdaf3fc8c130da71511b8ca92db9e6
BLAKE2b-256 cfe23705b95fef2d936d1f06f68eae253e1e2f29d8aa9fba106eb21a117242f9

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