Skip to main content
Glama
README.md
# PawMotion MCP Server (`pawmotion-mcp-server`)

Official **Model Context Protocol (MCP)** server for [PawMotion](https://pawmotion.video) — browse 69 AI pet video scenes, freeze your cat or dog's likeness with the 3-candidate identity engine, and render 1080×1920 watermark-free pet videos directly from Claude Desktop, Cursor, Windsurf, or any MCP client.

- **Website:** [pawmotion.video](https://pawmotion.video)
- **Developer Docs:** [pawmotion.video/developers](https://pawmotion.video/developers)
- **Custom Pet Portraits:** [pawmotion.video/ai-pet-portrait](https://pawmotion.video/ai-pet-portrait)
- **Talking Dog AI:** [pawmotion.video/talking-dog](https://pawmotion.video/talking-dog)
- **Pricing (Pay-as-you-go, no subscription):** [pawmotion.video/pricing](https://pawmotion.video/pricing)
- **Companion Agent Skill + CLI:** [github.com/gaoshan111/pawmotion-agent-skill](https://github.com/gaoshan111/pawmotion-agent-skill)

---

## Option 1: Remote Streamable HTTP (Zero Install)

Connect directly to the hosted PawMotion MCP endpoint on Cloudflare Workers:

```json
{
  "mcpServers": {
    "pawmotion": {
      "url": "https://pawmotion.video/api/mcp",
      "headers": {
        "Authorization": "Bearer sk_your_api_key"
      }
    }
  }
}
```

> `pawmotion_list_scenes` is public and works without an API key. Generate your API key at [pawmotion.video/settings/apikeys](https://pawmotion.video/settings/apikeys).

---

## Option 2: Local `stdio` Mode (`npx`)

Requires Node.js >= 20 (zero runtime dependencies). Supports uploading local pet photos (`photo_paths`) and optional local render polling (`wait_for_completion: true`).

### Claude Desktop / Cursor / Windsurf Config

```json
{
  "mcpServers": {
    "pawmotion": {
      "command": "npx",
      "args": ["-y", "pawmotion-mcp-server"],
      "env": {
        "PAWMOTION_API_KEY": "sk_your_api_key"
      }
    }
  }
}
```

---

## Available Tools

| Tool | Cost | Description |
| --- | --- | --- |
| `pawmotion_list_scenes` | 0 Cr (Public) | Filter 69 scenes by `pet_type` (`cat`/`dog`/`duo`), `category`, `duration` (`5s`/`10s`/`15s`), or keyword |
| `pawmotion_check_credits` | 0 Cr | Check account balance, expiry dates, and API key daily credit guardrail (default 200 Cr/day) |
| `pawmotion_list_pets` | 0 Cr | List saved pets & frozen identity versions for instant reuse |
| `pawmotion_create_pet_candidates` | 15 Cr | Upload 1–5 pet photos and generate 3 likeness candidates (Studio, Golden Hour, Royal Heritage) |
| `pawmotion_freeze_pet` | 0 Cr | Permanently freeze the user-selected candidate (1/2/3) into a reusable pet identity |
| `pawmotion_generate_video` | 25 / 50 / 75 Cr | Render a watermark-free 1080×1920 pet video (supports `dry_run: true`, optional `script`, and `Idempotency-Key`) |
| `pawmotion_get_video_status` | 0 Cr | Poll render status (`queued` / `rendering` / `succeeded` / `failed_refunded`) and get the MP4 URL |

## Built-in Safety & Cost Guardrails

- **Automatic refunds on failure:** Any failed portrait or video render automatically refunds credits back to your ledger.
- **Dry-run cost preview:** Pass `dry_run: true` to `pawmotion_generate_video` to verify exact credit cost and quota without spending credits.
- **Idempotency & daily key cap:** Supports `Idempotency-Key` to prevent duplicate charges on retries and enforces a daily per-key spend guardrail.
- **Privacy:** Raw uploaded photos auto-delete after 30 days; confirmed frozen pet identities remain saved until you delete them.

## License

MIT © [PawMotion](https://pawmotion.video)