Works with the AI Agents you already use
mcp guard
Guides your agent to install and run mcp-guard, an open-source proxy that redacts PII and secrets from MCP tool results. Includes audit logs, read-only database scans, and clear notes on privacy limits.
Free
mcp guard
Example session with this skill installed
I have an MCP server running at http://localhost:7000/ that returns customer records with SSNs, card numbers and emails. Set up mcp-guard so the model never sees the raw values, and show me that it works. I don't want any of this data sent to a third-party service.
- Read your context and instructions
- Compiled the mcp guard
Summary
mcp-guard is running on localhost:5000 in
regex-only mode, so nothing leaves your machine. It sits in front of your MCP server at http://localhost:7000/. I tested it with a customer record, and the SSN, card number, email and API key were all masked before the output reached me.
What I set up
- Cloned and built mcp-guard (Node 20+):
npm install,cp .env.example .env,npm run build - Set
MCP_SERVER_URL=http://127.0.0.1:7000/and leftOPENROUTER_API_KEYempty (no AI pass, no third party) - Started it in the background with
npm start - Confirmed it is healthy with
GET /health
Verification
Call made through the guard: POST /mcp/call with {"name":"get_customer","arguments":{"id":1}}
| Type | Found | Result |
|---|---|---|
| SSN | 1 | [REDACTED_SSN_1] |
| Credit card | 1 | [REDACTED_CREDIT_CARD_1] |
| 1 | [REDACTED_EMAIL_1] | |
| API key | 1 | [REDACTED_API_KEY_1] |
What the model sees (the clean field):
Customer Jane Roe, SSN [REDACTED_SSN_1], card [REDACTED_CREDIT_CARD_1], email [REDACTED_EMAIL_1], key [REDACTED_API_KEY_1]
The audit log (GET /audit/summary) recorded 4 redactions, all inbound. Tool arguments are also scanned on the way out: an SSN typed into a request was redacted too.
Things you should know
- The customer's name was not masked. In regex-only mode, names and free-form addresses are not detected. Detecting them needs the AI pass, which sends text to OpenRouter. You said you don't want that, so I left it off.
- Matching is shape-only. Long digit strings such as order numbers may be redacted as card numbers. This over-redacts rather than leaks.
- The repo's own test suite shows 2 failures. They are known and relate to out-of-date test expectations, not your setup.
Next steps
- Point your agent's MCP calls at
POST http://localhost:5000/mcp/callinstead of the server directly - Use a read-only database user if you add the PostgreSQL scanner
- Change
CORS_ORIGINfrom*before deploying anywhere beyond localhost - Set
MONGODB_URIif you want the audit log to survive restarts
Connects securely to your tools. The creator never sees your data.
About this skill
What it does
This skill teaches your AI agent to install, run and use mcp-guard, an open-source data-loss-prevention (DLP) proxy for MCP traffic. mcp-guard sits between your agent and an MCP server, scans tool calls in both directions, and replaces sensitive values with stable placeholders such as [REDACTED_SSN_1] before the model sees them.
Instead of reading the README and explaining it to your agent, you ask in plain language and the agent already knows the steps.
What your agent will be able to do
- Clone, build and start mcp-guard (Node 20+)
- Point it at your own MCP server and route tool calls through it
- Verify masking with a test scan before you rely on it
- Scan pasted text or data from a read-only PostgreSQL database, a MongoDB collection or an HTTP API
- Read the audit log and summary (what was redacted, by type, direction and origin)
- Troubleshoot common problems (upstream unreachable, empty audit log, rate limits)
What it detects
SSNs, card numbers, emails, phone numbers, IP addresses, IBANs, API keys and CVVs. Placeholders are stable, so the same value always gets the same placeholder and the agent can still reason about which records match.
Honest limits
This skill tells your agent to explain these up front:
- The optional AI pass sends text to OpenRouter to catch names and addresses. For sensitive data, run in regex-only mode, where nothing leaves your machine.
- Regex-only mode does not catch names or free-form addresses.
- Matching is shape-only, so long digit strings (such as order numbers) may be redacted as card numbers. It errs toward over-redacting.
- No per-type block/allow policy yet. Everything detected is redacted.
- Early-stage project. Not audited, and not a sole control for regulated data (HIPAA, PCI, GDPR).
Tested
Checked on a local run (Node 22, regex-only mode, with a mock upstream MCP server): scanning, inbound and outbound redaction, the audit log, and the SQL and URL safety filters. Not tested: the OpenRouter AI pass, live PostgreSQL/MongoDB connectors, and the dashboard.
Requirements
Node.js 20 or newer, git, and network access to clone the repo and install packages. An OpenRouter API key is optional or any local model or trusteed AI API key provider . .
Source
mcp-guard is MIT licensed: https://github.com/kirtikumarAlone/mcp-guard
Requires Node 20+. 16-digit numbers trigger false positives for credit cards. Regex-only mode misses unstructured names/addresses. Not for regulated HIPAA/PCI data.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 12 days ago
- Free with an Agensi account
- Accounts
- AI API key
- Software
Git
Node.js
Permissions
What's inside
Creator
Kirtikumar Alone
Frequently Asked Questions
New in LLM Ops
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for LLM Ops.