We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/pipeboard-co/meta-ads-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
README.md•1.08 KiB
# 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 Pipeboard tokens or Meta access tokens
- Demonstrates all basic MCP operations (initialize, list tools, call tools)
- Includes error handling and response formatting
- Ready-to-use client class for integration
**Usage:**
```bash
# 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 `PIPEBOARD_API_TOKEN` environment variable for Pipeboard auth
- Or pass `meta_access_token` parameter for direct Meta API auth
## 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`