Skip to main content
Glama

MCP-сервер SentiSift

Официальный сервер Model Context Protocol (MCP) для SentiSift. Позволяет ИИ-хостам, совместимым с MCP (Claude Desktop, Cursor, VS Code, Continue и другие), вызывать API SentiSift для модерации комментариев и аналитики как встроенный инструмент.

Что это дает

После установки ваш ИИ-ассистент сможет:

  • Анализировать комментарии прямо в ходе беседы: «Прогони эти 50 комментариев через SentiSift и покажи мне ботов и распределение тональности».

  • Проверять состояние аккаунта: «Какой у меня баланс в SentiSift и когда продлевается подписка?»

  • Получать исторические результаты: «Покажи мне историю тональности для вчерашней статьи на example.com/breaking-news».

  • Самостоятельно проверять статус сервиса: «API SentiSift готов к работе или модели все еще загружаются?»

Код не требуется. Ассистент вызывает инструменты через MCP и сообщает результаты.

Related MCP server: Semanticscholar Universal MCP Server

Доступные инструменты

Инструмент

Описание

analyze_comments

Отправка пакета комментариев вместе с URL статьи; получение меток ботов/спама, тональности, меток коммерческого контента, сводки модерации и (в тарифах Pro/Enterprise) Intelligence + чередующиеся комментарии Influence.

get_balance

Текущий баланс комментариев, тарифный план, функциональные флаги, активные гранты, статус подписки, статистика Influence.

get_health

Статус API SentiSift: готов ли он к работе или все еще загружает модели.

get_article_results

Исторические оценки комментариев для URL статьи (в тарифах Pro/Enterprise сохраняется полная история; в Free/Starter возвращается только состояние буфера).

Установка

Вам понадобятся Python 3.10+ и API-ключ SentiSift. Бесплатные ключи (1000 комментариев, без привязки карты) доступны на sentisift.com/pricing.

Рекомендуемый способ: uvx (без установки, всегда актуальная версия)

uv запускает опубликованные Python-приложения без постоянной установки. Это способ без установки.

# One-time: install uv (mac/linux)
curl -LsSf https://astral.sh/uv/install.sh | sh

# Verify it works (Ctrl-C after a few seconds; the server is meant to be
# launched by your AI host, not run in a terminal).
SENTISIFT_API_KEY=sk_sentisift_... uvx sentisift-mcp

Альтернативный способ: pip install

pip install sentisift-mcp
sentisift-mcp   # run manually to verify

Настройка хоста

У каждого ИИ-хоста свой файл конфигурации. Выберите свой:

Claude Desktop

Отредактируйте файл конфигурации:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

  • Windows: %APPDATA%\Claude\claude_desktop_config.json

Добавьте запись SentiSift в mcpServers:

{
  "mcpServers": {
    "sentisift": {
      "command": "uvx",
      "args": ["sentisift-mcp"],
      "env": {
        "SENTISIFT_API_KEY": "sk_sentisift_your_key_here"
      }
    }
  }
}

Перезапустите Claude Desktop. В левом нижнем углу нового чата должен появиться индикатор нового инструмента. Попробуйте: «Use SentiSift to check my balance».

Cursor

Cursor поддерживает MCP через панель Settings → MCP Servers. Добавьте:

  • Name: sentisift

  • Command: uvx

  • Arguments: sentisift-mcp

  • Environment variables: SENTISIFT_API_KEY=sk_sentisift_your_key_here

Или отредактируйте ~/.cursor/mcp.json напрямую, используя ту же структуру, что и в примере для Claude Desktop выше.

VS Code (с расширением MCP)

Отредактируйте ваш пользовательский файл или файл settings.json рабочей области:

{
  "mcp.servers": {
    "sentisift": {
      "command": "uvx",
      "args": ["sentisift-mcp"],
      "env": {
        "SENTISIFT_API_KEY": "sk_sentisift_your_key_here"
      }
    }
  }
}

Continue.dev

В файле ~/.continue/config.json:

{
  "mcpServers": [
    {
      "name": "sentisift",
      "command": "uvx",
      "args": ["sentisift-mcp"],
      "env": {
        "SENTISIFT_API_KEY": "sk_sentisift_your_key_here"
      }
    }
  ]
}

Любой другой хост, совместимый с MCP

Сервер работает с MCP через stdio. Укажите хосту uvx sentisift-mcp (или sentisift-mcp, если установлено через pip) и установите SENTISIFT_API_KEY в его окружении.

Как общаться с ассистентом

После настройки можно использовать запросы на естественном языке. Примеры:

«Check my SentiSift balance.»

«Run these 20 comments through SentiSift for the article at https://example.com/breaking-story. Here are the comments:» (вставьте их)

«Is the SentiSift API ready right now, or is it still loading?»

«Fetch the processed comments for https://example.com/article-42 from SentiSift.»

Ассистент выбирает нужный инструмент, передает правильные аргументы и суммирует результаты. Если вызов завершается ошибкой, ответ с ошибкой будет содержать глубокую ссылку на соответствующий раздел документации, чтобы ассистент мог исправить ошибку самостоятельно.

