Llm Guard Privacy Gateway
@Amywith
About Llm Guard Privacy Gateway
No overview available yet
Basic information
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"llm-guard-mcp": {
"command": "python",
"args": [
"-m",
"spacy",
"download",
"zh_core_web_sm",
"--index-url",
"https://pypi.tuna.tsinghua.edu.cn/simple/"
]
}
}
}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 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.
More AI & Agents MCP servers
mcp-hfspace MCP Server 🤗
evalstateMCP Server to Use HuggingFace spaces, easy configuration and Claude Desktop mode.
LinkedIn MCP Server
stickerdanielOpen-source MCP server for LinkedIn. Give Claude and any MCP-compatible AI agent access to profiles, companies, jobs, and messages.
Unreal Engine Generative AI Support Plugin
prajwalshettydevUnreal Engine plugin for LLM/GenAI models & MCP UE5 server. OpenAI GPT-5, Deepseek R1, Claude Opus/Sonnet, Gemini 3, Grok 4, Alibaba Qwen, Kimi, ElevenLabs TTS, Inworld, OpenRouter, Groq, GLM, Ollama, Local, Meshy, Tripo, Hunyuan3D, Rodin, fal, Dashscope, Seedream. NPC AI, agenti
Gemini MCP Server
aliargunMCP server implementation for Google's Gemini API
MCP-LLM Bridge
patruffBridge between Ollama and MCP servers, enabling local LLMs to use Model Context Protocol tools
Comments