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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for facebook_business_mcp-0.0.6.dev1.tar.gz
Algorithm Hash digest
SHA256 123a62ed5f485fa36f98f4187ca6cc624ad61f9562eedf0880a24798e305df32
MD5 20ee47df1d4294f71c953fec02c1447d
BLAKE2b-256 77173d055c59038991ed183ebb775949c731d123aff4a6f1f2889f9f9baf6aae

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for facebook_business_mcp-0.0.6.dev1-py3-none-any.whl
Algorithm Hash digest
SHA256 98c58bc5eb51e8c95269b6febf64674e0e804de36845baf5616189d4f20a209e
MD5 903f5f37f5ae51d5d1154ee1eb826519
BLAKE2b-256 a57ca03f365252502592f1c1926d1ac8bb66863ed34ad9c715282954b5643118

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