# ReviewReply MCP Server
An MCP (Model Context Protocol) server that generates professional responses to customer reviews using Claude AI.
## Features
- **Tool: `generate_review_reply`** - Generate 3 variations of professional review responses
- Supports multiple tones: professional, friendly, empathetic, grateful
- Works for any business type
- Handles both positive and negative reviews appropriately
## Installation
```bash
npm install
```
## Configuration
Set your Anthropic API key:
```bash
export ANTHROPIC_API_KEY=your-key-here
```
## Usage
### With Claude Desktop
Add to your Claude Desktop config (`~/Library/Application Support/Claude/claude_desktop_config.json`):
```json
{
"mcpServers": {
"reviewreply": {
"command": "node",
"args": ["/path/to/reviewreply-mcp/src/index.js"],
"env": {
"ANTHROPIC_API_KEY": "your-key-here"
}
}
}
}
```
### Direct Usage
```bash
npm start
```
The server communicates via stdio using the MCP protocol.
## Tool: generate_review_reply
### Inputs
| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `review_text` | string | Yes | The customer review text to respond to |
| `tone` | string | Yes | One of: `professional`, `friendly`, `empathetic`, `grateful` |
| `business_name` | string | Yes | Name/type of business (e.g., "Italian Restaurant") |
| `stars` | number | No | Star rating 1-5 (defaults to 4) |
### Example
```json
{
"review_text": "The food was amazing but service was slow",
"tone": "empathetic",
"business_name": "Italian Restaurant",
"stars": 3
}
```
### Output
Returns 3 response variations formatted as:
```
**Option 1** (empathetic):
Thank you so much for your feedback! We're thrilled you enjoyed our food...
---
**Option 2** (empathetic - variation):
We really appreciate you taking the time to share your experience...
---
**Option 3** (empathetic - alternative):
Your feedback means a lot to us...
```
## Testing
```bash
npm test
```
## License
MIT