Meta Ads Skill
Meta Ads Skill is designed to give LLMs and AI agents expert-level capabilities to orchestrate the Meta Ads MCP Server.

Установка Meta Ads Skill
У сервера нет опубликованного npm/PyPI-пакета — склонируй репозиторий и собери по его README, затем добавь получившуюся команду в свой клиент.
Открыть репозиторийОписание
Meta Ads Skill is designed to give LLMs and AI agents expert-level capabilities to orchestrate the Meta Ads MCP Server.
README
Installation
Prerequisites
You need Node.js installed. It comes with npx built in.
Option 1: npx (All Agents)
npx "@opendirectory.dev/skills" install meta-ads-skill --target claude
Supported --target values: claude, gemini, codex, opencode, anti-gravity, openclaw, hermes
Option 2: Native Plugin (Claude Code Only)
Run these two commands inside your Claude Code terminal:
# Add the OpenDirectory marketplace
/plugin marketplace add Varnan-Tech/opendirectory
# Install a skill directly
/plugin install meta-ads-skill@opendirectory-marketplace
Option 3: Claude Desktop App
Step 1: Download Click Code → Download ZIP on this repo's GitHub page.
Step 2: Install
- Open Claude Desktop > Customize > Skills > + > Upload a skill
- Drop the downloaded zip or extracted folder
Overview
The Meta Ads Skill is a comprehensive, production-ready OpenCode skill designed to give LLMs and AI agents expert-level capabilities to orchestrate the Varnan-Tech Meta Ads MCP Server.
By using this skill, an agent transforms into an Expert Media Buyer. It will know exactly how to safely authenticate, explore ad structures, troubleshoot campaign performance (like CPA spikes), discover new audiences, and format massive Meta APIs JSON payloads into beautiful, readable markdown reports.
For Agents: How to Use This Skill Efficiently
This skill is designed using a Progressive Disclosure (Hub-and-Spoke) architecture to maximize context window efficiency:
- The Hub (
SKILL.md): The primary entry point. It provides strict guardrails, safety protocols, and the authentication troubleshooting workflow. - The Spokes (
references/&scripts/):- When you need to perform a specific task (e.g., investigating a CPA spike), read
references/workflows.mdfor the exact step-by-step orchestration strategy. - When presenting data to the user, read
references/report_templates.mdto strictly follow the required Markdown layout. - Data Parsing: Meta Ads JSON responses are massive. Always use the provided
scripts/formatters.pyto condense raw JSON fromget_campaigns,get_adsets, orget_insightsinto clean markdown tables before reasoning over them.
- When you need to perform a specific task (e.g., investigating a CPA spike), read
Strict Agent Guardrails
- Context Protection: ALWAYS default to
time_range="last_7d"for insights. ALWAYS uselimit=10for listing campaigns/adsets initially. - Safety First: NEVER execute state-changing tools (
create_campaign,update_campaign,clear_database,reset_database) without explicitly showing the parameters to the user and waiting for their affirmative confirmation.
Installation & Setup of the Meta Ads MCP
To use this skill, the host machine must have the Varnan-Tech Meta Ads MCP Server installed and running.
1. Prerequisites
- Python 3.10+
- A Meta Developer Account with a configured App.
2. Configure the Meta App
- Go to the Facebook Developers Portal.
- Create an App and add the Marketing API product.
- Under the Facebook Login settings, add
http://localhost:8000/auth/facebook/callbackto the Valid OAuth Redirect URIs. - Retrieve your App ID and App Secret.
3. Server Setup
Clone the MCP repository:
git clone https://github.com/Varnan-Tech/Meta-Ads-MCP.git
cd Meta-Ads-MCP
pip install -r requirements.txt
Create a .env file in the root of the MCP server:
FB_APP_ID="your_facebook_app_id"
FB_APP_SECRET="your_facebook_app_secret"
FB_OAUTH_ENABLED="true"
FB_REDIRECT_URI="http://localhost:8000/auth/facebook/callback"
DATABASE_URL="sqlite:///.meta-ads-mcp/oauth.db"
Authentication Workflow
The server uses OAuth backed by a local SQLite database to seamlessly pass tokens to the MCP context.
- Start the local Auth Server:
python src/auth/run_web_server.py - Authenticate: Open
http://localhost:8000/auth/facebookin your web browser. - Grant Permissions: Click "Connect Facebook" and approve the
ads_management,ads_read, andread_insightspermissions. - Completion: The OAuth token is saved securely to the SQLite DB. The agent can now use the MCP tools automatically without needing the token pasted into the prompt.
If an agent encounters an Auth Error during operation, it is instructed by this skill to guide the user back through this exact login flow.
Skill Repository Structure
When you deploy this skill, the structure will look like this:
meta-ads-skill/
SKILL.md # The core router & guardrails
references/
report_templates.md # Standardized markdown report structures
workflows.md # Orchestration strategies (e.g., CPA troubleshooting)
scripts/
auth_check.py # Diagnostic script for token status
formatters.py # JSON -> Markdown table utilities
Supported Tools (via MCP)
Through the underlying MCP, this skill orchestrates:
- Account Management:
get_ad_accounts(),get_account_info() - Campaigns & Ads:
get_campaigns(),get_adsets(),get_ads(),create_campaign(),update_campaign() - Analytics:
get_insights(),analyze_campaigns() - Targeting:
search_interests(),search_demographics(),estimate_audience_size() - Database:
token_status(),clear_database(),reset_database()
FAQ
Meta Ads Skill MCP бесплатный?
Да, Meta Ads Skill MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Meta Ads Skill?
Нет, Meta Ads Skill работает без API-ключей и переменных окружения.
Meta Ads Skill — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Meta Ads Skill в Claude Desktop, Claude Code или Cursor?
Открой Meta Ads Skill на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
Opencode Omniroute Plugin
GitHub Actions97OpenCode plugin for the OmniRoute AI Gateway. Drives dynamic model discovery, /connect auth flow, and multi-instance OmniRoute providers via the official @openc
Roblox Studio
paralovEnables AI coding tools to control Roblox Studio for workspace exploration, instance manipulation, and script management. It provides tools for playtesting, sce
Antigravity Drawio
S-SUJAN-SMCP server that enables AI assistants to create, parse, render, and validate Draw.io diagrams programmatically.
Fetch
Web content fetching and conversion for efficient LLM usage.
Mcp
mcpflow.ioModelContextProtocol server for enhancing JSON Resumes
Vault
agbergsmannBitwarden/Vaultwarden MCP server — BYOK vault access with 6 tools, Send-based reveal, TOTP, and safe agent-write
AWS KB Retrieval
modelcontextprotocolRetrieval from AWS Knowledge Base using Bedrock Agent Runtime.
Spring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
xuzexin-hzA very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
MCP-Agent
lastmile-aiA simple, composable framework to build agents using Model Context Protocol by [LastMile AI](https://www.lastmileai.dev)
Сравнить Meta Ads Skill с
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории ai
