KeyNeg MCP Server
以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →
**The first general-purpose sentiment analysis tool for AI agents.**
KeyNeg MCP Server brings enterprise-grade sentiment analysis to Claude, ChatGPT, Gemini, and any AI assistant that supports the Model Context Protocol (MCP).
Features
- **95+ Sentiment Labels** - Comprehensive negative sentiment taxonomy
- **Keyword Extraction** - Identify specific complaints and issues
- **Batch Processing** - Analyze multiple texts efficiently
- **Tiered Access** - Free, Trial, Pro, and Enterprise tiers
- **Offline Capable** - No external API calls, runs locally
- **Fast** - Rust-powered inference via ONNX Runtime
Installation
Or install from source:
Prerequisites
1. **KeyNeg-RS** - The sentiment analysis engine:
2. **ONNX Model** - Export or download the model:
Configuration
Claude Desktop
Add to your Claude Desktop config (~/.config/claude/claude_desktop_config.json on macOS/Linux or %APPDATA%\Claude\claude_desktop_config.json on Windows):
Claude Code
Environment Variables
| Variable | Description | Default |
|----------|-------------|---------|
| KEYNEG_MODEL_PATH | Path to ONNX model directory | ~/.keyneg/models/all-mpnet-base-v2 |
| KEYNEG_LICENSE_KEY | License key for Pro/Enterprise | None (Free tier) |
Available Tools
analyze_sentiment
Analyze sentiment in text and return top sentiment labels with scores.
**Returns:**
extract_keywords
Extract negative keywords and phrases from text. *(Pro/Enterprise only)*
**Returns:**
full_analysis
Combined sentiment and keyword analysis.
**Returns:**
batch_analyze
Analyze multiple texts at once. *(Trial/Pro/Enterprise only)*
get_usage_info
Check your current tier and usage.
get_sentiment_labels
Get the full taxonomy of sentiment labels.
Pricing Tiers
| Tier | Price | Sentiment Labels | Keywords | Batch | Daily Calls |
|------|-------|------------------|----------|-------|-------------|
| **Free** | $0 | 3 | No | No | 100 |
| **Trial** | $0 (30 days) | 95+ | Yes | Yes | 1,000 |
| **Pro** | Contact us | 95+ | Yes | Yes | Unlimited |
| **Enterprise** | Contact us | 95+ | Yes | Yes | Unlimited |
Get a license at grandnasser.com
Use Cases
- **Customer Support** - Triage tickets by sentiment urgency
- **Content Moderation** - Flag negative/toxic content
- **HR Analytics** - Analyze employee feedback
- **Market Research** - Understand customer opinions
- **Social Listening** - Monitor brand sentiment
Example Prompts for Claude
Once configured, you can ask Claude things like: