Metadata-Version: 2.5
Name: custovox-emotion
Version: 1.0.2
Summary: Emotion detection MCP for English customer text: 7 labels (joy, anger, fear, sadness, surprise, disgust, neutral). By custovox.ai
Project-URL: Homepage, https://custovox.ai
Project-URL: Repository, https://github.com/jeremdecustovox/custovox-ai
Project-URL: Documentation, https://custovox.ai
Author: CustoVox.ai
License: MIT
Keywords: customer-experience,custovox,emotion-detection,mcp,nlp,transformers
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.10
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Requires-Python: >=3.10
Requires-Dist: mcp<2,>=1.0.0
Requires-Dist: torch>=2.0.0
Requires-Dist: transformers>=4.40.0
Description-Content-Type: text/markdown

# custovox-emotion

<!-- mcp-name: io.github.jeremdecustovox/custovox-emotion -->

MCP server that detects the emotion in English customer text, among 7 labels: joy, anger, fear, sadness, surprise, disgust, neutral.

## Quick start
```bash
pip install custovox-emotion
claude mcp add custovox-emotion -- uvx custovox-emotion
# Then ask Claude: "What emotion is in: 'Third time my order is late, this is unbelievable.'"
# Returns: dominant_emotion, confidence, scores of all 7 emotions
```
Models are downloaded from Hugging Face on first start, then everything runs locally.

## Tools
- `detect_emotion(text)`: `dominant_emotion`, `confidence`, `all_emotions` (score of each of the 7 labels)
- `detect_emotion_batch(texts)`: dominant emotion and confidence for up to 50 texts

## Limits
- **English only** (`j-hartmann/emotion-english-distilroberta-base`). For other languages, use [custovox-sentiment](https://pypi.org/project/custovox-sentiment/).
- Each text is read up to its first 512 characters.
- Use it to sort and spot patterns in text, not to judge a single customer.

## About
Built by [CustoVox.ai](https://custovox.ai). This free server runs on your machine with open models.
The hosted platform at [custovox.ai](https://custovox.ai) covers 5 languages, voice, text and images, with reports and integrations. From $89/month.
