# Claude Code

> Add your advertising accounts to Claude Code with one claude mcp add command, then sign in from the browser it opens. Per project or for every project.

[Guides](https://www.getmcpads.com/guides)

## For you

Claude Code speaks the Model Context Protocol, so there is nothing to install. You paste one URL, sign in once, and your advertising accounts become tools it can call.

## Setup

Add the gateway

```bash
claude mcp add --transport http get-mcp-ads https://mcp.getmcpads.com/mcp
```

Run `/mcp` inside Claude Code to start the sign-in, then approve in the browser it opens.

Available in every project rather than this one

```bash
claude mcp add --scope user --transport http get-mcp-ads https://mcp.getmcpads.com/mcp
```

One source at a time is often better in a coding session, where a long tool list competes with the code you are actually working on.

Google Ads only

```bash
claude mcp add --transport http google-ads https://mcp.getmcpads.com/google-ads/mcp
```

## Before it can answer anything

Connecting the client is one half. The other is connecting at least one advertising platform in the dashboard and ticking which accounts to expose. Both need you, not the assistant: one is a consent screen at Google or Meta, the other is a decision about which accounts a machine may read.

- [Quickstart](https://www.getmcpads.com/docs/quickstart): The four steps, in order.
- [All guides](https://www.getmcpads.com/guides): What to ask once it is connected.

## For your agent

Setting up Claude Code against this gateway. The endpoint is `https://mcp.getmcpads.com/mcp`, and each source also has its own endpoint if a narrower tool list is wanted.

> **Note** Two steps in this setup need the account owner and cannot be done by an agent: approving the OAuth consent screen, and ticking which ad accounts to expose. If either is missing, hand back to the person rather than retrying.

## What the client does on its own

1. It requests `https://mcp.getmcpads.com/mcp` and receives a 401 with a `WWW-Authenticate` header.
2. It reads the protected resource metadata named in that header.
3. It registers itself through dynamic client registration. No key is issued or pasted.
4. It opens the authorisation page with PKCE and waits for the person to approve.
5. It calls `tools/list` and receives the tools for the connected sources, plus four routing tools.

## Checking it worked

Call `list_accounts`. It answers without touching any advertising API, so it separates a connection problem from an account problem. An empty list means the platform is connected but nothing was ticked.

- [Tool discovery](https://www.getmcpads.com/docs/concepts/discovery): Why the list is short, and how to reach the rest.
- [Account scoping](https://www.getmcpads.com/docs/concepts/accounts): What is refused, and why.
- [Authentication](https://www.getmcpads.com/docs/authentication): The metadata documents, in full.

---

This page as HTML: https://www.getmcpads.com/guides/setup/claude-code
Every page under /guides and /docs is available as Markdown: append `.md`, or send `Accept: text/markdown`.
