Skip to content

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.

1.1 KB
Raw Blame

Meta Ads MCP Examples

This directory contains example scripts and usage demonstrations for the Meta Ads MCP server.

Files

http_client.py

A complete example HTTP client that demonstrates how to interact with the Meta Ads MCP server using the HTTP transport.

Features:

  • Shows how to authenticate with a Meta access token
  • Demonstrates all basic MCP operations (initialize, list tools, call tools)
  • Includes error handling and response formatting
  • Ready-to-use client class for integration

Usage:

# Start the MCP server
python -m meta_ads_mcp --transport streamable-http --port 8080

# Run the example (in another terminal)
cd examples
python http_client.py

Authentication:

  • Set the META_ACCESS_TOKEN environment variable, or pass the meta_access_token parameter, using a token from your own Meta app

Adding New Examples

When adding new example files:

  1. Include comprehensive docstrings
  2. Add usage instructions in comments
  3. Update this README with file descriptions
  4. Follow the same authentication patterns as http_client.py