SuperAPI AI Directory

facebook-ads-mcp-server

facebook-ads-mcp-server is an MCP server project that serves as an interface for accessing Meta Ads (Facebook Ads), enabling AI clients to programmatically retrieve Meta Ads data and use its management features. The project provides a one-click installer that automatically configures the MCP server locally and handles environment setup; the installation process prompts for Meta token authentication (optional), and if no access token is provided, it connects to the GoMarble server to create a token on your behalf, with the token stored only locally and not stored by GoMarble. Manual installation is also possible: create and activate a Python virtual environment, run pip install -r requirements.txt to install dependencies, and obtain a Meta user access token with permissions such as ads_read. The server can be integrated with MCP-compatible clients such as Cursor and Claude Desktop, requiring you to fill in the access token in the client configuration file and restart the client; it can also be debugged by running server.py with the --fb-token parameter. The server provides a variety of tools for interacting with Meta Ads objects and data, and most tools support parameters such as fields, filtering, limit, pagination, and date ranges (see the docstrings in server.py for details). The project depends on requests (>=2.32.3) and is licensed under the MIT License.

Open website

About this tool

facebook-ads-mcp-server is developed by gomarble-ai and is an MCP (Model Context Protocol) server that serves as an interface for accessing Meta Ads (Facebook Ads), providing programmatic access to Meta Ads data and management features.

Main purpose: to enable MCP-compatible AI clients (such as Cursor and Claude Desktop) to read and manage Meta Ads objects and data through this server.

Main capabilities: as an MCP server, it provides tools for interacting with Meta Ads objects and data; most tools support additional parameters such as fields, filtering, limit, pagination, and date ranges, and the complete parameter list and descriptions are documented in the docstrings in server.py.

How to use: the project provides a one-click installer (download address https://gomarble.ai/mcp),可在本地安装并配置 MCP server, automatically handles environment setup, and prompts for Meta token authentication (optional) during the process. If no Meta access token is provided, it connects to GoMarble's server to create a token on your behalf; GoMarble does not store the token, and the token is kept on the local machine for use by the MCP server. Manual installation is also possible: optionally but recommended, create and activate a Python virtual environment (python3 -m venv venv; source venv/bin/activate, on Windows use venv\Scripts\activate), then run pip install -r requirements.txt to install dependencies; next, obtain a Meta user access token with the necessary permissions such as ads_read (which can be generated through the Meta developer portal). When integrating with an MCP client, add the corresponding configuration and replace YOUR_META_ACCESS_TOKEN with the actual token, adjust the server.py path as needed, and restart the MCP client application after modifying the configuration (on Windows you may need to adjust the command structure or use cmd /k). For debugging, you can run server.py and provide the access token via the --fb-token parameter. In addition, Facebook Ads Server can also be installed for Claude Desktop via Smithery. The project provides a Slack community (AI in Ads) for help and updates, and a Google Ads MCP server is also available.

Use cases: scenarios where you need to programmatically access, query, or manage Meta Ads data through an AI client.

Limitations and notes: a Meta access token with the corresponding permissions is required; if the token expires, you need to generate a new token and update the MCP client configuration file to continue using the tools. The project depends on requests (>=2.32.3) and is licensed under the MIT License. No other information is currently provided.