MCP Hub
Back to servers

mureo

Open-source framework for AI agents (Claude Code, Cursor, Codex, Gemini) to autonomously operate Google Ads, Meta Ads, and Search Console. Grounded in a local STRATEGY.md — not metric-chasing. Defense-in-depth security, local-first. Apache 2.0.

glama
Stars
2
Updated
Apr 23, 2026
Validated
Apr 24, 2026

mureo

Website · 日本語

PyPI Python versions License CI

What is mureo?

mureo is a framework for AI agents to autonomously operate ad accounts. Once installed, AI agents (Claude Code, Cursor, Codex, Gemini, etc.) can work across Google Ads, Meta Ads, Search Console, and GA4 -- running campaign diagnostics, search term analysis, budget evaluation, ad validation, and more. Every operation is grounded in your business strategy (STRATEGY.md), so the agent makes decisions based on your persona, USP, goals, and brand voice -- not just raw metrics.

mureo also learns. When you correct the agent's analysis or share an operational insight, /learn saves it to a persistent knowledge base. That knowledge is automatically loaded in every future session, so the agent gets increasingly attuned to your account's specific patterns and makes better decisions over time.

Features

Strategy-driven decisions

Every operation starts from STRATEGY.md -- your persona, USP, brand voice, goals, and operation mode. The agent doesn't just optimize metrics; it optimizes toward your business objectives.

/creative-refresh reads your Persona and USP before drafting a single headline.
/budget-rebalance checks your Operation Mode before shifting a single dollar.
/rescue cross-references your Goals before recommending what to fix first.

Cross-platform analysis

mureo orchestrates across Google Ads, Meta Ads, Search Console, and GA4 in a single workflow:

  • /daily-check -- pulls delivery status, ad performance, organic search trends, and site behavior across all platforms, then correlates them into one health report.
  • /search-term-cleanup -- compares paid keywords against organic rankings to eliminate wasteful overlap.
  • /competitive-scan -- combines auction insights with organic position data for a complete competitive picture.

The agent auto-discovers your configured platforms. Add Meta Ads later? Every command adapts automatically.

Built-in marketing expertise

Campaign diagnostics that pinpoint why ads aren't delivering -- budget constraints, bidding misconfiguration, policy disapprovals, and more. Search term intent classification. Budget efficiency scoring. RSA ad validation and asset auditing. Landing page analysis. Device-level CPA gap detection. The kind of knowledge experienced ad operators carry in their heads -- built into every workflow.

Learnable operational know-how

When you correct the agent or share an operational insight, /learn saves it to a persistent knowledge base. That knowledge is loaded at the start of every future session, so the agent doesn't repeat the same mistakes and applies what it learned to similar situations across your account.

You: "That's not a real CPA spike -- this industry always dips in Golden Week."
Agent: Saved. I'll flag this as seasonal next time.

→ Written to the diagnostic knowledge base.
→ Every future /daily-check and /rescue will factor this in.

Security by design

Marketing accounts are a high-value target. mureo is built with defense-in-depth for AI-driven operations:

  • Credential guardmureo setup claude-code installs a PreToolUse hook that blocks AI agents from reading ~/.mureo/credentials.json, .env, and similar secrets, so a prompt-injection payload cannot exfiltrate tokens via the file-system tools.
  • GAQL input validation — every ID, date, date-range constant, and string literal that enters a Google Ads query flows through one whitelist-based surface (mureo/google_ads/_gaql_validator.py), and BETWEEN clauses pattern-match and revalidate their dates instead of passing raw caller input into GAQL.
  • Anomaly detectionmureo/analysis/anomaly_detector.py compares current campaign metrics against a median-based baseline from the action log and emits prioritized alerts for zero spend, CPA spikes, and CTR drops, with sample-size gates that suppress single-day noise. Exposed to agents via the analysis.anomalies.check MCP tool; state_file is sandboxed inside the MCP server's CWD so a prompt-injected agent cannot redirect it at an attacker-crafted STATE.json.
  • Rollback with allow-list gatingmureo/rollback/ turns agent-authored reversible_params hints into concrete RollbackPlan records. Only operations on an explicit allow-list are planned; destructive verbs (.delete, .remove, .transfer) and unexpected parameter keys are refused, so a compromised agent cannot smuggle a privileged call through the rollback path. mureo rollback list / show let operators preview plans, and the rollback.apply MCP tool executes them by re-dispatching through the same handler used for forward actions so the reversal re-enters the full policy gate (auth, rate limit, validation). Apply requires confirm=true (literal boolean), refuses rollback.* self-recursion, records the reversal as an append-only action_log entry tagged with rollback_of=<index>, and refuses a second apply of the same index.
  • Immutable data models — every state object (StateDocument, ActionLogEntry, CampaignSnapshot, Anomaly, RollbackPlan) is a frozen=True dataclass; an agent cannot silently mutate its own record of what happened.
  • Local-only credentials — tokens are loaded from ~/.mureo/credentials.json or environment variables and transmitted only to the official ad-platform APIs. mureo itself has no telemetry.

