NLP Tools - Sentiment, NER, Toxicity & Language Detection

io.github.fasuizu-br由 GitHub 账号 fasuizu-br 发布v1.1.0更新于 Oct 24, 2026

Toxicity, sentiment, NER, PII detection, and language identification tools

已验证Streamable HTTP可网页运行安全与监控AI 与机器学习

概览

AI 生成的概览

远程 MCP 服务器,提供毒性、情感、命名实体识别、PII 检测和语言识别等 NLP 工具,用于分析提交的文本。

可以做什么
  • 按六个类别为文本打毒性分数,取值 0.0 到 1.0
  • 判断文本情感为正面或负面并给出置信度,可选通用或领域专用模型
  • 抽取人名、组织、地点及其他实体,附位置偏移与置信度
  • 检测邮箱、电话、社保号、信用卡、IP 与人名等个人信息,可选返回脱敏文本
  • 识别文本语言,覆盖 176 种语言并返回 ISO 639-1 代码
  • 查询 NLP API 服务的健康状态与已加载模型
适用场景
适合需要审核或分流用户生成内容、判断情感倾向、从文档中抽取实体、在共享前筛查个人数据,或按语言对内容分类的场景。
运行要求
需要一个远程 streamable HTTP 端点;清单中未声明任何包、环境变量或请求头。随附 README 称其所列的网关主机已停用,且当前 API 需要来自 Brainiall 账户的 Authorization Bearer API 密钥。
安装前请注意
README 指出该服务器所列网关端点属于旧版且已停用,可能无法响应,使用前应确认当前端点。提交的文本会发送到第三方托管服务,涉及机密或个人内容时需谨慎。README 还说明当前 API 需要 API 密钥,且不得提交到代码库。

安装

在 SourceWeft 中

  1. 打开 控制台中的 NLP Tools - Sentiment, NER, Toxicity & Language Detection,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.fasuizu-br%2Fnlp-tools/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "nlp-tools-sentiment-ner-toxicity-languag": {
      "type": "http",
      "url": "https://apim-ai-apis.azure-api.net/mcp/nlp/mcp"
    }
  }
}

README

该仓库没有 README。

工具

6

analyze_toxicity

Analyze Toxicity

Analyze text for toxic content. Returns scores for 6 categories: toxic, severe_toxic, obscene, threat, insult, identity_hate. Each score is 0.0-1.0. BERT-based classifier with sub-15ms latency on GPU. Args: text: Text to analyze for toxicity (hate speech, insults, threats). Returns: dict with keys: - toxic (float 0-1): Overall toxicity score - severe_toxic (float 0-1): Severe toxicity score - obscene (float 0-1): Obscenity score - threat (float 0-1): Threat score - insult (float 0-1): Insult score - identity_hate (float 0-1): Identity-based hate score - is_toxic (bool): Whether text exceeds toxicity threshold

输入参数text必填

analyze_sentiment

Analyze Sentiment

Analyze text sentiment. Returns positive/negative classification with confidence scores. DistilBERT-based with sub-10ms latency. Multiple domain-specific model variants available. Args: text: Text to analyze for sentiment (positive/negative). model: Model variant -- 'general' (default), 'financial', 'twitter'. Returns: dict with keys: - label (str): 'positive' or 'negative' - score (float 0-1): Confidence score for the predicted label - scores (dict): All label scores (positive, negative)

输入参数text必填model

extract_entities

Extract Entities

Extract named entities (NER) from text. Identifies persons, organizations, locations, and miscellaneous entities with span offsets and confidence scores. BERT-NER based with sub-50ms latency. Args: text: Text to extract named entities from. Returns: dict with keys: - entities (list): Detected entities, each containing: - text (str): Entity text - label (str): Entity type (PER, ORG, LOC, MISC) - start (int): Character offset start - end (int): Character offset end - score (float 0-1): Confidence score - count (int): Total number of entities found

输入参数text必填

detect_pii

Detect PII

Detect personally identifiable information (PII) in text. Finds emails, phone numbers, SSNs, credit cards, IP addresses, and person names. Optionally returns redacted text with PII replaced by type labels (e.g. [EMAIL], [PHONE]). BERT-NER + regex ensemble. Args: text: Text to scan for personally identifiable information. redact: If true, return redacted text with PII replaced by [TYPE]. Returns: dict with keys: - pii_found (list): Detected PII items, each containing: - text (str): The PII value found - type (str): PII type (EMAIL, PHONE, SSN, CREDIT_CARD, IP, PERSON) - start (int): Character offset start - end (int): Character offset end - score (float 0-1): Detection confidence - count (int): Total PII items found - redacted_text (str|null): Text with PII replaced (when redact=true) - has_pii (bool): Whether any PII was detected

输入参数text必填redact

detect_language

Detect Language

Detect the language of text. Supports 176 languages using fastText. Sub-1ms inference latency. Returns ISO 639-1 codes with confidence scores. Args: text: Text to identify the language of. top_k: Number of top language predictions to return (default: 3). Returns: dict with keys: - language (str): Top predicted language ISO 639-1 code - confidence (float 0-1): Confidence for top prediction - predictions (list): Top-k predictions, each with: - language (str): ISO 639-1 code - confidence (float 0-1): Prediction confidence

输入参数text必填top_k

check_nlp_service

Check NLP Service

Check health status of NLP API services and loaded models. Returns: dict with keys: - status (str): 'healthy' or error state - models (dict): Loaded model status per capability - version (str): API version

无需输入参数。

版本历史

1
  1. v1.1.0最新Sep 16, 2026

评分

已满足适用检查项的 85%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分

    请声明包含 README 的 GitHub 仓库,或在 OAuth 受保护资源元数据中提供 resource_documentation。

  • 许可证10 分