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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for facebook_business_mcp-0.0.7.dev2.tar.gz
Algorithm Hash digest
SHA256 55838ba405e7b2e12de2a502a346e48fa293c263093db229015717a8c65a1570
MD5 c2f2ad9dfb26d54941d6f9421f8d27dd
BLAKE2b-256 5c35bf939f2a67840319b0635d959cec2c67a6a0f8b90a290324dda3cf30d80c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for facebook_business_mcp-0.0.7.dev2-py3-none-any.whl
Algorithm Hash digest
SHA256 7dba9ec84141ad72a82c313aa05fe428597284d7383f4f2afa5c9843e87cbc53
MD5 f8966b353e0871c9f51f0817f306ff71
BLAKE2b-256 0639b8bea51d283c191e6afe754730e3364a57d08c9f2b1b5091c661fb28a401

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