See SECURITY.md for the full threat model and vulnerability reporting process.

Full capability list
AreaCapabilities
DiagnosticsAutomatic root cause identification for delivery issues (budget, bidding, policy, structure), learning period detection, smart bidding classification, zero-conversion analysis
PerformancePeriod-over-period comparison, cost spike investigation, cross-campaign health checks, CPA/CV goal tracking
Search termsN-gram distribution, intent pattern detection, add/exclude candidate scoring, paid vs organic overlap analysis
CreativeRSA validation (prohibited expressions, character width, ad strength prediction), asset-level performance audit, LP analysis, message match scoring
BudgetCross-campaign allocation analysis, reallocation recommendations, efficiency scoring
CompetitiveAuction insights, impression share trends, organic position correlation
Meta AdsPlacement analysis (Facebook/Instagram/Audience Network), cost investigation, A/B comparison, creative suggestions
MonitoringDelivery goal evaluation, CPA/CV goal tracking, device analysis, B2B-specific checks

Workflow Commands

CommandWhat it does
/onboardDiscover your platforms, generate STRATEGY.md, initialize STATE.json
/daily-checkCross-platform health monitoring + organic pulse + site behavior correlation
/rescueEmergency performance fix: platform-side vs site-side root cause diagnosis
/search-term-cleanupKeyword hygiene with paid/organic overlap elimination
/creative-refreshMulti-platform ad copy refresh using your Persona, USP, and organic keyword data
/budget-rebalanceCross-platform budget optimization informed by organic coverage
/competitive-scanPaid + organic competitive landscape analysis
/goal-reviewMulti-source goal progress evaluation with operation mode recommendations
/weekly-reportCross-platform weekly operations summary
/sync-stateRefresh STATE.json from live platform data
/learnSave a diagnostic insight to the knowledge base for future sessions

Getting started

pip install mureo
mureo setup claude-code

# Then in Claude Code:
/onboard          # First time: set up strategy + state
/daily-check      # Daily: check all campaigns
/rescue           # When performance drops

Example: /creative-refresh in action

You: /creative-refresh

Agent reads STRATEGY.md:
  Persona: "Budget-constrained SaaS marketer"
  USP: "AI reduces ad ops workload by 10h/week"
  Brand Voice: "Data-driven, no hype"

Agent discovers platforms from STATE.json:
  → Google Ads + Meta Ads configured

Agent pulls data across platforms and data sources:
  → Creative audit         → 3 underperforming Google Ads assets
  → Landing page analysis  → LP highlights: free trial, ROI improvement
  → Search Console         → "ad automation" has strong organic clicks
  → GA4                    → high bounce rate on pricing page

Agent generates platform-appropriate copy from your strategy:
  Google Ads: "Cut Ad Ops Time by 60% with AI"  ← Persona pain point
  Google Ads: "Free Trial | Ad Automation"       ← LP + organic keyword
  Meta Ads:   "Stop drowning in ad reports..."   ← Brand Voice + social format

Agent validates, then asks for approval:
  "I suggest replacing 3 Google Ads headlines and 2 Meta ads. Here's why..."

You approve → Agent updates each platform.

Analysis & domain knowledge (built-in)

Click to expand full capability list

Campaign Diagnostics & Performance

CapabilityDescription
Campaign diagnosticsAutomatic root cause identification for delivery issues, learning period detection, smart bidding classification
Performance analysisPeriod-over-period comparison, cost increase investigation, cross-campaign health checks
Search term analysisN-gram distribution, intent pattern detection, automated add/exclude candidate scoring
Budget efficiencyCross-campaign budget allocation analysis, reallocation recommendations
Device analysisCPA gap detection, zero-conversion device identification
Auction insightsCompetitive landscape analysis, impression share trends
B2B optimizationIndustry-specific campaign checks and recommendations

Creative & Landing Page

CapabilityDescription
RSA ad validationProhibited expression detection, character width calculation, auto-correction, ad strength prediction
RSA asset auditAsset-level performance analysis, replacement/addition recommendations
Landing page analysisHTML parsing with SSRF protection, CTA/feature/price detection, industry estimation
Creative researchAggregates LP + existing ads + search terms + keyword suggestions into a unified research package
Message match evaluationAd copy <-> landing page alignment scoring (screenshot capture via Playwright)

Monitoring & Goals

CapabilityDescription
Delivery goal evaluationCampaign status + diagnostics + performance -> critical/warning/healthy classification
CPA goal trackingActual vs target CPA with trend analysis
CV goal trackingDaily conversion volume monitoring against targets
Zero-conversion diagnosisRoot cause analysis for campaigns with no conversions

