MCP.so
ログイン
S

Sensitive Lexicon Mcp

@zephyrpersonal

Sensitive Lexicon Mcp について

A Model Context Protocol (MCP) server that provides sensitive word detection and filtering capabilities for Large Language Models (LLMs), powered by the comprehensive https://github.com/konsheng/Sensitive-lexicon Chinese word database.

基本情報

カテゴリ

その他

トランスポート

stdio

公開者

zephyrpersonal

投稿者

Zhang Xin

設定

以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。

{
  "mcpServers": {
    "sensitive-lexicon": {
      "command": "npx",
      "args": [
        "sensitive-lexicon-mcp"
      ]
    }
  }
}

ツール

ツールは検出されませんでした

ツールは README から自動的に抽出されます。メンテナーは ## Tools という見出しの下に記載することで、このタブに反映できます。

概要

What is Sensitive Lexicon Mcp?

Sensitive Lexicon Mcp is an MCP (Model Context Protocol) server built on the Sensitive-lexicon sensitive word library. It provides large language models (LLMs) with sensitive word detection and filtering capabilities, supporting multiple categories such as political, pornography, violence, and advertisement. It is designed for developers and users who need to moderate or redact sensitive content in AI applications.

How to use Sensitive Lexicon Mcp?

Install globally via npm install -g sensitive-lexicon-mcp or locally in a project. Configure it as an MCP server in supported clients (Claude Desktop, Continue.dev, Cline, Zed, Cursor) by adding a JSON entry with npx sensitive-lexicon-mcp. The server exposes tools like detect_sensitive_words and filter_sensitive_words that accept text and optional categories or replacement parameters. Environment variables (SENSITIVE_UPDATE_INTERVAL, SENSITIVE_CACHE_SIZE, DEBUG) allow customization.

Key features of Sensitive Lexicon Mcp

  • Detects sensitive words in any given text.
  • Filters (replaces) sensitive words with a customizable string.
  • Supports 15 categories of sensitive words (political, violence, pornography, etc.).
  • Real‑time lexicon updates fetched from a GitHub repository.
  • Standard MCP protocol for easy integration with any MCP‑compatible client.
  • Provides helper tools: get_categories and get_word_count.

Use cases of Sensitive Lexicon Mcp

  • Automatically check user‑generated content for sensitive terms before displaying it.
  • Redact sensitive words in LLM outputs before exposing them to users.
  • Integrate into CI/CD pipelines to scan code comments or documentation for sensitive language.
  • Batch‑process a large corpus of text files to flag or sanitize sensitive content.
  • Build a content moderation layer inside a custom chat application or agent.

FAQ from Sensitive Lexicon Mcp

How do I install Sensitive Lexicon Mcp?

You can install it globally via npm install -g sensitive-lexicon-mcp or locally by cloning the Git repository and running npm install && npm run build.

What tools does Sensitive Lexicon Mcp provide?

It provides four tools: detect_sensitive_words, filter_sensitive_words, get_categories, and get_word_count. Each accepts JSON parameters and returns structured results.

Which sensitive word categories are supported?

The server includes 15 categories: covid19, gfw, other, subversive, advertisement, political, violence, livelihood, weapons, pornography-type, pornography, supplementary, corruption, tencent, and illegal-urls.

Can I customize the replacement text when filtering?

Yes. The filter_sensitive_words tool accepts an optional replacement parameter (default "***"). You can provide any string, like "[已屏蔽]".

Does the server require any external authentication or API key?

No. Sensitive Lexicon Mcp runs locally using the standard MCP stdio transport; it does not require any authentication or external API key. The lexicon is fetched from a public GitHub repository.

コメント

「その他」の他のコンテンツ