SentiSift MCP
SentiSift MCP 服务器
SentiSift 的官方 Model Context Protocol (MCP) 服务器。允许支持 MCP 的 AI 宿主(Claude Desktop、Cursor、VS Code、Continue 等)将 SentiSift 评论审核和智能 API 作为原生工具调用。
此工具的功能
安装后,您的 AI 助手可以:
直接在对话中分析评论:“将这 50 条评论通过 SentiSift 运行,并向我展示机器人评论和情感分布。”
检查您的账户状态:“我的 SentiSift 余额是多少,订阅何时续订?”
获取历史结果:“向我展示昨天关于 example.com/breaking-news 的文章的情感历史。”
自我诊断服务状态:“SentiSift API 是否就绪,还是模型仍在加载中?”
无需编写代码。助手通过 MCP 调用工具并报告结果。
Related MCP server: Semanticscholar Universal MCP Server
公开的工具
工具 | 描述 |
| 提交一批评论及文章 URL,接收机器人/垃圾邮件标记、情感标签、商业内容标记、审核摘要,以及(在 Pro/Enterprise 版中)智能分析 + 交互式影响力评论。 |
| 当前评论余额、等级、功能标志、有效授权、订阅状态、影响力统计数据。 |
| SentiSift API 是否就绪或仍在加载模型。 |
| 文章 URL 的历史评分评论(Pro/Enterprise 保留完整历史记录;Free/Starter 仅返回缓冲区状态)。 |
安装
您需要 Python 3.10+ 和 SentiSift API 密钥。可在 sentisift.com/pricing 获取免费密钥(1,000 条评论,无需信用卡)。
推荐: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宿主配置
每个 AI 宿主都有自己的配置文件。选择您的宿主:
Claude Desktop
编辑配置文件:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%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。您应该会在新聊天的左下角看到一个新的工具指示器。尝试:“使用 SentiSift 检查我的余额。”
Cursor
Cursor 通过 Settings → MCP Servers 面板支持 MCP。添加:
Name:
sentisiftCommand:
uvxArguments:
sentisift-mcpEnvironment 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 的宿主
该服务器通过 stdio 使用 MCP 通信。将您的宿主指向 uvx sentisift-mcp(如果通过 pip 安装则为 sentisift-mcp),并在其环境中设置 SENTISIFT_API_KEY。
如何与助手对话
配置完成后,可以使用自然语言提示。一些示例:
“检查我的 SentiSift 余额。”
“将这 20 条评论通过 SentiSift 运行,用于 https://example.com/breaking-story 这篇文章。评论如下:” (粘贴它们)
“SentiSift API 现在准备好了吗,还是仍在加载?”
“从 SentiSift 获取 https://example.com/article-42 的已处理评论。”
助手会选择正确的工具,传递正确的参数,并总结结果。如果调用失败,错误响应将包含指向相关文档部分的深度链接,以便助手可以自我纠正。
隐私
服务器发送一个
User-Agent标头,将其标识为sentisift-mcp/<version>,以便我们在使用日志中区分 MCP 流量和直接 SDK 流量。没有其他遥测数据。服务器在您的机器上本地运行。它仅调用
api.sentisift.com。您的 API 密钥保留在您的机器上(在宿主的环境配置中)。此服务器绝不会将其记录到磁盘。
源码
源码和问题追踪:gitlab.com/pickel-fintech/sentisift-sdks。
链接
Python SDK (此 MCP 服务器对其进行了封装)
许可证
MIT — 参见 LICENSE。此客户端调用的 SentiSift API 服务受 sentisift.com/terms.html 单独管辖;使用 API 需要来自 sentisift.com/pricing 的 API 密钥。
Available Tools
4 toolsanalyze_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
Scored across 4 tools
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.
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.
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.
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
Related MCP Connectors
Sentiment, language detection, readability, keywords, summaries and profanity filtering
Content moderation for chat and comments: free test keys, message checks, plain-English policies.
Official Perigon news API: articles, stories, companies, journalists, monitors, and stats.
News + social sentiment scoring with our sentiment vocabulary
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides 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
- AlicenseNot gradedqualityDmaintenanceProvides a standardized interface for interacting with Semanticscholar's tools and services through a unified API.4MIT
- AlicenseNot gradedqualityDmaintenanceAlgorithmic text and NLP analysis server providing sentiment, readability, keyword extraction, language detection, stats, and more via REST and MCP.MIT
- AlicenseNot gradedqualityDmaintenanceProvides 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