Sensitive Lexicon Mcp
@zephyrpersonal
About 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.
Basic information
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"sensitive-lexicon": {
"command": "npx",
"args": [
"sensitive-lexicon-mcp"
]
}
}
}Tools
No tools detected
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
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_categoriesandget_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.
More Other MCP servers
Unity MCP ✨
justinpbarnettUnity MCP acts as a bridge between AI assistants and your Unity Editor. Give your LLM tools to manage assets, control scenes, edit scripts, and automate tasks within Unity.
Inbox Zero AI MCP
elie222The world's best AI personal assistant for email. Open source app to help you reach inbox zero fast.
Nginx UI
0xJackyYet another WebUI for Nginx

EverArt
modelcontextprotocolModel Context Protocol Servers
XcodeBuildMCP
cameroncookeA Model Context Protocol (MCP) server and CLI that provides tools for agent use when working on iOS and macOS projects.
Comments