Skip to main content
Glama
TasteRay Business MCP Server

TasteRay Business MCP Server

Official
by tasteray
README.md
# TasteRay Business — Recommendation API & ForMe MCP Server (`@tasteray/business-mcp`)

Official Model Context Protocol (MCP) server for **TasteRay Business**:

- **TasteRay Business Recommendation API** ([api.tasteray.com](https://api.tasteray.com)) — stateless, cold-start catalog ranking and explainable item recommendations for any vertical (`streaming`, `ecommerce`, `books`, `games`, `travel`, `food`, `custom`).
- **TasteRay ForMe Widget** ([forme.tasteray.com](https://forme.tasteray.com)) — drop-in `"Is this for me?"` product-page verdict widget (`~16 KB` gzipped, Shadow DOM, free up to 1,000 checks/domain/month).

> **B2B vs. Consumer MCP:** This package (`@tasteray/business-mcp`) is built for **developers, merchants, and catalog operators** integrating TasteRay Business APIs or the ForMe widget into their products and coding workflows. The unscoped consumer package name `@tasteray/mcp` (`tasteray/mcp`) is reserved for the future personal **TasteRay: Your Culture & Entertainment Guide** consumer server.

---

## Quick Start (Works Immediately — No API Key Required)

When `TASTERAY_API_KEY` is omitted, `recommend_catalog_items`, `explain_catalog_item`, and `discover_catalog_rows` automatically call TasteRay's keyless demo endpoints (`/v1/demo/*`, IP rate-limited to 5 req/min and 25 req/day).

Set `TASTERAY_API_KEY` (get a free key with 1,000 requests/month at [api.tasteray.com/generate-key](https://api.tasteray.com/generate-key)) to switch automatically to authenticated `/v1/*` endpoints with full count, grounding, and usage reporting.

### Claude Code

```bash
claude mcp add tasteray-business -- npx -y github:tasteray/business-mcp
```

With an API key:

```bash
claude mcp add -e TASTERAY_API_KEY=reco_live_... tasteray-business -- npx -y github:tasteray/business-mcp
```

### Cursor / Claude Desktop / Windsurf (`mcp.json`)

```json
{
  "mcpServers": {
    "tasteray-business": {
      "command": "npx",
      "args": ["-y", "github:tasteray/business-mcp"],
      "env": {
        "TASTERAY_API_KEY": ""
      }
    }
  }
}
```

### OpenAI Codex (`~/.codex/config.toml`)

```toml
[mcp_servers.tasteray-business]
command = "npx"
args = ["-y", "github:tasteray/business-mcp"]
```

---

## Tools Exposed

| Tool | Backend Endpoint | Auth | What it does |
|---|---|---|---|
| `recommend_catalog_items` | `POST /v1/recommend` or `/v1/demo/recommend` | Optional | Ranks candidate catalog items (`items`) or generates recommendations with written `why_match`, `key_factors`, `potential_concerns`, and `confidence`. |
| `explain_catalog_item` | `POST /v1/explain` or `/v1/demo/explain` | Optional | Deep itemized fit breakdown (`summary`, `taste_alignment`, `constraint_satisfaction`, `unique_factors`, `potential_concerns`, `alternatives`). |
| `discover_catalog_rows` | `POST /v1/demo/discover` | Keyless | Generates a mood/theme discovery row strictly over a newline-separated catalog list, dropping any unsent title. |
| `get_api_usage` | `GET /v1/usage` | `TASTERAY_API_KEY` | Checks active plan tier, monthly allowance, and current request usage. |
| `generate_forme_widget_snippet` | Deterministic local generator | None | Outputs validated HTML, Shopify Liquid (`main-product.liquid`), WooCommerce PHP (`functions.php`), or React embed code for `https://forme.tasteray.com/widget.js`. |

## Resources Exposed

| URI | Source |
|---|---|
| `tasteray-business://docs/api` | Live Markdown reference from `https://api.tasteray.com/docs.md` |
| `tasteray-business://docs/forme` | Live Markdown install guide from `https://forme.tasteray.com/install.md` |

---

## Related Resources

- **API Docs (HTML / Markdown):** [api.tasteray.com/docs](https://api.tasteray.com/docs) · [api.tasteray.com/docs.md](https://api.tasteray.com/docs.md) · [api.tasteray.com/ai-assistant-guide.md](https://api.tasteray.com/ai-assistant-guide.md)
- **Starter Examples & Cold-Start Benchmark:** [github.com/tasteray/business-api-examples](https://github.com/tasteray/business-api-examples)
- **ForMe Widget:** [forme.tasteray.com](https://forme.tasteray.com) · [forme.tasteray.com/install](https://forme.tasteray.com/install)
- **B2B Architecture Guides:** [www.tasteray.com/business](https://www.tasteray.com/business)

## Development

```bash
bun install
bun run verify
```

## License

MIT — Copyright (c) 2026 TasteRay, Inc.