# WhichPortal

The shopping portal and rewards aggregator built for AI agents.

## MCP Server

**Endpoint**: https://whichportal.com/mcp (no authentication required)

Connect your AI assistant to compare cashback and rewards rates across 15+ US shopping portals. All points and miles converted to cents per dollar for true effective value.

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

### Example: Agent Query

**Agent asks**: "Best portal for Nike?"

**WhichPortal returns**:
```json
{
  "best_overall": {
    "portal": "TopCashback",
    "rate": "3% cash back",
    "effective_value_per_dollar": "3.00¢"
  },
  "all_options": [
    {"portal": "TopCashback", "rate": "3%", "value": "3.00¢"},
    {"portal": "BeFrugal", "rate": "2.5%", "value": "2.50¢"},
    {"portal": "Rakuten", "rate": "2%", "value": "2.00¢"},
    {"portal": "AAdvantage", "rate": "3x miles", "value": "4.50¢"}
  ]
}
```

## API & Content Formats

**REST API**: JSON by default, Markdown with `.md` suffix or `Accept: text/markdown` header
**WebMCP**: Browser-based MCP for web apps
**Discovery**: /llms.txt, /.well-known/mcp, /.well-known/agent.json

### Available Tools

- `compare_portals` - Compare all rates for a merchant
- `best_portal` - Get the single best recommendation
- `search_merchants` - Find merchants by name or domain
- `find_by_url` - Identify merchant from their website URL
- `get_portal` - Get portal information
- `list_portal_bonuses` - Current bonus offers

### Example

```javascript
// Compare rates for Nike
const result = await mcp.call('compare_portals', { 
  merchant: 'nike',
  basket_value: 100 
});

// Result shows:
// - Best overall rate (by effective value)
// - Best pure cashback
// - Best points/miles option
// - Estimated earnings for $100 purchase
// - All portal options sorted by value
```

## Quick Links

- [Search Merchants](/merchants)
- [MCP Documentation](/docs/mcp.md)
- [WebMCP Guide](/docs/webmcp.md)
- [All Portals](/portals)

## Learn More

- [How It Works](/docs/how-it-works.md)
- [MCP Integration Guide](/docs/mcp.md)
- [API Documentation](/docs/api.md)
- [About](/about)

Built with ❤️ for the AI agent era. Last updated: 2026-11-27
