Llm Guard Privacy Gateway
@Amywith
Llm Guard Privacy Gateway について
概要はまだありません
基本情報
設定
以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。
{
"mcpServers": {
"llm-guard-mcp": {
"command": "python",
"args": [
"-m",
"spacy",
"download",
"zh_core_web_sm",
"--index-url",
"https://pypi.tuna.tsinghua.edu.cn/simple/"
]
}
}
}ツール
ツールは検出されませんでした
ツールは README から自動的に抽出されます。メンテナーは ## Tools という見出しの下に記載することで、このタブに反映できます。
概要
What is Llm Guard Privacy Gateway?
A privacy protection gateway based on the MCP (Model Context Protocol) protocol. It detects and filters sensitive information in LLM applications—automatically masking Chinese names, phone numbers, emails, intercepting API keys and RSA private keys, and blocking custom blacklist words. It wraps these capabilities as MCP tools, returning JSON results.
How to use Llm Guard Privacy Gateway?
Install dependencies with pip install -r requirements.txt. Use the Python function sanitize_prompt_mcp or the LLMSanitizer class. To run as an MCP server, execute python mcp_server.py or use the provided Docker image.
Key features of Llm Guard Privacy Gateway?
- PII masking: identifies Chinese names, phone numbers, and emails.
- Key interception: detects API keys, Alibaba Cloud AccessKeys, and RSA private keys.
- Commercial blocking: predefined blacklist words trigger an intercepted status.
- MCP encapsulation: logic exposed as MCP tools returning structured JSON.
Use cases of Llm Guard Privacy Gateway?
- Sanitizing user prompts before sending to an LLM to prevent data leakage.
- Filtering sensitive information in enterprise chat applications.
- Protecting against accidental exposure of API keys or private keys.
- Enforcing content policy by blocking predefined blacklist terms.
FAQ from Llm Guard Privacy Gateway
What happens if spaCy model fails to download?
The system automatically falls back to built‑in regex detection. Accuracy may slightly decrease, but the server continues to run.
Does data processing require an internet connection?
No. Once dependencies are installed, all data filtering and detection is performed locally. The MCP server can run fully offline.
How can I customize the blacklist words?
Edit the LLMSanitizer class in llm_guard.py to modify the blacklist vocabulary or other detection rules.
What error handling mechanisms are in place?
All exceptions are caught gracefully. For example, if the presidio library fails, the system uses built‑in regex patterns without crashing the entire application.
Where is user data processed?
All data processing happens locally on the machine running the server, even when deployed via Docker. No sensitive data is sent to external services.
「AI とエージェント」の他のコンテンツ
Model Context Protocol for Unreal Engine
chongdashuEnable AI assistant clients like Cursor, Windsurf and Claude Desktop to control Unreal Engine through natural language using the Model Context Protocol (MCP).
Gemini MCP Server
aliargunMCP server implementation for Google's Gemini API
Intervals.icu MCP Server
mvilanovaModel Context Protocol (MCP) server for connecting Claude and ChatGPT with the Intervals.icu API.
meGPT - upload an author's content into an LLM
adriancoCode to process many kinds of content by an author into an MCP server
Just Prompt - A lightweight MCP server for LLM providers
dislerjust-prompt is an MCP server that provides a unified interface to top LLM providers (OpenAI, Anthropic, Google Gemini, Groq, DeepSeek, and Ollama)
コメント