# 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 US and UK 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** (live values; see https://whichportal.com/merchants/nike.md):
```json
{
  "best_overall": { "portal": "<site>", "rate": "<rate>", "effective_value_per_dollar": "<cents>" },
  "all_options": [ { "portal": "<site>", "rate": "<rate>", "value": "<cents>" } ],
  "rates_updated": "<ISO date>"
}
```

## 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
