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.

Enhance authentication function documentation

Yves Junqueira8ac67cccf91f
diff --git a/meta_ads_mcp/api.py b/meta_ads_mcp/api.py
index b2aca7d..48eb9f6 100644
--- a/meta_ads_mcp/api.py
+++ b/meta_ads_mcp/api.py
@@ -1349,13 +1349,15 @@ async def debug_image_download(url="", ad_id="", access_token=None):
@meta_api_tool
async def authenticate(access_token: str = None) -> str:
"""
- Get a clickable login link for Meta Ads authentication.
+ Get a clickable login link for Meta Ads authentication. The link is safe to share with the LLM
+ as it only initiates the standard OAuth flow where the user logs in directly with Meta - no
+ credentials are exposed in the process.
Args:
access_token: Meta API access token (optional - will use cached token if not provided)
Returns:
- A clickable resource link for Meta authentication
+ A clickable resource link for Meta authentication that safely initiates the OAuth flow
"""
# Check if we have a cached token
cached_token = auth_manager.get_access_token()