Skip to main content
Glama
README.md
# review-reply

<!-- mcp-name: io.github.omar-alsamman/review-reply -->

> MCP server for drafting professional replies to local-business reviews. Exposes 2 tools to help a small business answer Google reviews quickly and consistently.

Local businesses get reviews every day and answer them late, generically, or not at all. This server drafts a paste-ready reply in seconds — specific to what the reviewer actually said, never inventing discounts, staff names, refunds or promises, and always flagging 1–2 star reviews for a human to follow up.

**Free. No API keys. No network calls at runtime. Works fully offline.**

## Tools

| Tool | What it does |
|---|---|
| `draft_review_reply` | Draft a professional reply to one review (under 600 characters, paste-ready for Google), plus escalation flag, suggested follow-up, and what-not-to-say guidance. |
| `classify_review` | Triage a review: positive / mixed / negative band, sentiment score, detected topics, escalation flag, priority. |

`draft_review_reply` inputs: `review_text` (required), `rating` 1–5 (required), `business_name` (required), `business_type` (optional, e.g. "restaurant"), `tone` (optional: `warm` / `professional` / `apologetic`, default `warm`), `reviewer_name` (optional).

Safety rules in every draft:

- Never invents facts — no fake staff names, discounts, refunds or promises.
- Never admits legal fault, never blames the reviewer, never argues.
- 1–2 star reviews always flag `escalation_needed: true` and require human review before posting.

## Installation

Requires Python 3.10+.

```bash
git clone https://github.com/omar-alsamman/review-reply-mcp.git
cd review-reply-mcp
python -m pip install --upgrade "pip>=26.2"   # pip 24.0 has 6 known CVEs (PYSEC-2026-1795, -1796, -2875, -2876, -196, -3721); 26.2+ clears them all
pip install -r requirements.txt
python server.py
```

## Configuration

No configuration. No environment variables, no API keys, no accounts.

| Variable | Required | Description |
|---|---|---|
| — | — | None. The server is self-contained. |

## Usage

### Claude Desktop

Add to your Claude Desktop config (`claude_desktop_config.json`):

```json
{
  "mcpServers": {
    "review-reply": {
      "command": "python",
      "args": ["/absolute/path/to/review-reply-mcp/server.py"]
    }
  }
}
```

### Example

Review: *"Waited 40 minutes, staff were rude, and we were overcharged. Never going back."* — 1 star, Mario's Pizzeria (restaurant)

Reply drafted:

> Thank you for bringing this to our attention. We're very sorry — the wait should have been much better, and we understand your frustration. We take this seriously and would like the chance to make it right. Please reach out to us directly so we can look into it. — The team at Mario's Pizzeria

With `escalation_needed: true` and follow-up: owner/manager to contact the reviewer privately within 24 hours.

## Development

```bash
python test_review_reply.py   # unit tests + live MCP stdio smoke test
```

## Security

- No network calls at runtime, no API keys, no environment variables, no shell execution, no dynamic code evaluation.
- `pip-audit` (2026-11-12, v1.0.1): no known vulnerabilities in the server or its runtime dependencies (mcp 1.30.0 tree clean). The 6 CVEs an earlier scan flagged (PYSEC-2026-1795, -1796, -2875, -2876, -196, -3721) were all in pip 24.0 itself — the installer, not a shipped dependency — and are cleared by installing with pip 26.2+ (see Installation above).

## Pricing

Free. A paid tier (if ever offered) would only add bulk triage / tone presets — the free draft tool stays free. No paid tier exists today.

## License

MIT — see [LICENSE](LICENSE).

TDQS

A3.7/5.0

Scored across 2 tools

Disambiguation5/5

The two tools occupy clearly separate stages of a workflow: classification/triage versus reply drafting. Their names and descriptions make it obvious which to call when, with no overlapping purpose or risk of misselection.

Naming Consistency5/5

Both tools follow a clean verb_noun snake_case pattern (classify_review, draft_review_reply). The convention is consistent and the verbs accurately reflect each action.

Tool Count3/5

Two tools is on the thin side, but the server's scope is deliberately narrow: triage and reply for a single review. Each tool earns its place, though the surface is borderline minimal for a standalone server.

Completeness4/5

The classify-then-draft lifecycle for a single review is fully covered, with escalation and follow-up guidance included in the output. Minor gaps remain: no tool to fetch/pull a review or to post/log the approved reply, which agents would need to work around.