PII Shield for LangChain
ai.piishield/pii-shield
Redact names, IDs, emails, phones and card numbers before they reach the model; restore them after.
client:LangChain
transport:streamable-http
tools:6
Install PII Shield in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"pii-shield": {
"transport": "streamable_http",
"url": "https://piishield.ai/mcp",
}
})
tools = await client.get_tools()
get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs