- Facebook Ads MCP Server
Facebook Ads MCP Server
The Facebook Ads MCP Server offers robust Facebook Ads integration, featuring account listing, detailed retrieval of campaigns, ad sets, ads, and creatives, along with performance insights and change history logs.
Content
Unlock Deeper Facebook Ads Insights: Powered by AI & MCP
Stop Clicking, Start Asking. Connect your AI assistant (Cursor, Claude, etc.) directly to your Facebook Ads data with this powerful MCP Server.
Instantly get answers like:
- "Show me my top 5 campaigns by ROAS last month?"
- "Compare CTR for ad sets A vs. B over the last 7 days."
- "What was the total spend breakdown by age and gender for campaign 'Summer Sale'?"
- "Who paused ad set 'Ad Set - Leads Q3' yesterday?"
Why You Need This:
- AI-Powered Analysis: Query your ads data using natural language via your AI assistant.
- Deep Data Access: Go beyond basics – campaigns, ad sets, ads, creatives, insights, history.
- Granular Insights: Fetch performance with custom dates, breakdowns (age, platform, etc.), filters & attribution.
- Track Changes: See who changed what and when (
get_activities_...). - Easy Setup: Standard Python, quick to deploy.
Quick Start Guide:
- Prerequisites: Python 3.10+, Facebook Access Token (
ads_readpermission). - Setup:
(Optional)Create Python virtual environment (python3 -m venv venv && source venv/bin/activate)- Install:
pip install -r requirements.txt
- Prepare Server:
python server.py --fb-token YOUR_FACEBOOK_ACCESS_TOKEN - Connect AI Client: Add to MCP config (adjust paths):
{ "mcpServers": { "fb-ads-mcp-server": { "command": "/path/to/venv/bin/python", // Or just "python" "args": [ "/path/to/server.py", "--fb-token", "YOUR_TOKEN" ] } } } - Restart your AI client.
Example Interactions:
This server gives your AI tools to talk to the Facebook Ads API. Ask questions like:
- Get Objects:
- "Get details for campaign
1234567890using fields: name, objective, effective_status." - "Fetch ad creative
2384xxxxxxxxxand show its image_url and body."
- "Get details for campaign
- List Objects:
- "List all ads in ad set
6123xxxxxxxxxwith effective_status ACTIVE." - "Show me all campaigns in account
act_987654321."
- "List all ads in ad set
- Analyze Performance:
- "What was the spend, impressions, and clicks for account
act_987654321last_30d?" - "Get insights for ad
6789xxxxxxxxxbroken down by publisher_platform for the last 7 days." - "Fetch campaign insights for
1234567890with time_increment monthly for the last year."
- "What was the spend, impressions, and clicks for account
- Audit History:
- "Show me the activity log for ad set
4455667788using time_range since 2024-01-15 until 2024-01-16." - "What changes happened in account
act_987654321today?"
- "Show me the activity log for ad set
- (Behind the Scenes) Paginate: If results are large, the AI can use
fetch_pagination_urlto get the next page automatically or upon request.
(See readme.md or server.py docstrings for the full list of tools and their detailed parameters!)
Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
ChatWiseThe second fastest AI chatbot™
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题;
Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
Amap Maps高德地图官方 MCP Server
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
Tavily Mcp
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Playwright McpPlaywright MCP server
DeepChatYour AI Partner on Desktop
Serper MCP ServerA Serper MCP Server
CursorThe AI Code Editor
WindsurfThe new purpose-built IDE to harness magic
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.