Конфиденциальность

  • Сервер отправляет заголовок User-Agent, идентифицирующий его как sentisift-mcp/<version>, чтобы мы могли отличать трафик MCP от прямого трафика SDK в наших логах использования. Другая телеметрия не собирается.

  • Сервер работает локально на вашем компьютере. Он обращается только к api.sentisift.com.

  • Ваш API-ключ остается на вашем компьютере (в конфигурации окружения хоста). Он никогда не записывается на диск этим сервером.

Исходный код

Исходный код и трекер задач: gitlab.com/pickel-fintech/sentisift-sdks.

Ссылки

Лицензия

MIT — см. LICENSE. Сервис API SentiSift, который вызывает этот клиент, регулируется отдельно sentisift.com/terms.html; использование API требует наличия API-ключа с sentisift.com/pricing.

Available Tools

4 tools
analyze_commentsA

Submit a batch of comments to SentiSift for moderation and analysis.

Returns a response with status='buffered' (accepted, not yet analyzed, nothing charged) or status='processed' (full analysis returned).

Processed responses include per-comment sentiment labels (Toxic, Negative, Neutral, Positive, Saccharine), bot/spam flags (the response 'comments' array has those removed), composite scores, and on Professional/Enterprise tiers, crowd-level 'intelligence' (discussion_themes, omega_ratio, sentiment_balance) plus interleaved Influence comments marked with is_influence=true.

Comments are buffered per article until a processing threshold is reached, then all accumulated comments are analyzed together. You are billed only when processing occurs.

Batch size caps: 50 comments per call on the Free tier, 2000 on paid tiers.

Inputs: article_url (required), comments (required), article_text, title, +1 more. Returns: object

get_article_resultsA

Fetch already-processed, scored comments for an article URL.

Does NOT trigger new processing and does NOT generate Influence comments (Influence only appears in analyze_comments responses).

Tier behavior:

  • Free/Starter: returns the buffered state only (processed comments are delivered inline via analyze_comments).

  • Professional/Enterprise: returns the full scored history accumulated across batches.

Use this when the user asks for historical sentiment of an article already submitted previously, or to check how a discussion has evolved since the last analyze_comments call.

Inputs: article_url (required). Returns: object

get_balanceA

Return the current SentiSift balance, tier, usage counters, and subscription state.

Fields of interest:

  • comment_balance: remaining comments across all active grants (FIFO consumed)

  • tier: 'free', 'starter', 'professional', or 'enterprise'

  • features: which capabilities the current key unlocks (moderate, intelligence, influence)

  • comment_grants: active allocations with expiry dates

  • subscription: billing state ('active', 'cancelled', 'past_due') or null for free-tier keys

  • influence_stats: Influence generation history (if feature enabled)

Call this when the user asks about their balance, upcoming renewals, or whether a feature is available on their tier.

Inputs: no named parameters. Returns: object

get_healthA

Check if the SentiSift service is ready to handle requests.

Returns {'status': 'ready'} when models are loaded and requests will be served normally, or {'status': 'loading', 'progress': 0.4} during a cold start (usually 10-60 seconds after a restart).

Call this before a large batch analysis if response latency matters, or when diagnosing 'service appears slow' complaints. The analyze_comments tool handles transient loading states automatically with retries, so this is typically informational.

Inputs: no named parameters. Returns: object

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.7/5.0

    Scored across 4 tools

    Disambiguation5/5

    Each tool addresses a distinct concern: submission/analysis, balance/account state, service health, and historical results. There is no overlap between analyze_comments and get_article_results because the former is for new submissions while the latter retrieves past processed data. Even get_balance and get_health are clearly separated by purpose.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern (analyze_comments, get_balance, get_health, get_article_results). The verbs ('analyze', 'get') and nouns ('comments', 'balance', 'health', 'article_results') are uniformly descriptive and predictable. This makes it easy for an agent to infer functionality from the name alone.

    Tool Count5/5

    With only 4 tools, the server is tightly scoped to its core functionality: analyzing comments, checking balance, checking health, and retrieving results. This is not too thin for a specialized moderation service; each tool covers a necessary operation without redundancy. The small count reduces ambiguity and helps agents avoid over-selection.

    Completeness4/5

    The key operations for the stated purpose (sentiment analysis and moderation) are covered: submit and get processed results, fetch historical results, check account status, and verify service readiness. The only minor gap is the lack of a tool to manage or modify existing submissions (e.g., reprocess or delete), but that is not a typical requirement for this domain. Overall, agents can complete primary workflows without dead ends.

    Maintenance

    ActivitySlowing
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides access to Sentiment402 market sentiment data for global markets, crypto, TradFi, and specific assets, with built-in support for x402 micropayment protocol when API responses require payment.
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides sentiment analysis with emotion detection, confidence scores, and key phrase extraction for single texts or batches up to 20, using pay-per-call via x402 micropayments (USDC on Base L2).
      MIT