Queries the public Facebook Ads Library to research ad messaging and creatives and compare brands' ad strategies.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add facebook-ads-library -- python '{{PATH_TO_SRC}}/fb_ad_library_mcp/src/mcp_server.py' --scrapecreators-api-key '{{YOUR_SCRAPECREATORS_API_KEY}}'~/.codex/config.toml
[mcp_servers.facebook-ads-library]
command = "python"
args = ["{{PATH_TO_SRC}}/fb_ad_library_mcp/src/mcp_server.py", "--scrapecreators-api-key", "{{YOUR_SCRAPECREATORS_API_KEY}}"]
# codex mcp add facebook-ads-library -- python '{{PATH_TO_SRC}}/fb_ad_library_mcp/src/mcp_server.py' --scrapecreators-api-key '{{YOUR_SCRAPECREATORS_API_KEY}}'~/.cursor/mcp.json
{
"mcpServers": {
"facebook-ads-library": {
"command": "python",
"args": [
"{{PATH_TO_SRC}}/fb_ad_library_mcp/src/mcp_server.py",
"--scrapecreators-api-key",
"{{YOUR_SCRAPECREATORS_API_KEY}}"
]
}
}
}.vscode/mcp.json
{
"servers": {
"facebook-ads-library": {
"type": "stdio",
"command": "python",
"args": [
"{{PATH_TO_SRC}}/fb_ad_library_mcp/src/mcp_server.py",
"--scrapecreators-api-key",
"{{YOUR_SCRAPECREATORS_API_KEY}}"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"facebook-ads-library": {
"command": "python",
"args": [
"{{PATH_TO_SRC}}/fb_ad_library_mcp/src/mcp_server.py",
"--scrapecreators-api-key",
"{{YOUR_SCRAPECREATORS_API_KEY}}"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"facebook-ads-library": {
"command": "python",
"args": [
"{{PATH_TO_SRC}}/fb_ad_library_mcp/src/mcp_server.py",
"--scrapecreators-api-key",
"{{YOUR_SCRAPECREATORS_API_KEY}}"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"facebook-ads-library": {
"command": "python",
"args": [
"{{PATH_TO_SRC}}/fb_ad_library_mcp/src/mcp_server.py",
"--scrapecreators-api-key",
"{{YOUR_SCRAPECREATORS_API_KEY}}"
]
}
}
}