ltchurik

MCP Jail — Security skill for Claude Code

Security community

Run any MCP server in a jail: egress allowlist, filesystem scope, per-tool allow/deny/ask policy, rug-pull lock on tool definitions, JSONL audit log.

How to install MCP Jail

This entry records only its repository, not the path inside it, so there is no exact command to give. Open ltchurik/mcp-jail and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What MCP Jail does

Run any MCP server in a jail: egress allowlist, filesystem scope, per-tool allow/deny/ask policy, rug-pull lock on tool definitions, JSONL audit log. Linux namespaces via bubblewrap. Drop-in for Claude Desktop, Cursor, Claude Code.

Alternatives in Security

  • Token Scan — Meme coin and token security scan — checks for rug pull vectors (hidden mint, honeypot, fee manipulation, LP l 3.8k ★
  • AegisGate — Open-source security gateway for LLM APIs — prompt injection detection, PII redaction, dangerous response sani 62 ★
  • Claude Guardrails — Hardened security configuration for Claude Code; permission deny rules, shell hooks, and prompt injection defe 33 ★

README

mcp-jail

**Run any MCP server in a jail.** Egress allowlist, filesystem scope, per-tool policy, rug-pull lock, audit log, and a local dashboard to watch and approve what your servers do.

[![CI](https://github.com/ltchurik/mcp-jail/actions/workflows/ci.yml/badge.svg)](https://github.com/ltchurik/mcp-jail/actions/workflows/ci.yml) [![Release](https://img.shields.io/github/v/release/ltchurik/mcp-jail?display_name=tag&color=2f5fd0)](https://github.com/ltchurik/mcp-jail/releases/latest) [![Go](https://img.shields.io/badge/go-1.27-00ADD8)](go.mod) [![License](https://img.shields.io/github/license/ltchurik/mcp-jail?color=1f8a4c)](LICENSE)

Static scanners tell you a server *looks* suspicious. `mcp-jail` makes sure it *can't do* anything your policy doesn't allow: at runtime, for any server, in any language, without touching its code.

Claude / Cursor / Claude Code ──stdio──▶ mcp-jail ──stdio──▶ MCP server (in a jail)
                                           │
                                   policy · lock · audit
                                           │
                                      mcp-jail ui

mcp-jail dashboard: a pending approval for github create_issue, server cards with lock state and a rug-pull waiting for approval, a 24-hour report with decisions over time, calls per tool, hosts reached or blocked and the reasons things were refused
mcp-jail ui: approve a headless call, catch a rug-pull, see what every server did in the last 24 hours.

Contents