Command Palette

Search for a command to run...

Весь каталог
MCP-сервер № 35139

Meta Ads Skill

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

Бесплатно
GitHubEmbed

Установка Meta Ads Skill

Сборка из исходников

У сервера нет опубликованного npm/PyPI-пакета — склонируй репозиторий и собери по его README, затем добавь получившуюся команду в свой клиент.

Открыть репозиторий
github.com/Varnan-Tech/meta-ads-skill

Описание

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

README

meta-ads-skill

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

  1. Open Claude Desktop > Customize > Skills > + > Upload a skill
  2. 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:

  1. The Hub (SKILL.md): The primary entry point. It provides strict guardrails, safety protocols, and the authentication troubleshooting workflow.
  2. The Spokes (references/ & scripts/):
    • When you need to perform a specific task (e.g., investigating a CPA spike), read references/workflows.md for the exact step-by-step orchestration strategy.
    • When presenting data to the user, read references/report_templates.md to strictly follow the required Markdown layout.
    • Data Parsing: Meta Ads JSON responses are massive. Always use the provided scripts/formatters.py to condense raw JSON from get_campaigns, get_adsets, or get_insights into clean markdown tables before reasoning over them.

Strict Agent Guardrails

  • Context Protection: ALWAYS default to time_range="last_7d" for insights. ALWAYS use limit=10 for 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

  1. Go to the Facebook Developers Portal.
  2. Create an App and add the Marketing API product.
  3. Under the Facebook Login settings, add http://localhost:8000/auth/facebook/callback to the Valid OAuth Redirect URIs.
  4. 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.

  1. Start the local Auth Server:
    python src/auth/run_web_server.py
    
  2. Authenticate: Open http://localhost:8000/auth/facebook in your web browser.
  3. Grant Permissions: Click "Connect Facebook" and approve the ads_management, ads_read, and read_insights permissions.
  4. 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()

from github.com/Varnan-Tech/meta-ads-skill

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

№ 51449

Opencode Omniroute Plugin

GitHub ActionsGitHub Actions97

OpenCode plugin for the OmniRoute AI Gateway. Drives dynamic model discovery, /connect auth flow, and multi-instance OmniRoute providers via the official @openc

omnirouteopencodeopencode-plugin
Установить
№ 86305

Roblox Studio

paralovparalov

Enables AI coding tools to control Roblox Studio for workspace exploration, instance manipulation, and script management. It provides tools for playtesting, sce

Установить
№ 18019

Antigravity Drawio

S-SUJAN-SS-SUJAN-S

MCP server that enables AI assistants to create, parse, render, and validate Draw.io diagrams programmatically.

Установить
№ 65027

Fetch

Community

Web content fetching and conversion for efficient LLM usage.

fetchreferenceservers
ПровереноУстановить
№ 42339

Mcp

mcpflow.iomcpflow.io

ModelContextProtocol server for enhancing JSON Resumes

mcpllmmcpflow
Установить
№ 39599

Vault

agbergsmannagbergsmann

Bitwarden/Vaultwarden MCP server — BYOK vault access with 6 tools, Send-based reveal, TOTP, and safe agent-write

mcpmcp-serverbitwarden
Установить
№ 98017

AWS KB Retrieval

modelcontextprotocolmodelcontextprotocol

Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.

awsretrievalarchived
ПровереноУстановить
№ 04328

Spring AI MCP Server

Community

Provides auto-configuration for setting up an MCP server in Spring Boot applications.

springmcpserver
ПровереноУстановить
№ 06196

llm-analysis-assistant

xuzexin-hzxuzexin-hz

A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also

llmanalysisassistant
ПровереноУстановить
№ 50527

MCP-Agent

lastmile-ailastmile-ai

A simple, composable framework to build agents using Model Context Protocol by [LastMile AI](https://www.lastmileai.dev)

mcpagentfor
ПровереноУстановить

Сравнить Meta Ads Skill с

Не уверен что выбрать?

Найди свой стек за 60 секунд

Автор?

Embed-бейдж для README

Похожее

Все в категории ai