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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for facebook_business_mcp-0.0.8.dev1.tar.gz
Algorithm Hash digest
SHA256 8c74fdbf052a312e8aea378c9f289df432532c86d4f6fab096dfede7ac6551b7
MD5 867c5a74ec43cef6561826828453dca5
BLAKE2b-256 03d3f08de43ad433fcfd2a26a3cf29cefc647c17e109411112c4de5149d31026

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for facebook_business_mcp-0.0.8.dev1-py3-none-any.whl
Algorithm Hash digest
SHA256 d97c90794e346ffe87e2a81bc7475d9b52e26e1827341f32c7a284910da20a2d
MD5 db2dbec1243e138c17297795a8e897cf
BLAKE2b-256 439ceae6e1ba77a30f6105048bfb655fcd4f3224f5466870fd52f56bcbe0f46c

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