# ad4agent

> ad4agent is an MCP server for marketing and seo. MCP server that turns merchant URLs and keywords into affiliate tracking links for AI. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Platforms:** API, Web
- **Website:** https://ad4agent.com/docs
- **MCP Registry name:** com.ad4agent/ad4agent
- **Categories:** [marketing and SEO](https://ai-powered.com/categories/marketing-and-seo)
- **Listing updated:** 2026-11-20

## About

ad4agent gives AI assistants a way to find affiliate advertiser programs and generate personal tracking links for them. Instead of a user pasting a store address, the connected agent can pass a merchant homepage or product URL and receive a link attributed to the connected account, or search programs by keyword, country and category.

The server exposes a small set of tools over Streamable HTTP. Some tools need an OAuth 2.1 sign-in with PKCE, which the user approves in the browser; a public endpoint offers only account onboarding and an explanation of how the service works. Results show whether a link is ready, unavailable or missing a program, and commission figures are presented as estimates rather than guaranteed payouts.

It is aimed at developers building shopping or recommendation agents, and at people connecting Claude or ChatGPT who want affiliate-linked product suggestions. The service does not handle orders, payments, live prices or stock levels, so those checks remain with the merchant or the agent.

## Features

- **Merchant link generation:** Converts a merchant homepage or product URL into a personal tracking link tied to the connected account.
- **Program search:** Finds advertiser programs by merchant name, domain, keyword, country and category with paging.
- **Category listing:** Lists categories that currently contain shops, ordered by size, to narrow searches.
- **Commission estimates:** Shows estimated average commission in EUR per program, labelled as non-guaranteed.
- **OAuth 2.1 access:** Uses authorization code flow with PKCE and dynamic client registration, with revocation in the app settings.
- **Claude and ChatGPT connectors:** Can be added as a custom connector in Claude or as a custom app in ChatGPT using the MCP URL.

## Good for

- Adding affiliate-linked product suggestions to a shopping assistant
- Finding affiliate programs for a given keyword, country or category
- Turning a merchant product page a user shares into a tracking link
- Testing MCP tool calls against the public onboarding endpoint

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add --transport http ad4agent https://ad4agent.com/mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "ad4agent": {
      "type": "http",
      "url": "https://ad4agent.com/mcp"
    }
  }
}
```

### Claude Desktop (Customize → Connectors → Add → Add custom connector)

```text
https://ad4agent.com/mcp
```

Paste this URL, choose how to sign in, then click Add and Connect. On Team and Enterprise an Owner adds it in Organization settings → Connectors.

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

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

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "ad4agent": {
      "type": "http",
      "url": "https://ad4agent.com/mcp"
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### ChatGPT (chatgpt.com → Plugins → + → Add custom MCP server)

```text
https://ad4agent.com/mcp
```

Paste this URL, set up sign-in, accept the warning and install the plugin. Then type @ in a chat to use it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add ad4agent --url https://ad4agent.com/mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.ad4agent]
url = "https://ad4agent.com/mcp"
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "ad4agent": {
      "httpUrl": "https://ad4agent.com/mcp"
    }
  }
}
```

Or run: gemini mcp add -s user --transport http ad4agent https://ad4agent.com/mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "ad4agent": {
      "serverUrl": "https://ad4agent.com/mcp"
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "ad4agent": {
      "url": "https://ad4agent.com/mcp",
      "transport": "http"
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "ad4agent": {
      "type": "streamableHttp",
      "url": "https://ad4agent.com/mcp"
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "ad4agent": {
      "url": "https://ad4agent.com/mcp"
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

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

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

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

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

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

Use .kiro/settings/mcp.json to add it to one workspace only.

### Grok Bot (Grok Bot desktop app → Connect apps → Add a custom connector)

```sh
https://ad4agent.com/mcp
```

Enter a Name (for example "ad4agent"), choose Type: Remote HTTPS, paste this as the Server URL and choose Add plugin. When we checked, this server asked for OAuth sign-in. If its docs give you an OAuth client ID and secret, enter them in the form's OAuth Client ID and Client Secret fields.

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

```json
{
  "mcpServers": {
    "ad4agent": {
      "type": "http",
      "url": "https://ad4agent.com/mcp"
    }
  }
}
```

## Tools

Going by the tool names, 4 of 5 tools read data; 1 name doesn't say. From the server's own tool labels and tool names; not verified by us.

- `get_tracking_link` (name suggests: reads): Turns one merchant homepage or product URL into a personal tracking link.
- `search_tracking_links` (name suggests: reads): Finds advertiser programs and personal tracking links by keyword, country, category or target URL.
- `list_categories` (name suggests: reads): Lists categories that currently contain shops, with IDs, largest first.
- `onboard_person`: Starts account creation or sign-in by email for a user who asks and consents.
- `explain_mcp` (name suggests: reads): Explains how to connect, how links and commissions work and why a link may be unavailable.

## FAQ

### How do I connect ad4agent to Claude?

In Claude, open Settings, go to Connectors and add a custom connector using https://ad4agent.com/mcp. Sign in, approve access, then enable the connector in your conversation.

### Does ad4agent process orders or return prices?

No. It does not place orders, process payments or return product prices or stock information.

### Are the commission figures guaranteed?

No. Average commission is an estimate for the connected owner and is not a guaranteed payout.

### Which authentication does ad4agent use?

OAuth 2.1 authorization code flow with PKCE (S256), with dynamic client registration and refresh tokens via the offline_access scope.

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

Run this command in your terminal: claude mcp add --transport http ad4agent https://ad4agent.com/mcp

### What are the best alternatives to ad4agent?

The closest alternatives to ad4agent are AgentsCPA, AdsAgent — Meta Ads MCP, AffiliateSpy, Ads AI Creator MCP and Facebook Meta Google Tiktok Ads Library Api MCP.

## Where this comes from

- Description: written from the project's website and its MCP Registry entry.
- Status: checked automatically by AIPoweredBot on 26 November 2026.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [AgentsCPA](https://ai-powered.com/mcp/agentscpa): AgentsCPA is a free MCP server for marketing and seo.
- [AdsAgent — Meta Ads MCP](https://ai-powered.com/mcp/adsagent-meta-ads-mcp): AdsAgent — Meta Ads MCP is a freemium MCP server for marketing and seo.
- [AffiliateSpy](https://ai-powered.com/mcp/affiliatespy): AffiliateSpy is a paid MCP server for sales and crm.
- [Ads AI Creator MCP](https://ai-powered.com/mcp/ads-ai-creator-mcp): Ads AI Creator MCP is a paid MCP server for marketing and seo.
- [Facebook Meta Google Tiktok Ads Library Api MCP](https://ai-powered.com/mcp/facebook-meta-google-tiktok-ads-library-api-mcp-2): Facebook Meta Google Tiktok Ads Library Api MCP is a paid MCP server for marketing and seo.
- [Publink](https://ai-powered.com/mcp/publink): Publink is an MCP server for sales and crm.
- [Links](https://ai-powered.com/mcp/links): Links is an MCP server for marketing and seo.
- [Komendly (Ozzy): ads and videos from your website](https://ai-powered.com/mcp/komendly-ozzy-ads-and-videos-from-your-website): Komendly (Ozzy): ads and videos from your website is a freemium MCP server for marketing and seo.

---
Source: https://ai-powered.com/mcp/ad4agent
