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.

Setup

  1. Install dependencies:

    uv sync
    
  2. 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
    
  3. Run the server:

    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.5.dev1.tar.gz (409.4 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.5.dev1-py3-none-any.whl (324.0 kB view details)

Uploaded Python 3

File details

Details for the file facebook_business_mcp-0.0.5.dev1.tar.gz.

File metadata

File hashes

Hashes for facebook_business_mcp-0.0.5.dev1.tar.gz
Algorithm Hash digest
SHA256 dbbc410e46857bc2f171e34a84b423741ea29af1dccf824b829e180afdd2b894
MD5 fb5eaeff7edbb66da435526153b037e6
BLAKE2b-256 dd3593e4d78f95559024a42545cf269a0cacebbeded8c1b66308683c8930789e

See more details on using hashes here.

File details

Details for the file facebook_business_mcp-0.0.5.dev1-py3-none-any.whl.

File metadata

File hashes

Hashes for facebook_business_mcp-0.0.5.dev1-py3-none-any.whl
Algorithm Hash digest
SHA256 9b6deaeca6291ea1d0a1f04196d13efa6c1449e2703b38ed726471df7094c378
MD5 9818df977841c68c026ec9e35e5b208e
BLAKE2b-256 adda50f4a3f986217374d8d74cf800f8db0bbd3ef0c239ae476ce001d1738762

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