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
fix(transport): disable DNS rebinding protection + bump to 1.0.107 (#123)
Yves Junqueiraef45fe14dd21
diff --git a/meta_ads_mcp/__init__.py b/meta_ads_mcp/__init__.pyindex 26ffe16..abef7d8 100644--- a/meta_ads_mcp/__init__.py+++ b/meta_ads_mcp/__init__.py@@ -6,7 +6,7 @@ This package provides a Meta Ads MCP integrationfrom meta_ads_mcp.core.server import main-__version__ = "1.0.106"+__version__ = "1.0.107"__all__ = ['get_ad_accounts',diff --git a/meta_ads_mcp/core/server.py b/meta_ads_mcp/core/server.pyindex 322ef72..e8240b6 100644--- a/meta_ads_mcp/core/server.py+++ b/meta_ads_mcp/core/server.py@@ -341,6 +341,15 @@ def main():# forwarded by an upstream proxy at .../mcp/ are served directly# instead of receiving a 307 redirect to /mcp (the SDK default).mcp_server.settings.streamable_http_path = "/mcp/"+ # Disable DNS rebinding protection. The SDK auto-enables it when the+ # server binds to a loopback host (127.0.0.1 / localhost / ::1) and+ # ships a port-wildcard allowlist (127.0.0.1:*). An upstream nginx+ # with `proxy_set_header Host $host;` strips the port from the Host+ # header before forwarding, so the allowlist does not match and every+ # request is rejected with HTTP 421 (the 1.0.106 production+ # regression). The protection is irrelevant for a loopback-only+ # service that no external client can reach.+ mcp_server.settings.transport_security.enable_dns_rebinding_protection = False# Import all tool modules to ensure they are registeredlogger.info("Ensuring all tools are registered for HTTP transport")diff --git a/pyproject.toml b/pyproject.tomlindex b9a5f3e..784d531 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -4,7 +4,7 @@ build-backend = "hatchling.build"[project]name = "meta-ads-mcp"-version = "1.0.106"+version = "1.0.107"description = "Model Context Protocol (MCP) server for Meta Ads - Use Remote MCP at pipeboard.co for easiest setup"readme = "README.md"requires-python = ">=3.10"diff --git a/server.json b/server.jsonindex e7af4ea..1ca27fd 100644--- a/server.json+++ b/server.json@@ -2,7 +2,7 @@"$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json","name": "co.pipeboard/meta-ads-mcp","description": "Facebook / Meta Ads automation with AI: analyze performance, test creatives, optimize spend.",- "version": "1.0.106",+ "version": "1.0.107","remotes": [{"type": "streamable-http",