# Using Roasby in Claude Code, with the MCP server or the plugin

> How Roasby works in Claude Code as an MCP server or a plugin with five ad skills: scopes, sign-in and ad work next to your landing pages and tags.

Roasby adds your Google Ads, Microsoft Ads, ChatGPT Ads and Meta Ads accounts to Claude Code, either as a remote MCP server with one command or as a Claude Code plugin that also brings workflow skills. Both use the same hosted server and an OAuth sign-in, so no ad platform key ever reaches your terminal or repository. This page covers how the Claude Code MCP setup works, when the plugin is worth it, and what ad work fits a coding session.

## Claude Code MCP server or Claude Code plugin?

Both give Claude Code exactly the same Roasby tools. The difference is what comes with them and how they are managed.

| | MCP server (`claude mcp add`) | Roasby plugin |
| --- | --- | --- |
| What it adds | The Roasby connection | The same connection plus five skills |
| How you remove it | `claude mcp remove roasby` | Uninstall the plugin |
| Scope choice | Local, project or user | Follows Claude Code's plugin settings |
| Suits | Ad questions now and then | Repeated audits, reviews and launches |

The plugin connects only to `https://roasby.com/mcp`. It runs no local code and has no hooks: it is the server address and a set of written instructions. Claude Code's docs on [discovering plugins](https://code.claude.com/docs/en/discover-plugins) advise checking what a plugin installs before you install it, and the install screen lists it.

Claude Code's [MCP docs](https://code.claude.com/docs/en/mcp) say a server that comes from a plugin is added and removed with the plugin, not with `claude mcp` commands, but you can still switch it off in `/mcp` without uninstalling. If you added the server by hand first and then install the plugin, remove the manual entry so you do not have Roasby twice.

### What the five skills do

Skills are written workflows that Claude Code loads when a task matches them. They do not add new powers; they make Claude Code follow the same safe order every time.

- **working-with-roasby** checks the active workspace, reads IDs before acting, previews every change and waits for your confirmation. It also explains steps only a person can do on the web.
- **roasby-wasted-spend-audit** finds searches and keywords that spend without converting, checks Roasby's recommendations and proposes negatives or pauses.
- **roasby-weekly-review** compares performance across platforms, highlights the campaigns that moved and flags open alerts.
- **roasby-launch-search-campaign** researches keywords, groups them into ad groups, writes ads and creates a complete campaign, paused.
- **roasby-budget-and-bid-check** reviews impression share, Quality Score and first page bids to propose budget or bid steps within your guardrails.

