Metadata-Version: 2.4
Name: admapix-mcp
Version: 1.0.0
Summary: AdMapix MCP Server — AI-powered ad creative search
Project-URL: Homepage, https://admapix.miaozhisheng.tech
Project-URL: Repository, https://github.com/fly0pants/admapix
Author-email: Miaozhisheng <dev@miaozhisheng.tech>
License-Expression: MIT
Keywords: advertising,ai,creative,mcp,search
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Python: >=3.10
Requires-Dist: httpx>=0.27
Requires-Dist: mcp>=1.0.0
Requires-Dist: pydantic>=2.0
Description-Content-Type: text/markdown

<h1 align="center">🎯 AdMapix</h1>

<p align="center">
  <strong>AI-Powered Ad Creative Intelligence — Search, Discover, Deliver.</strong><br>
  <sub><b>Ad</b>(Advertising) + <b>Ma</b>(Map/Material) + <b>Pix</b>(Pixel) — Pixel-level insight into ad creatives.</sub>
</p>

<p align="center">
  <a href="#-quick-start"><img src="https://img.shields.io/badge/Quick_Start-1_min-blue?style=for-the-badge" alt="Quick Start"></a>
  <a href="#-features"><img src="https://img.shields.io/badge/Features-6_Core-green?style=for-the-badge" alt="Features"></a>
  <a href="LICENSE"><img src="https://img.shields.io/badge/License-MIT-yellow?style=for-the-badge" alt="License"></a>
</p>

<p align="center">
  <img src="https://img.shields.io/badge/python-≥3.10-blue?logo=python&logoColor=white" alt="Python">
  <img src="https://img.shields.io/badge/MCP-STDIO-blueviolet" alt="MCP">
  <img src="https://img.shields.io/badge/platform-macOS_|_Linux_|_Windows-lightgrey" alt="Platform">
</p>

<p align="center">
  <a href="README_CN.md"><strong>中文文档</strong></a>
</p>

---

## 🤔 What is AdMapix?

AdMapix is an **MCP Server + OpenClaw Skill** that lets AI agents search competitor ad creatives through natural language.

Just tell your agent what you're looking for, and get back a rich H5 results page with videos, images, metrics, and one-click delivery to WeChat.

```
User: "Search casual game video ads in Southeast Asia"

Agent: 🎯 Found 2,847 ad creatives (page 1)
       👉 http://ad.h5.miaozhisheng.tech/p/abc123
```

---

## ✨ Features

<table>
<tr>
<td width="33%">

### 🔍 Smart Search
Keyword, country, date range, creative type — all expressed in natural language, auto-mapped to API parameters.

</td>
<td width="33%">

### 🌏 Global Coverage
50+ countries, 10+ region shortcuts, filterable by industry category.

</td>
<td width="33%">

### 📊 Rich Results
Auto-generated H5 pages with video playback, image gallery, ad metrics, and impression data.

</td>
</tr>
<tr>
<td width="33%">

### 📱 WeChat Delivery
One-tap "Send to Chat" — delivers video files directly into WeChat conversations.

</td>
<td width="33%">

### 🤖 Agent-Native
Built as MCP Server, works with any MCP-compatible agent (OpenClaw, Claude Code, etc).

</td>
<td width="33%">

### ⚡ Zero Config
One install script handles Python, Node.js, mcporter, and config — fully automated.

</td>
</tr>
</table>

---

## 🚀 Quick Start

> **Prerequisite:** An API Key from your admin.

### Mac / Linux

```bash
git clone https://github.com/fly0pants/admapix.git
bash admapix/install.sh <YOUR_API_KEY>
```

### Windows (PowerShell)

```powershell
git clone https://github.com/fly0pants/admapix.git
powershell -ExecutionPolicy Bypass -File admapix\install.ps1 -ApiKey <YOUR_API_KEY>
```

The installer automatically:

| Step | What it does |
|------|-------------|
| 1 | Detects or installs **Python 3.10+** |
| 2 | Detects or installs **Node.js** |
| 3 | Detects or installs **mcporter** |
| 4 | Sets up MCP Server in `~/.admapix/` |
| 5 | Configures `~/.mcporter/mcporter.json` |
| 6 | Installs OpenClaw Skill to `~/.openclaw/skills/` |

**That's it.** Start chatting with your agent and search away.

---

## 🎯 Usage

Through your AI agent (OpenClaw, etc.), just say:

| You say | What happens |
|---------|-------------|
| "search temu ads" | Search by keyword |
| "video only" | Filter by creative type |
| "in Southeast Asia" | Filter by region |
| "sort by impressions" | Sort by impression |
| "last 7 days" | Filter by date range |
| "next page" | Paginate |

---

## 🔧 Manual Setup

<details>
<summary>If you prefer manual configuration over the install script</summary>

1. **Install dependencies**

```bash
python3 -m venv ~/.admapix/.venv
~/.admapix/.venv/bin/pip install mcp httpx pydantic
```

2. **Configure `~/.mcporter/mcporter.json`**

```json
{
  "mcpServers": {
    "admapix": {
      "command": "~/.admapix/.venv/bin/python3 ~/.admapix/server.py",
      "env": {
        "API_KEY": "<YOUR_API_KEY>"
      }
    }
  }
}
```

3. **Install the Skill**

```bash
cp -r skill/ ~/.openclaw/skills/ad-creative-search/
```

</details>

---

## 🏗️ Architecture

```
User (WeChat / Agent)
  → AI Agent (OpenClaw)
    → mcporter call 'admapix.search_creatives(...)'
      → MCP Server (Python, STDIO)
        → AdMapix API
          → H5 Result Page ← User views in browser
          → Video Delivery  ← User receives in WeChat
```

---

## 📄 License

MIT License — free to use, modify, and distribute.

---

<div align="center">

**AdMapix** — *Ad intelligence at your fingertips.*

Built by [Miaozhisheng](https://miaozhisheng.tech/)

</div>
