Skip to main content

Sentor AI MCP Server — entity-based sentiment analysis tools for Claude, Cursor, and any MCP-compatible AI assistant

Project description

Sentor MCP Server

Connect Sentor's entity-based sentiment analysis to Claude, Cursor, Windsurf, and any MCP-compatible AI assistant.

What It Does

Once installed, your AI assistant gains four tools:

Tool What it does
analyze_sentiment Score sentiment toward specific entities in any text
cluster_documents Group 5+ documents by topic automatically (BERTopic)
name_topic Generate a 3-5 word label for each cluster using LLM
health_check Verify Sentor API is reachable

Example prompt after setup: "Analyze these 50 customer reviews for sentiment toward our checkout flow and shipping speed, then cluster them by topic."

Requirements

Installation

pip install sentor-mcp

Claude Desktop Setup

Add to your claude_desktop_config.json:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "sentor": {
      "command": "sentor-mcp",
      "env": {
        "SENTOR_API_KEY": "your_api_key_here"
      }
    }
  }
}

Restart Claude Desktop. You'll see the Sentor tools available in the tool selector.

Cursor / Windsurf Setup

Add to your MCP config file (.cursor/mcp.json or equivalent):

{
  "mcpServers": {
    "sentor": {
      "command": "sentor-mcp",
      "env": {
        "SENTOR_API_KEY": "your_api_key_here"
      }
    }
  }
}

Usage Examples

Once connected, use natural language:

Sentiment analysis:

"Use Sentor to analyze the sentiment of these reviews toward Apple and iPhone: [paste reviews]"

Clustering:

"I have 200 customer support tickets. Use Sentor to cluster them by topic and name each cluster."

Full pipeline:

"Analyze sentiment in these 100 reviews for 'delivery' and 'packaging' entities, then cluster them and name each cluster."

Tool Reference

analyze_sentiment(docs, language="en")

docs = [
    {
        "doc_id": "review_1",
        "doc": "The delivery was fast but the packaging was terrible.",
        "entities": ["delivery", "packaging"]
    }
]
# Returns: predicted_label, probabilities, per-sentence details

cluster_documents(documents, language="en")

documents = [
    {"doc_id": "r1", "text": "Great product quality", "entities": ["product"]},
    # ... at least 5 documents required
]
# Returns: clusters with cluster_id, documents, top_words

name_topic(cluster_id, documents, top_words, entities, language="en")

# Pass the cluster data from cluster_documents response:
name_topic(
    cluster_id=0,
    documents=cluster["documents"],
    top_words=cluster["top_words"],
    entities=["BrandName"]  # exclude your brand from the topic label
)
# Returns: topic_name (e.g. "Shipping Delay Complaints")

health_check()

# Returns: { "status": "healthy", "version": "...", "llm_status": "available" }

Rate Limits

Plan Per Minute Per Month
Free 3 300
Starter 60 3,000
Growth 200 15,000
Business 500 60,000
Enterprise 10,000 Unlimited

Remote Deployment (HTTP/SSE)

To run as a hosted server:

docker build -t sentor-mcp .
docker run -e SENTOR_API_KEY=your_key -p 8080:8080 sentor-mcp

The server exposes SSE at http://localhost:8080/sse and can be connected to AI tools that support remote MCP servers.

Links

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sentor_mcp-1.0.1.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sentor_mcp-1.0.1-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file sentor_mcp-1.0.1.tar.gz.

File metadata

  • Download URL: sentor_mcp-1.0.1.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for sentor_mcp-1.0.1.tar.gz
Algorithm Hash digest
SHA256 9199b009d9a7de56c4a9abf8f2f73720be86e05cb55a37339551511e4b584785
MD5 20b622366ef85f09a7cbfe137998bef5
BLAKE2b-256 c8989c9954bfb895562994bc7eeb71339ae9fa42d638f482c3e1fe7bc38b91d4

See more details on using hashes here.

File details

Details for the file sentor_mcp-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: sentor_mcp-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for sentor_mcp-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0f260abb88691e9e24d4bc71f331df51872d6fedcfe2b4e501fde6e3f24922b7
MD5 f47694ccd4422fd39dd21eb2bbae227b
BLAKE2b-256 d25094796625a0774b3b600a06137ccf7d8b42c8b6b83fd7eb665817d7a0f493

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page