The table in [Connect your AI](/docs/connect-your-ai#install-the-roasby-plugin-and-skills) has the same list, plus the command for assistants that read Agent Skills.

## Scopes: where the Roasby server lives

`claude mcp add` takes a `--scope` option. Anthropic's MCP docs describe three:

- **local** (the default): available only to you, in the current project.
- **project**: shared with everyone in the project through a `.mcp.json` file in the repository root. Claude Code asks each person to approve servers from that file before using them.
- **user**: available to you in all your projects.

For ad work, two patterns are common. A marketer or founder who checks ads from any folder uses `--scope user`. A team whose marketing site lives in one repository uses `--scope project`, so the Roasby entry is committed with the code. The file holds only the address, never a token, and each person still signs in with their own Roasby account and gets their own workspace role.

Sign-in happens from `/mcp` inside Claude Code. Claude Code stores the token and refreshes it. `claude mcp list` shows whether Roasby is connected or needs authentication, and **Clear authentication** in `/mcp` removes access from that machine. To revoke access everywhere, disconnect it in **AI connections** on the Roasby web app.

## Ad work that fits next to your code

The reason to use Roasby in Claude Code rather than a chat app is the files around it. Claude Code can read your project and your ad accounts in the same session.

### Landing pages and campaigns

- Check how a campaign performs while you edit the landing page it points to, and compare the page's copy with the search terms that reach it.
- After you ship a new page, ask Claude Code to draft a search campaign for it. Roasby creates it paused, with ad groups, keywords and ads inside, so nothing spends until you enable it. See [campaign setup](/use-cases/google-ads-campaign-setup) and [Create campaigns](/docs/creating-campaigns).
- When you rename a page, ask Claude Code to update the keyword final URLs that point to it. Each edit is previewed like any other change.

### Tracking tags and conversions

Roasby reads how each ad account tracks conversions: which actions count, whether they recorded anything recently, and the campaign goals. With your site's code open, Claude Code can compare that with the tags in your templates and spot a conversion that stopped recording after a release. Tag installation itself happens in your code and in each platform's own tools. See [Conversions](/docs/conversions) and the [conversion tracking](/use-cases/conversion-tracking) use case.

### Bulk work from files

A CSV of keywords, a spreadsheet of client budgets or a list of negatives in your repository can feed a batch. Within one ad account, a batch is one preview and one confirmation for all valid items, and refused items are listed with their reasons.

## How changes stay under your control in a terminal

Claude Code moves fast, so the rules on Roasby's side matter:

1. **Preview first.** Every write starts with a read-only preview tool. Roasby checks guardrails and platform rules and returns the before and after values with a one-time token.
2. **Your yes, then apply.** Claude Code is told to show the preview and stop. Only after your reply does it send the token, which works once, for 10 minutes, for that exact change.
3. **Logged and revertible.** Every change is in the change log with the before and after values and your quoted reply. Most can be reverted in one click.

Everything new starts paused, and there are no delete tools. Budget and bid guardrails are set per ad account by owners and admins on the web; Claude Code can read them but never loosen them. Changes that cannot be undone are off by default and need a workspace setting plus a second confirmation in chat, and they never run in a batch. The full rules are in the [safety model](/docs/safety-model).

Claude Code also has its own permission prompts for tool calls. Allowing Roasby's read tools without asking is reasonable; keep the tools that apply changes on manual approval, so each change stops for you even in a long session.

## Limits in Claude Code

- **No unattended writes you did not confirm.** A confirmation token proves the preview ran, not that a person typed the reply. Do not script Claude Code to approve its own changes.
- **Platform differences still apply.** ChatGPT Ads and Meta Ads have no keyword research, and ChatGPT Ads has no search terms report. The [Google Ads](/google-ads) and [Microsoft Ads](/microsoft-ads) pages list what Roasby does on the search platforms.
- **Web-only steps stay on the web.** Connecting ad accounts, guardrails, billing and workspace settings are done in Roasby's web app. Claude Code explains the step and links to it.
- **One connection, every workspace.** Claude Code works in your current workspace unless you name another one in the prompt.

Claude on the web and desktop uses the same server as a connector: see [Roasby for Claude](/integrations/claude). For a side-by-side walkthrough of both setups, read [How to connect Claude to Google Ads](/guides/how-to-connect-claude-to-google-ads).

## Set up Claude Code

1. Connect an ad account on the Ad accounts page in Roasby.
2. Run the command below in your terminal.
3. Run /mcp in Claude Code and choose Authenticate next to Roasby.
4. Sign in to Roasby and approve access.
5. Ask: Which Roasby workspace am I in?

```text
claude mcp add --transport http roasby https://roasby.com/mcp
```

## Try asking

- Run a wasted spend audit on my Google Ads account.
- Which landing pages get the most paid clicks and the fewest conversions?
- Create a paused Search campaign for the page in this repository.

## Questions, answered

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

Run claude mcp add --transport http roasby https://roasby.com/mcp, then run /mcp in Claude Code and choose Authenticate next to Roasby.

### How do I install the Roasby plugin?

Run /plugin marketplace add Roasby/roasby, then /plugin install roasby@roasby. Then run /mcp and choose Authenticate for Roasby.

### What does the plugin add on top of the MCP server?

Five skills: working with Roasby safely, a wasted spend audit, a weekly review, a budget and bid check and a search campaign launch. The tools are the same; the skills guide Claude Code through each job.

### Do I need the plugin?

No. The command alone gives Claude Code every Roasby tool. The plugin is worth it when you run the same audits and reviews often.

### Does Claude Code store my ad platform keys?

No. Claude Code only signs in to Roasby with OAuth. Your ad accounts are connected in Roasby, and their logins and keys never reach your terminal or your repository.

### Can Claude Code change my ads without asking?

Roasby needs a confirmation token from a preview for every change, and Claude Code is told to wait for your yes. Read each preview before you approve the tool call.