Meta Ads Analysis

CapabilityDescription
Placement analysisPerformance breakdown by Facebook, Instagram, Audience Network
Cost investigationCPA degradation root cause analysis
Ad comparisonA/B performance comparison within ad sets
Creative suggestionsData-driven creative improvement recommendations

Quick Start

Prerequisites

  • Google Ads -- Developer Token and OAuth Client ID / Client Secret
  • Meta Ads -- Create an app on Meta for Developers to obtain an App ID / App Secret (development mode is fine)

The mureo auth setup wizard walks you through both.

Browser-based auth wizard (mureo auth setup --web)

Pasting long secrets into a terminal prompt is error-prone. After installation, mureo auth setup --web starts a short-lived local wizard on http://127.0.0.1:<random-port>/ and opens your browser to a local form where you paste the Developer Token / App ID / App Secret (each field has a deep link to Google Cloud Console / Google Ads API Center / Meta for Developers). The OAuth flow completes in the same browser window and the wizard writes ~/.mureo/credentials.json for you.

Why the wizard is safe to run locally

The wizard binds only to 127.0.0.1 on a random OS-assigned port. The form is CSRF-protected (token rotates after every successful submit); the OAuth state parameter is validated with secrets.compare_digest on callback; a Host-header allow-list blocks DNS-rebinding attacks; redirect URLs are pinned to https://accounts.google.com/ and https://www.facebook.com/ so the wizard cannot be tricked into an open-redirect; session secrets are zeroed in memory after credentials are persisted. POST bodies are capped at 16 KiB and the process shuts the server down once the /done page is served. All dependencies are stdlib — no external web framework to supply-chain-compromise.

Claude Code (recommended)

pip install mureo
mureo setup claude-code

This single command handles everything:

  1. Google Ads / Meta Ads authentication (OAuth)
  2. MCP server configuration for Claude Code
  3. Credential guard (blocks AI agents from reading secrets)
  4. Workflow commands (/daily-check, /rescue, /learn, etc.)
  5. Skills (tool references, strategy guide, evidence-based decisions, diagnostic knowledge)

After setup, run /onboard in Claude Code to get started.

Cursor

pip install mureo
mureo setup cursor

Cursor supports MCP tools but does not support workflow commands or skills.

Codex CLI

pip install mureo
mureo setup codex

Full parity with Claude Code: MCP server, credential guard (PreToolUse hook), workflow commands, and skills are all installed under ~/.codex/. Workflow commands are installed as Codex skills at ~/.codex/skills/<command>/SKILL.md (Codex CLI 0.117.0+ no longer surfaces ~/.codex/prompts/, see openai/codex#15941); invoke them with $daily-check or the /skills picker.

Gemini CLI

pip install mureo
mureo setup gemini

Registers mureo as a Gemini CLI extension at ~/.gemini/extensions/mureo/ with MCP server config and CONTEXT.md as the context file. Gemini CLI does not support PreToolUse hooks or the .md command format mureo bundles, so those layers are not installed.

CLI only (authentication management)

pip install mureo
mureo auth setup
mureo auth status

Docker

Run the mureo MCP server in an isolated container. Useful for:

  • Non–Claude Code MCP clients: Cursor, Codex CLI, Gemini CLI, Continue, Cline, Zed, or any custom MCP client.
  • CI/CD pipelines: scheduled anomaly checks, rollback dry-runs, weekly reports.
  • Multi-tenant / agency ops: isolated credentials per client via separate containers.
  • MCP registry health checks (Glama, etc.).

Slash commands (/daily-check, /rescue) and the credential-guard hook are Claude Code–specific UX. For those, use pip install mureo with mureo setup claude-code instead.

Build and run

docker build -t mureo .
docker run --rm -v ~/.mureo:/home/mureo/.mureo mureo

Connect your MCP client by pointing its config at this docker run command.

Authentication

Credentials are loaded from /home/mureo/.mureo/credentials.json inside the container (via bind mount) or from environment variables. Three common patterns:

1. Mounted credentials file — if ~/.mureo/credentials.json already exists on the host (from a prior mureo auth setup, a team-shared vault, or hand-crafted), the bind mount above is enough.

Schema for hand-crafting:

{
  "google_ads": {
    "developer_token": "...",
    "client_id": "...apps.googleusercontent.com",
    "client_secret": "...",
    "refresh_token": "...",
    "login_customer_id": "1234567890"
  },
  "meta_ads": { "access_token": "..." }
}

Required: Google needs developer_token / client_id / client_secret / refresh_token. Meta needs access_token. Search Console reuses the Google OAuth credentials (OAuth app must include the https://www.googleapis.com/auth/webmasters scope).

2. Environment variables — useful for CI/CD where secrets come from a secret manager:

docker run --rm \
  -e GOOGLE_ADS_DEVELOPER_TOKEN=... \
  -e GOOGLE_ADS_CLIENT_ID=... \
  -e GOOGLE_ADS_CLIENT_SECRET=... \
  -e GOOGLE_ADS_REFRESH_TOKEN=... \
  -e GOOGLE_ADS_LOGIN_CUSTOMER_ID=... \
  -e META_ADS_ACCESS_TOKEN=... \
  mureo

Supported: GOOGLE_ADS_{DEVELOPER_TOKEN, CLIENT_ID, CLIENT_SECRET, REFRESH_TOKEN, LOGIN_CUSTOMER_ID, CUSTOMER_ID}, META_ADS_{ACCESS_TOKEN, APP_ID, APP_SECRET, TOKEN_OBTAINED_AT, ACCOUNT_ID}.

3. Interactive wizard inside Docker — if you don't have OAuth tokens yet and don't want to install mureo on the host:

docker run -it --rm -v ~/.mureo:/home/mureo/.mureo mureo mureo auth setup

Walks you through the OAuth flow in the terminal and writes credentials.json to the mounted volume. Subsequent runs pick it up automatically (pattern 1).

To obtain OAuth tokens outside mureo:

What gets installed

Componentmureo setup claude-codemureo setup cursormureo setup codexmureo setup geminimureo auth setup
Authentication (~/.mureo/credentials.json)YesYesYesYesYes
MCP configurationYesYesYesYesYes
Credential guard (PreToolUse hook)YesN/AYesN/AYes
Workflow commandsYes (~/.claude/commands/)N/AYes (~/.codex/skills/ — invoke with $cmd or /skills)N/ANo
SkillsYes (~/.claude/skills/)N/AYes (~/.codex/skills/)N/ANo
Extension manifest (contextFileName)N/AN/AN/AYes (~/.gemini/extensions/mureo/)No

Skills reference

SkillPurpose
mureo-google-adsGoogle Ads tool reference (parameters, examples)
mureo-meta-adsMeta Ads tool reference (parameters, examples)
mureo-sharedAuthentication, security rules, output formatting
mureo-strategySTRATEGY.md / STATE.json format and usage guide
mureo-workflowsOrchestration paradigm, Operation Mode matrix, KPI thresholds, command reference
mureo-learningEvidence-based marketing decision framework (observation windows, sample sizes, noise guards)
mureo-pro-diagnosisLearnable diagnostic knowledge base (grows with use via /learn)

Connecting GA4 (Google Analytics 4)

mureo's workflow commands can leverage GA4 data (conversion rates, user behavior, landing page performance) when a GA4 MCP server is configured alongside mureo. GA4 data is optional — all commands work without it.

Setup using Google Analytics MCP:

  1. Enable the required APIs in your GCP project:

  2. Install and authenticate:

    pipx install analytics-mcp
    
    gcloud auth application-default login \
      --scopes https://www.googleapis.com/auth/analytics.readonly,https://www.googleapis.com/auth/cloud-platform
    
  3. Add to ~/.claude/settings.json alongside mureo:

    {
      "mcpServers": {
        "mureo": {
          "command": "python",
          "args": ["-m", "mureo.mcp"]
        },
        "analytics-mcp": {
          "command": "pipx",
          "args": ["run", "analytics-mcp"],
          "env": {
            "GOOGLE_APPLICATION_CREDENTIALS": "/path/to/application_default_credentials.json",
            "GOOGLE_PROJECT_ID": "your-gcp-project-id"
          }
        }
      }
    }
    

Connecting Other MCP Servers

mureo works alongside any MCP server in the same client session. Add them to your settings and workflow commands will incorporate their data when available. See docs/integrations.md for details.

Authentication

Interactive Setup (Recommended)

mureo auth setup

The setup wizard walks you through:

  1. Google Ads -- Enter Developer Token + Client ID/Secret, open browser for OAuth, select a Google Ads customer account
  2. Meta Ads -- Enter App ID/Secret, open browser for OAuth, obtain a Long-Lived Token, select an ad account. Your Meta App can stay in Development Mode -- no App Review is needed since mureo operates your own ad account. You may see a permission warning for business_management during OAuth; this is safe to accept and required for accessing pages managed through Business Portfolio.
  3. MCP config -- Automatically writes .mcp.json (project-level) or ~/.claude/settings.json (global) so Claude Code / Cursor can discover the server

Credentials are saved to ~/.mureo/credentials.json. Search Console reuses the same Google OAuth2 credentials as Google Ads -- no additional authentication is required.

credentials.json

{
  "google_ads": {
    "developer_token": "YOUR_DEVELOPER_TOKEN",
    "client_id": "YOUR_CLIENT_ID",
    "client_secret": "YOUR_CLIENT_SECRET",
    "refresh_token": "YOUR_REFRESH_TOKEN",
    "login_customer_id": "1234567890"
  },
  "meta_ads": {
    "access_token": "YOUR_ACCESS_TOKEN",
    "app_id": "YOUR_APP_ID",
    "app_secret": "YOUR_APP_SECRET"
  }
}

Environment variables (fallback)

PlatformVariableRequired
Google AdsGOOGLE_ADS_DEVELOPER_TOKENYes
Google AdsGOOGLE_ADS_CLIENT_IDYes
Google AdsGOOGLE_ADS_CLIENT_SECRETYes
Google AdsGOOGLE_ADS_REFRESH_TOKENYes
Google AdsGOOGLE_ADS_LOGIN_CUSTOMER_IDNo
Meta AdsMETA_ADS_ACCESS_TOKENYes
Meta AdsMETA_ADS_APP_IDNo
Meta AdsMETA_ADS_APP_SECRETNo

Verify your setup:

mureo auth status
mureo auth check-google
mureo auth check-meta

MCP Server

Setup with Claude Code

Project-level (recommended) -- add to .mcp.json in your project root:

{
  "mcpServers": {
    "mureo": {
      "command": "python",
      "args": ["-m", "mureo.mcp"]
    }
  }
}

Global -- add to ~/.claude/settings.json:

{
  "mcpServers": {
    "mureo": {
      "command": "python",
      "args": ["-m", "mureo.mcp"]
    }
  }
}

Tip: mureo auth setup can write this configuration automatically.

Setup with Cursor

Add to .cursor/mcp.json:

{
  "mcpServers": {
    "mureo": {
      "command": "python",
      "args": ["-m", "mureo.mcp"]
    }
  }
}

Tool list

Google Ads

Click to expand Google Ads tools

Campaigns

ToolDescription
google_ads.campaigns.listList campaigns
google_ads.campaigns.getGet campaign details
google_ads.campaigns.createCreate a campaign (search or display, via channel_type)
google_ads.campaigns.updateUpdate campaign settings
google_ads.campaigns.update_statusChange campaign status (ENABLED/PAUSED/REMOVED)
google_ads.campaigns.diagnoseDiagnose campaign delivery status

Ad Groups

ToolDescription
google_ads.ad_groups.listList ad groups
google_ads.ad_groups.createCreate an ad group
google_ads.ad_groups.updateUpdate an ad group

Ads

ToolDescription
google_ads.ads.listList ads
google_ads.ads.createCreate a responsive search ad (RSA)
google_ads.ads.create_displayCreate a responsive display ad (RDA); image files are uploaded automatically
google_ads.ads.updateUpdate an ad
google_ads.ads.update_statusChange ad status
google_ads.ads.policy_detailsGet ad policy approval details

Keywords (8)

ToolDescription
google_ads.keywords.listList keywords
google_ads.keywords.addAdd keywords
google_ads.keywords.removeRemove a keyword
google_ads.keywords.suggestGet keyword suggestions (Keyword Planner)
google_ads.keywords.diagnoseDiagnose keyword quality scores
google_ads.keywords.pausePause a keyword
google_ads.keywords.auditAudit keyword performance and quality
google_ads.keywords.cross_adgroup_duplicatesFind duplicate keywords across ad groups

Negative Keywords (5)

ToolDescription
google_ads.negative_keywords.listList negative keywords
google_ads.negative_keywords.addAdd negative keywords to a campaign
google_ads.negative_keywords.removeRemove a negative keyword
google_ads.negative_keywords.add_to_ad_groupAdd negative keywords to an ad group
google_ads.negative_keywords.suggestSuggest negative keywords based on search terms

Budget (3)

ToolDescription
google_ads.budget.getGet campaign budget
google_ads.budget.updateUpdate budget
google_ads.budget.createCreate a new campaign budget

Accounts (1)

ToolDescription
google_ads.accounts.listList accessible Google Ads accounts

Search Terms (2)

ToolDescription
google_ads.search_terms.reportGet search terms report
google_ads.search_terms.analyzeAnalyze search terms with intent classification

Sitelinks (3)

ToolDescription
google_ads.sitelinks.listList sitelink extensions
google_ads.sitelinks.createCreate a sitelink extension
google_ads.sitelinks.removeRemove a sitelink extension

Callouts (3)

ToolDescription
google_ads.callouts.listList callout extensions
google_ads.callouts.createCreate a callout extension
google_ads.callouts.removeRemove a callout extension

Conversions (7)

ToolDescription
google_ads.conversions.listList conversion actions
google_ads.conversions.getGet conversion action details
google_ads.conversions.performanceGet conversion performance metrics
google_ads.conversions.createCreate a conversion action
google_ads.conversions.updateUpdate a conversion action
google_ads.conversions.removeRemove a conversion action
google_ads.conversions.tagGet conversion tracking tag snippet

Targeting (11)

ToolDescription
google_ads.recommendations.listList optimization recommendations
google_ads.recommendations.applyApply an optimization recommendation
google_ads.device_targeting.getGet device targeting settings
google_ads.device_targeting.setSet device targeting bid adjustments
google_ads.bid_adjustments.getGet bid adjustment settings
google_ads.bid_adjustments.updateUpdate bid adjustments
google_ads.location_targeting.listList location targeting criteria
google_ads.location_targeting.updateUpdate location targeting
google_ads.schedule_targeting.listList ad schedule targeting
google_ads.schedule_targeting.updateUpdate ad schedule targeting
google_ads.change_history.listList account change history

Analysis (13)

ToolDescription
google_ads.performance.reportGet performance report
google_ads.performance.analyzeAnalyze performance trends and anomalies
google_ads.cost_increase.investigateInvestigate sudden cost increases
google_ads.health_check.allRun a comprehensive account health check
google_ads.ad_performance.compareCompare ad performance across variants
google_ads.ad_performance.reportGet detailed ad-level performance report
google_ads.network_performance.reportGet network-level performance breakdown
google_ads.budget.efficiencyAnalyze budget utilization efficiency
google_ads.budget.reallocationSuggest budget reallocation across campaigns
google_ads.auction_insights.getGet auction insights (competitor analysis)
google_ads.rsa_assets.analyzeAnalyze RSA asset performance
google_ads.rsa_assets.auditAudit RSA assets for best practices
google_ads.search_terms.reviewReview search terms and suggest additions/exclusions

B2B (1)

ToolDescription
google_ads.btob.optimizationsGet B2B-specific optimization suggestions

Creative (2)

ToolDescription
google_ads.landing_page.analyzeAnalyze landing page relevance and quality
google_ads.creative.researchResearch competitive creative strategies

Monitoring (4)

ToolDescription
google_ads.monitoring.delivery_goalMonitor campaign delivery against goals
google_ads.monitoring.cpa_goalMonitor CPA against target goals
google_ads.monitoring.cv_goalMonitor conversion volume against goals
google_ads.monitoring.zero_conversionsDetect campaigns with zero conversions

Capture (1)

ToolDescription
google_ads.capture.screenshotCapture a screenshot of a URL

Device (1)

ToolDescription
google_ads.device.analyzeAnalyze device-level performance

CPC (1)

ToolDescription
google_ads.cpc.detect_trendDetect CPC trend (rising/stable/falling)

Assets (1)

ToolDescription
google_ads.assets.upload_imageUpload an image asset

Meta Ads

Click to expand Meta Ads tools

Campaigns (6)

ToolDescription
meta_ads.campaigns.listList campaigns
meta_ads.campaigns.getGet campaign details
meta_ads.campaigns.createCreate a campaign
meta_ads.campaigns.updateUpdate a campaign
meta_ads.campaigns.pausePause a campaign
meta_ads.campaigns.enableEnable a paused campaign

Ad Sets (6)

ToolDescription
meta_ads.ad_sets.listList ad sets
meta_ads.ad_sets.createCreate an ad set
meta_ads.ad_sets.updateUpdate an ad set
meta_ads.ad_sets.getGet ad set details
meta_ads.ad_sets.pausePause an ad set
meta_ads.ad_sets.enableEnable a paused ad set

Ads (6)

ToolDescription
meta_ads.ads.listList ads
meta_ads.ads.createCreate an ad
meta_ads.ads.updateUpdate an ad
meta_ads.ads.getGet ad details
meta_ads.ads.pausePause an ad
meta_ads.ads.enableEnable a paused ad

Creatives (6)

ToolDescription
meta_ads.creatives.create_carouselCreate a carousel creative (2-10 cards)
meta_ads.creatives.create_collectionCreate a collection creative
meta_ads.creatives.listList ad creatives
meta_ads.creatives.createCreate a standard ad creative
meta_ads.creatives.create_dynamicCreate a dynamic product ad creative
meta_ads.creatives.upload_imageUpload an image for use in creatives

Images (1)

ToolDescription
meta_ads.images.upload_fileUpload an image from local file

Insights (2)

ToolDescription
meta_ads.insights.reportGet performance report
meta_ads.insights.breakdownGet breakdown report (age, gender, placement, etc.)

Audiences (5)

ToolDescription
meta_ads.audiences.listList custom audiences
meta_ads.audiences.createCreate a custom audience
meta_ads.audiences.getGet audience details
meta_ads.audiences.deleteDelete a custom audience
meta_ads.audiences.create_lookalikeCreate a lookalike audience

Conversions API (3)

ToolDescription
meta_ads.conversions.sendSend a conversion event (generic)
meta_ads.conversions.send_purchaseSend a purchase event
meta_ads.conversions.send_leadSend a lead event

Pixels (4)

ToolDescription
meta_ads.pixels.listList pixels
meta_ads.pixels.getGet pixel details
meta_ads.pixels.statsGet pixel firing statistics
meta_ads.pixels.eventsList pixel events

Analysis (6)

ToolDescription
meta_ads.analysis.performanceAnalyze overall performance trends
meta_ads.analysis.audienceAnalyze audience performance and overlap
meta_ads.analysis.placementsAnalyze placement performance breakdown
meta_ads.analysis.costAnalyze cost trends and efficiency
meta_ads.analysis.compare_adsCompare performance across ads
meta_ads.analysis.suggest_creativeSuggest creative improvements based on data

Product Catalog (11)

ToolDescription
meta_ads.catalogs.listList product catalogs
meta_ads.catalogs.createCreate a product catalog
meta_ads.catalogs.getGet catalog details
meta_ads.catalogs.deleteDelete a catalog
meta_ads.products.listList products in a catalog
meta_ads.products.addAdd a product to a catalog
meta_ads.products.getGet product details
meta_ads.products.updateUpdate a product
meta_ads.products.deleteDelete a product
meta_ads.feeds.listList catalog feeds
meta_ads.feeds.createCreate a catalog feed (URL + scheduled import)

Lead Ads (5)

ToolDescription
meta_ads.lead_forms.listList lead forms (per Page)
meta_ads.lead_forms.getGet lead form details
meta_ads.lead_forms.createCreate a lead form
meta_ads.leads.getGet leads (per form)
meta_ads.leads.get_by_adGet leads (per ad)

Videos (2)

ToolDescription
meta_ads.videos.uploadUpload a video from URL
meta_ads.videos.upload_fileUpload a video from local file

Split Tests (4)

ToolDescription
meta_ads.split_tests.listList A/B tests
meta_ads.split_tests.getGet A/B test details and results
meta_ads.split_tests.createCreate an A/B test
meta_ads.split_tests.endEnd an A/B test

Ad Rules (5)

ToolDescription
meta_ads.ad_rules.listList automated rules
meta_ads.ad_rules.getGet automated rule details
meta_ads.ad_rules.createCreate an automated rule (CPA alerts, auto-pause, etc.)
meta_ads.ad_rules.updateUpdate an automated rule
meta_ads.ad_rules.deleteDelete an automated rule

Page Posts (2)

ToolDescription
meta_ads.page_posts.listList Facebook Page posts
meta_ads.page_posts.boostBoost a Page post

Instagram (3)

ToolDescription
meta_ads.instagram.accountsList connected Instagram accounts
meta_ads.instagram.mediaList Instagram posts
meta_ads.instagram.boostBoost an Instagram post

Search Console

Click to expand Search Console tools

Sites (2)

ToolDescription
search_console.sites.listList verified sites
search_console.sites.getGet site details

Analytics (4)

ToolDescription
search_console.analytics.queryQuery search analytics data
search_console.analytics.top_queriesGet top search queries
search_console.analytics.top_pagesGet top pages by clicks/impressions
search_console.analytics.device_breakdownGet performance breakdown by device
search_console.analytics.compare_periodsCompare search performance across time periods

Sitemaps (2)

ToolDescription
search_console.sitemaps.listList sitemaps for a site
search_console.sitemaps.submitSubmit a sitemap

URL Inspection (1)

ToolDescription
search_console.url_inspection.inspectInspect a URL for indexing status

Rollback

Click to expand rollback tools

Cross-platform tools that inspect and apply the reversal plan for a previously-recorded action_log entry. Apply re-dispatches through the same MCP handler used for forward actions, so the reversal re-enters the full policy gate (auth, rate limit, input validation, allow-list).

ToolDescription
rollback.plan.getInspect the reversal plan for an action_log entry (supported / partial / not_supported), its operation + params, and any caveats. Read-only; does not execute.
rollback.applyExecute the reversal plan for action_log[index]. Requires confirm=true as a literal boolean. Appends a new log entry tagged rollback_of=<index>; a second apply of the same index is refused. state_file is resolved strictly inside the MCP server's CWD — path traversal, symlink escape, and rollback.* self-recursion are all refused.

Analysis

Click to expand analysis tools

Cross-platform detection tools that operate on STATE.json's action_log history rather than on platform APIs directly.

ToolDescription
analysis.anomalies.checkCompare a campaign's current metrics against a median-based baseline built from action_log history. Returns severity-ordered anomalies — zero spend (CRITICAL), CPA spike (HIGH/CRITICAL, gated by 30+ conversions), CTR drop (HIGH/CRITICAL, gated by 1000+ impressions). Sample-size gates follow the mureo-learning skill's statistical-thinking rules. Returns baseline=null when history is shorter than min_baseline_entries (default 7); baseline_warning surfaces a parseable-but-corrupt STATE.json without silencing live zero-spend detection.

CLI

mureo setup claude-code    # One-command setup for Claude Code
mureo setup cursor         # Setup for Cursor
mureo auth status          # Check authentication status
mureo auth check-google    # Verify Google Ads credentials
mureo auth check-meta      # Verify Meta Ads credentials

Strategy Context

Two local files drive strategy-aware operations. Run /onboard to generate them interactively.

  • STRATEGY.md -- Persona, USP, Brand Voice, Goals, Operation Mode. See docs/strategy-context.md.
  • STATE.json -- Campaign snapshots, action log. Updated automatically by workflow commands.

Architecture

mureo/
├── __init__.py              # Package root
├── auth.py                  # Credential loading (~/.mureo/credentials.json + env vars + Meta token auto-refresh)
├── auth_setup.py            # Interactive setup wizard (OAuth + MCP config)
├── throttle.py              # Rate limiting (token bucket + rolling hourly cap)
├── _image_validation.py     # Image file validation utilities
├── google_ads/              # Google Ads API client (google-ads SDK wrapper)
│   ├── client.py            # GoogleAdsApiClient (8 Mixin: Ads, Keywords, Analysis, Creative, Diagnostics, Extensions, Media, Monitoring)
│   ├── mappers.py           # Response mapping to structured dicts
│   └── _*.py                # 8 Mixin modules (ads, keywords, analysis, extensions, diagnostics,
│                            #   creative, monitoring, media) + validators + classifiers
├── meta_ads/                # Meta Ads API client (15 Mixins, httpx-based)
│   ├── client.py            # MetaAdsApiClient (Campaigns, AdSets, Ads, Creatives, Audiences, Pixels,
│   │                        #   Insights, Analysis, Catalog, Conversions, Leads, PagePosts, Instagram,
│   │                        #   SplitTest, AdRules)
│   ├── mappers.py           # Response mapping to structured dicts
│   └── _*.py                # 15 Mixin modules (campaigns, ads, creatives, audiences, etc.)
├── search_console/          # Google Search Console API client (reuses Google OAuth2 credentials)
│   └── client.py            # SearchConsoleApiClient
├── analysis/                # Cross-platform analysis utilities
│   └── lp_analyzer.py       # Landing page analysis engine
├── context/                 # File-based context (STRATEGY.md, STATE.json)
│   ├── models.py            # Immutable dataclasses (StrategyEntry, StateDocument)
│   ├── strategy.py          # STRATEGY.md parser / renderer
│   ├── state.py             # STATE.json parser / renderer
│   └── errors.py            # Context-related errors
├── cli/                     # Typer CLI (setup + auth only)
│   ├── main.py              # Entry point (mureo command)
│   ├── setup_cmd.py         # mureo setup claude-code / cursor
│   └── auth_cmd.py          # mureo auth setup / status / check-*
└── mcp/                     # MCP server
    ├── __main__.py                        # python -m mureo.mcp entry point
    ├── server.py                          # MCP server setup (stdio transport)
    ├── _helpers.py                        # Shared handler utilities
    ├── tools_google_ads.py                # Google Ads tool definitions (aggregator)
    ├── _tools_google_ads_*.py             # Tool definition sub-modules
    ├── _handlers_google_ads.py            # Google Ads base handlers
    ├── _handlers_google_ads_extensions.py # Extensions handlers
    ├── _handlers_google_ads_analysis.py   # Analysis handlers
    ├── tools_meta_ads.py                  # Meta Ads tool definitions (aggregator)
    ├── _tools_meta_ads_*.py               # Tool definition sub-modules
    ├── _handlers_meta_ads.py              # Meta Ads base handlers
    ├── _handlers_meta_ads_extended.py     # Extended handlers
    ├── _handlers_meta_ads_other.py        # Other handlers
    ├── tools_search_console.py            # Search Console tool definitions
    └── _handlers_search_console.py        # Search Console handlers

Design principles:

  • No database -- all state is either in the ad platform APIs or in local files (STRATEGY.md, STATE.json).
  • No LLM dependency -- mureo does not embed an LLM. Inference, planning, and decision-making are the agent's responsibility.
  • Immutable data models -- all dataclasses use frozen=True to prevent accidental mutation.
  • Credentials stay local -- loaded from ~/.mureo/credentials.json or environment variables. Never sent anywhere except the official ad platform APIs.

Development

git clone https://github.com/logly/mureo.git && cd mureo
pip install -e ".[dev]"
pytest tests/ -v                              # run tests
pytest --cov=mureo --cov-report=term-missing  # with coverage
ruff check mureo/ && black mureo/ && mypy mureo/  # lint & format

Python 3.10+ required. See CONTRIBUTING.md for full development guidelines.

License

Apache License 2.0

Reviews

No reviews yet

Sign in to write a review