Works with the AI Agents you already use
MCP Security Gateway Hardening
Turn any stdio MCP server into a zero-trust, policy-enforced endpoint for Claude Code, Cursor, and Copilot without relying on system prompts as a firewall.
Free
MCP Security Gateway Hardening
Example session with this skill installed
Audit our local ops MCP server (read_log, read_ticket, restart_service), generate a strict policy.json with Path Jail + operator approval gate, and wrap it for Cursor.
- Read your context and instructions
- Compiled the mcp security gateway
Summary
Generated a default-deny zero-trust policy (default_deny_unlisted: true) with Path Jail on read_log, <UNTRUSTED_TOOL_OUTPUT> isolation on read_ticket, and operator approval + rate cap (5/min) on restart_service.
| Tool | Mode | Path Jail | Untrusted Output | Rate Limit |
|---|---|---|---|---|
| read_log | read_only | filename | true | 30/min |
| read_ticket | read_only | - | true | 30/min |
| restart_service | mutating (approval) | - | false | 5/min |
Validator result: pass=3 warn=3 fail=0 · audit_verify: ok=True.
Connects securely to your tools. The creator never sees your data.
About this skill
Harden any local or third-party Model Context Protocol (MCP) stdio server with deterministic zero-trust controls instead of fragile system-prompt guardrails. What this skill gives your AI agent:
- 4-layer security audit workflow stopping Tool Poisoning, Rug-Pull schema mutations (SHA-256 pinning), Path Traversal, covert exfiltration arguments, and Indirect Prompt Injection.
- Standalone zero-dependency Python 3.11+ validator (
scripts/validate_mcp_policy.py) that audits declarativepolicy.jsonfiles and verifies SHA-256 hash-chainedaudit.jsonllogs offline. - Drop-in wrapper snippets for Claude Desktop, Cursor, and hardened non-root Docker Compose (
UID 10001,read_only,cap_drop: [ALL],network_mode: none). Official open-source MIT gateway repository: Author & B2B security consulting:
Supports only stdio transport for MCP. Requires Python 3.11+ with no third-party dependencies. Does not support SSE or WebSocket MCP servers.
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 9 days ago
- Free with an Agensi account
- Software
- Security Gateway MCP
Python
Permissions
What's inside
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.