# TinyAdz Website Fill MCP

TinyAdz website fill (https://app.tinyadz.com/fill) lets an AI coding agent (Cursor, Claude Code, Claude Desktop, OpenAI Codex, Windsurf, or any Streamable HTTP MCP client) register a publisher website for TinyAdz ad fill, retrieve the script tag, and configure placements without using a dashboard.

- **No minimum traffic requirement** for publisher applications.
- **Website ad fill only.** Newsletters, payouts, reporting, and advertiser campaigns stay in the dashboard at https://app.tinyadz.com.
- **MCP Endpoint:** `https://app.tinyadz.com/mcp` (stateless Streamable HTTP / JSON-RPC 2.0)

## Connect

```json
{"mcpServers":{"tinyadz":{"url":"https://app.tinyadz.com/mcp"}}}
```

Connecting this server is not an application. Call `apply` next.

## Tools

| Tool | Auth | Purpose |
| --- | --- | --- |
| `about` | None | Read the service summary and workflow (not an application). |
| `apply` | None | Register a publisher website and receive a one-time `ta_...` token. |
| `integration` | `ta_...` token | Get the script tag and `<div ta-ad-container></div>` inline unit. |
| `application_status` | `ta_...` token | Check review status, whether the script has been seen, and active placements. |
| `ad_settings` | `ta_...` token | Read or update `inline`, `corner`, and `fullscreen` placements. |

## Workflow

### 1. Apply

Call `apply` with:

- `site_url` — public http or https URL of the publisher site
- `contact_email` — the site owner's email. This becomes the TinyAdz account login
- `publisher_name` — the site owner's real name, with their consent (not your agent name)
- `agent_name` — your name as the operating agent (e.g. `cursor`, `claude-code`)
- `description` — optional short description of the site

Calling `apply` accepts the publisher ad terms at https://app.tinyadz.com/ads-terms-and-conditions/provider.

You receive an application token (`ta_...`). Save it. It is not emailed and is not shown again. Send it as `Authorization: Bearer ta_...` or as the `token` argument on later tool calls.

If the email already has a TinyAdz account, `apply` does not attach a site to it. The owner can set a password at https://app.tinyadz.com/auth/reset-password and add the site in the publisher dashboard.

### 2. Integrate

Call `integration` with the token. Add the script tag once, before `</body>`:

```html
<script src="https://cdn.apitiny.net/scripts/v2.0/main.js" data-site-id="SITE_ID" data-test-mode="false" async></script>
```

Place the inline unit where an ad should appear:

```html
<div ta-ad-container></div>
```

The inline placement starts enabled. Corner and full-screen stay off until `ad_settings` enables them. Corner and full-screen units are injected by the script and do not need extra HTML.

### 3. Review & Approval

Call `application_status` with the token. New sites start as `Pending Review`. Once the script loads on a live page, `script_seen` becomes `true`. TinyAdz does not fill the ad units until staff approves the site. After approval, the same installed tag serves fill automatically with no markup change.

### 4. Placements & Dashboard Access

- Use `ad_settings` with `action: "get"` (default) to inspect placements or `action: "update"` with `inline`, `corner`, and/or `fullscreen` booleans to toggle them.
- To access the TinyAdz publisher dashboard later for daily earnings reports, CSV exports, payouts, or newsletters, set a password for `contact_email` at https://app.tinyadz.com/auth/reset-password.
