Meta Ads (Facebook/Instagram) MCP server for Claude, ChatGPT, Perplexity & Cursor — the Meta node of Pipeboard’s 5-platform family (+ Google, TikTok, Snap, Reddit). Hosted remote MCP, badged Meta Business Partner, free plan — no self-hosting required.
Python advertisingai-agentschatgptclaudefacebook-adsinstagram-adsmcpmeta-adsmodel-context-protocolpipeboard
Update version to 0.2.0 and enhance README installation instructions
Yves Junqueiraa4728ba32659
diff --git a/README.md b/README.mdindex 86f6eab..046eef5 100644--- a/README.md+++ b/README.md@@ -11,52 +11,81 @@ A [Model Calling Protocol (MCP)](https://github.com/anthropics/anthropic-tools)- Image download and analysis capabilities- Performance insights-## Setup+## Installation-### 1. Create a Meta Developer App--1. Go to [Meta for Developers](https://developers.facebook.com/) and create a new app-2. Choose the "Consumer" app type-3. In your app settings, add the "Marketing API" product-4. Configure your app's OAuth redirect URI to include `http://localhost:8888/callback`-5. Note your App ID (Client ID) for use with the MCP+### Using uv (recommended)-### 2. Install the Package+When using uv no specific installation is needed. We can use uvx to directly run meta-ads-mcp:-#### Using uv (Recommended)+```bash+uvx meta-ads-mcp+```-Install directly from GitHub:+If you want to install the package:```bash-uv pip install git+https://github.com/nictuku/meta-ads-mcp.git+uv pip install meta-ads-mcp```-Or if you've cloned the repository:+For development (if you've cloned the repository):```bash# From the repository rootuv pip install -e .```-#### Using pip+### Using pip++Alternatively, you can install meta-ads-mcp via pip:```bash-pip install git+https://github.com/nictuku/meta-ads-mcp.git+pip install meta-ads-mcp```-### 3. Install Dependencies (If installing from source)+After installation, you can run it as:```bash-uv pip install -r requirements.txt+python -m meta_ads_mcp+```++## Configuration++### Usage with Claude in Cursor++Add this to your `claude_desktop_config.json` to integrate with Claude in Cursor:++```json+"mcpServers": {+ "meta-ads": {+ "command": "uvx",+ "args": ["meta-ads-mcp"]+ }+}```-Or:+### 1. Create a Meta Developer App++Before using the MCP server, you'll need to set up a Meta Developer App:++1. Go to [Meta for Developers](https://developers.facebook.com/) and create a new app+2. Choose the "Consumer" app type+3. In your app settings, add the "Marketing API" product+4. Configure your app's OAuth redirect URI to include `http://localhost:8888/callback`+5. Note your App ID (Client ID) for use with the MCP++## Usage++### Command-line Usage```bash-pip install -r requirements.txt+# Start the MCP server+uvx meta-ads-mcp++# Authenticate with Meta Ads+uvx meta-ads-login --app-id YOUR_APP_ID```-## Authentication+### AuthenticationThe Meta Ads MCP uses the OAuth 2.0 flow designed for desktop apps. When authenticating, it will:@@ -84,7 +113,7 @@ There are two ways to authenticate with the Meta Ads API:You can also initiate authentication directly from the command line:```bash- python meta_ads_generated.py --login --app-id YOUR_APP_ID+ uvx meta-ads-login --app-id YOUR_APP_ID```Or use the convenience scripts:@@ -108,12 +137,6 @@ You do not need to provide your access token for each command; it will be automa## Usage Examples-### Test Authentication--```bash-python test_meta_ads_auth.py --app-id YOUR_APP_ID-```-### Get Ad Accounts```python@@ -205,7 +228,7 @@ If you encounter authentication issues:- Check that the callback server is running properly (the tool will report this)2. When using the command line:- - Run with `--force-login` to get a fresh token: `python meta_ads_generated.py --login --app-id YOUR_APP_ID --force-login`+ - Run with `--force-login` to get a fresh token: `uvx meta-ads-login --app-id YOUR_APP_ID --force-login`- Make sure the terminal has permissions to open a browser window3. General authentication troubleshooting:@@ -222,8 +245,11 @@ If you receive errors from the Meta API:2. Ensure the user has appropriate permissions on the ad accounts3. Check if there are rate limits or other restrictions on your app-## Files+## Versioning-This repository contains the implementation for the Meta Ads Marketing API Client Protocol (MCP).+You can check the current version of the package:-- `meta_ads_generated.py`: The main MCP implementation for Meta Ads API\ No newline at end of file+```python+import meta_ads_mcp+print(meta_ads_mcp.__version__)+```\ No newline at end of filediff --git a/meta_ads_mcp/__init__.py b/meta_ads_mcp/__init__.pyindex 3800004..dd56fd9 100644--- a/meta_ads_mcp/__init__.py+++ b/meta_ads_mcp/__init__.py@@ -1,6 +1,6 @@"""Meta Ads MCP - Model Calling Protocol plugin for Meta Ads API."""-__version__ = "0.1.0"+__version__ = "0.2.0"# Import key functions to make them available at package levelfrom .api import (diff --git a/pyproject.toml b/pyproject.tomlindex 66f35fa..833ac4c 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -4,7 +4,7 @@ build-backend = "hatchling.build"[project]name = "meta-ads-mcp"-version = "0.1.0"+version = "0.2.0"description = "Model Calling Protocol (MCP) plugin for interacting with Meta Ads API"readme = "README.md"requires-python = ">=3.11"