About Privacyguard MCP
Privacyguard MCP is an MCP server published by huanwang0 in the AI category: privacy-aware MCP server that routes sensitive prompts to local LLMs (Ollama).
The repository has 1 stars and 0 forks, with the last commit 7 months ago. Six months or more without a commit doesn't mean the server is broken, but check the open issues before depending on it in production.
Install
git clone https://github.com/huanwang0/privacyguard-mcpThis server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.
Ask AI
Ask AI about Privacyguard MCP
Powered by Claude · Grounded in docs
Security checks
- ✓README presentThe repository ships documentation.
5 checks have not been run yet.
README
PrivacyGuard MCP
Private AI agent infrastructure for routing sensitive prompts to local LLMs.
What it does
- Classifies prompt text for sensitive keywords (PII/PHI/secrets)
- Routes sensitive prompts to local Ollama via MCP tool calls
- Emits JSON-RPC responses over stdio (MCP transport)
- Provides audit log retrieval from
audit.log
Status
This project is an early MVP. It currently exposes MCP tools over stdio only.
Available tools:
analyze_privacyroute_to_localget_audit_logs
Prerequisites
# Rust toolchain
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
# Ollama (for local generation tool)
brew install ollama
ollama pull phi3:mini
ollama serve
Build
cargo build --release
Binary path:
./target/release/privacyguard-mcp
MCP client configuration example
{
"mcpServers": {
"privacyguard": {
"command": "/absolute/path/to/target/release/privacyguard-mcp"
}
}
}
Local smoke test (stdio JSON-RPC)
./target/release/privacyguard-mcp <<'JSON'
{"jsonrpc":"2.0","id":1,"method":"initialize","params":{}}
{"jsonrpc":"2.0","id":2,"method":"tools/list","params":{}}
{"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"analyze_privacy","arguments":{"text":"My password is secret123"}}}
JSON
Development
cargo check
cargo test
Roadmap
- Replace keyword matching with stronger detection policies
- Add persistent consent workflow (
grant/deny) - Add integration tests for JSON-RPC/MCP behavior
- Add configurable policy and audit paths
License
MIT. See LICENSE.
Contributing
See CONTRIBUTING.md for development and PR guidelines.
README copy captured when this server was indexed; it may lag the repository. The original is authoritative.