Osseni94/keyneg-mcp

📊 Data Platforms
0 Views
0 Installs

🐍 🏠 - Enterprise-grade sentiment analysis with 95+ labels, keyword extraction, and batch processing for AI agents

Quick Install

One-Click IDE Configuration
claude_desktop_config.json
{
  "mcpServers": {
    "osseni94-keyneg-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "osseni94-keyneg-mcp"
      ]
    }
  }
}
Or

Using an AI coding agent (Claude Code, Cursor, etc.)? Copy a ready-made prompt that tells it to fetch the setup instructions and install this server for you.

Documentation Overview

KeyNeg MCP Server

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

pip install keyneg-mcp

Or install from source:

git clone https://github.com/Osseni94/keyneg-mcp
cd keyneg-mcp
pip install -e .

Prerequisites

  1. KeyNeg-RS - The sentiment analysis engine:

    pip install keyneg-enterprise-rs --extra-index-url https://pypi.grandnasser.com/simple
    
  2. ONNX Model - Export or download the model:

    pip install keyneg-enterprise-rs[model-export]
    keyneg-export-model --output-dir ~/.keyneg/models/all-mpnet-base-v2
    

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):

{
  "mcpServers": {
    "keyneg": {
      "command": "keyneg-mcp",
      "env": {
        "KEYNEG_MODEL_PATH": "~/.keyneg/models/all-mpnet-base-v2"
      }
    }
  }
}

Claude Code

claude mcp add keyneg keyneg-mcp

Environment Variables

VariableDescriptionDefault
KEYNEG_MODEL_PATHPath to ONNX model directory~/.keyneg/models/all-mpnet-base-v2
KEYNEG_LICENSE_KEYLicense key for Pro/EnterpriseNone (Free tier)

Available Tools

analyze_sentiment

Analyze sentiment in text and return top sentiment labels with scores.

analyze_sentiment("The service was terrible and staff was rude", top_n=5)

Returns:

{
  "sentiments": [
    {"label": "poor customer service", "score": 0.7234},
    {"label": "hostile", "score": 0.5123},
    {"label": "unprofessional", "score": 0.4567}
  ]
}

extract_keywords

Extract negative keywords and phrases from text. (Pro/Enterprise only)

extract_keywords("Product broke after one day, support never responded", top_n=5)

Returns:

{
  "keywords": [
    {"keyword": "broke", "score": 0.8234},
    {"keyword": "never responded", "score": 0.7123}
  ]
}

full_analysis

Combined sentiment and keyword analysis.

full_analysis("Hotel was dirty, staff unhelpful, food cold")

Returns:

{
  "sentiments": [...],
  "keywords": [...],
  "overall": "strongly_negative"
}

batch_analyze

Analyze multiple texts at once. (Trial/Pro/Enterprise only)

batch_analyze(["Great!", "Terrible service", "It was okay"])

get_usage_info

Check your current tier and usage.

get_usage_info()

get_sentiment_labels

Get the full taxonomy of sentiment labels.

get_sentiment_labels()

Pricing Tiers

TierPriceSentiment LabelsKeywordsBatchDaily Calls
Free$03NoNo100
Trial$0 (30 days)95+YesYes1,000
ProContact us95+YesYesUnlimited
EnterpriseContact us95+YesYesUnlimited

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:

  • "Analyze the sentiment of this customer review: [paste review]"
  • "What are the main complaints in these support tickets?"
  • "Is this feedback positive or negative?"
  • "Extract the key issues from this employee survey response"

Development

# Install dev dependencies
pip install -e ".[dev]"

# Run tests
pytest

# Run server locally
python -m keyneg_mcp.server

License

MIT License - The MCP server is open source.

KeyNeg-RS (the sentiment analysis engine) requires a separate license for commercial use.

Support

Author

Kaossara Osseni Grand Nasser Enterprises

Related MCP Servers

1luvc0d3/metabase-mcp

📇 🏠 - MCP server connecting Claude to Metabase with 28 tools for natural language data analysis, dashboard management, SQL queries, and automated insights. Features SQL guardrails, rate limiting, and audit logging.

📊 Data Platforms0 views
aegis-dq/aegis-dq

🐍 🏠 🍎 🪟 🐧 - Agentic data quality framework that runs structured rules against warehouses (DuckDB, BigQuery, Athena, Databricks, Postgres), diagnoses failures with LLM root cause analysis, and proposes SQL remediations. Every LLM decision is audit-logged with cost and latency.

📊 Data Platforms0 views
alanpcf/brasil-data-mcp

📇 🏠 🍎 🪟 🐧 - Brazilian public data for AI agents — companies (CNPJ), addresses (CEP), banks (BACEN), national holidays — via BrasilAPI. No auth, no API key. Install: npx -y brasil-data-mcp.

📊 Data Platforms0 views
Alessandro114/scala-mcp-server

📇 ☁️ 🍎 🪟 🐧 - Search and enrich data from 250M+ companies across 50+ countries. Company lookup by name, VAT, or ID, NACE sector search, and financial data from official EU business registries. Free tier: 50 lookups/month. Install: npx scala-mcp-server.

📊 Data Platforms0 views

Engagement

Views
0
Installs
0
Upvotes
0

Views and upvotes are unique per visitor network (hashed IP). Installs count copy actions.

Status

Health: Not checked yet

We have not completed a health check for this listing yet.

No check timestamp yet.

Unclaimed listing (imported or pending owner verification). Claim it →
★ Spotlight Slot

Feature Your MCP Server

Get maximum visibility for your server across our directory, search results, and detail pages.

Spotlight Your Server

Own this project?

This directory is pre-filled from public sources. Claim via GitHub README, site badge, or DNS TXT to get the verified badge and attach your website.

Claim this listing

Promote this listing

Optional paid placement. Free listings stay free forever.

Share & Embed

Add our SVG badge (dark/light directory styles) or embeddable widget to your site.