# AdRails

> AdRails is an open-source MCP server for marketing and seo. Local MCP server that lets an AI run Google Ads and SEO work inside spend caps you set. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** self-hosted, CLI
- **Website:** https://adrails.dev
- **Repository:** https://github.com/antonioac1/adrails
- **MCP Registry name:** dev.adrails/adrails
- **Categories:** marketing and SEO
- **Listing updated:** 2026-11-14

## About

The core idea is a policy file that no AdRails tool can write. Budget limits, end dates and spend thresholds live there, and every real change needs a fresh single-use plan ID that expires in 15 minutes. In the site's example, an agent asking for a 40 dollar daily budget is refused because the policy maximum is 25; a smaller change is planned with dry_run, then applied with the plan ID, validated by Google and committed.

It runs on your machine against your own Google Cloud project, with no hosted proxy or account. Beyond Google Ads it covers Local Services Ads, ChatGPT Ads, Search Console, AI-answer visibility and a lead book. adsops_metrics_pull keeps a daily history in a local SQLite file, and adsops_impact compares days after a change with a counterfactual, giving a verdict of helped, hurt or no clear effect.

Three optional extras are paid per job in sats or USDC: an AI visibility panel (5,000 sats), a second opinion (1,000 sats) and a Bitcoin timestamp (1,000 sats). A hosted coach connector is also offered for ChatGPT and Claude.

## Features

- **Guardrail policy:** Caps live in a file no tool can write.
- **Single-use plan IDs:** Every change needs a fresh plan ID.
- **Impact measurement:** Compares results after a change with a counterfactual.
- **Local history:** Daily ads, Search Console and lead data stay in local SQLite.
- **Lead book:** Collects leads from ads, the website and AI assistants.
- **Optional paid extras:** Visibility panel, second opinion and timestamp, per job.

## Good for

- Let an agent adjust budgets within a hard cap
- Find pages ranking at positions 4 to 20
- Check whether a campaign change helped
- Build a 90-day local lead plan

## Install

### Claude Code (Terminal)

```sh
claude mcp add adrails -- uvx adrails
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "adrails": {
      "command": "uvx",
      "args": [
        "adrails"
      ]
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "adrails": {
      "command": "uvx",
      "args": [
        "adrails"
      ]
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "adrails": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "adrails"
      ]
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "adrails": {
      "command": "uvx",
      "args": [
        "adrails"
      ]
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "adrails": {
      "command": "uvx",
      "args": [
        "adrails"
      ]
    }
  }
}
```

## Tools

- `adsops_set`: Plans or applies a campaign change such as a budget.
- `adsops_metrics_pull`: Pulls daily ads and Search Console history into a local store.
- `adsops_impact`: Measures a change against an expected outcome.
- `adsops_search_console`: Ranks organic opportunities from Search Console.
- `adsops_get_started`: Starts onboarding.
- `adsops_setup_checklist`: Setup checklist.
- `adsops_page_plan`: Plans pages.
- `adsops_cadence`: Weekly routine.

## FAQ

### Is it free?

The executor is free and open source under Apache-2.0, with no subscription.

### Does my data leave my machine?

The site says nothing leaves your machine; numbers stay local.

### How are extras paid?

In sats on-chain or USDC on Base through x402, per job, with no account.

### Is AdRails free?

Yes. AdRails is open source, so you can use and self-host it for free.

### How do I add AdRails to Claude Code?

Run this command in your terminal: claude mcp add adrails -- uvx adrails

### What are the best alternatives to AdRails?

The closest alternatives to AdRails are Google Ads + Meta Ads + SEO/GEO MCP, Calven, MCP, Red Center Studio free tools and ASOScan.

## Alternatives

- [Google Ads + Meta Ads + SEO/GEO MCP](https://ai-powered.com/mcp/google-ads-meta-ads-seo-geo-mcp): Google Ads + Meta Ads + SEO/GEO MCP is a freemium MCP server for marketing and seo.
- [Calven](https://ai-powered.com/mcp/calven): Calven is an MCP server for marketing and seo.
- [MCP](https://ai-powered.com/mcp/mcp-mwhffe53): MCP is a freemium MCP server for marketing and seo.
- [Red Center Studio free tools](https://ai-powered.com/mcp/red-center-studio-free-tools): Red Center Studio free tools is a free MCP server for marketing and seo.
- [ASOScan](https://ai-powered.com/mcp/asoscan): ASOScan is an MCP server for marketing and seo.
- [PostBaton](https://ai-powered.com/mcp/postbaton): PostBaton is a freemium MCP server for marketing and seo.
- [Fifty Asks](https://ai-powered.com/mcp/fifty-asks): Fifty Asks is a free MCP server for maps and travel.
- [Daniels AI Design Studio](https://ai-powered.com/mcp/daniels-ai-design-studio): Daniels AI Design Studio is an MCP server for design and media.

---
Source: https://ai-powered.com/mcp/adrails-2
