Shield logo

Shield

by AperionAI

Local MCP proxy that blocks risky agent actions, pins tool catalogs, scans content, and supports approvals and audit logs.

Install Shield

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "aperionai-shield": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-postgres"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

npx -y @modelcontextprotocol/server-postgres

No response to initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

AperionAI/shield places a local guardrail between AI coding agents and MCP servers, covering both stdio and Streamable HTTP connections. It evaluates tool calls against safety rules for operations such as destructive SQL, filesystem deletion, force-pushes, privilege escalation, cloud changes, and reverse shells, then blocks, requests approval, or allows the call with a warning. It also protects the MCP supply chain by pinning tool catalogs on first use and scanning tool descriptions and results for poisoning or prompt injection. Reach for it when an agent needs access to real development or infrastructure tools but destructive actions and untrusted MCP content require an enforcement point.

Use cases

  • Block destructive SQL, shell, Git, and filesystem operations before execution
  • Protect MCP tool catalogs from unauthorized replacement
  • Scan tool descriptions and results for poisoning or prompt injection
  • Require approval before credential-related network egress
  • Monitor and restore agent security hooks

Key features

  • Local proxy for stdio and Streamable HTTP MCP servers
  • Rule-based blocking, approval gates, and warning banners
  • TOFU tool-catalog pinning
  • Tool-description and tool-result scanning
  • MCP pre-install scanning and process sandboxing
  • Reversible secret cloaking

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

24/24 checks healthy over the last 105d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 2d ago via OSV.dev · @modelcontextprotocol/server-postgres (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars13Stargazers on the source repository.
Last commit10d agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Directory activity7 viewsConfig copies, upvotes, and views on AllMCPs.

How Shield works

What AperionAI/shield does

AperionAI/shield is a local policy enforcement layer for AI coding agents. It sits between an agent and the MCP servers that provide access to databases, Git hosting, shells, filesystems, and other systems. The proxy handles local stdio servers and remote MCP servers exposed through Streamable HTTP.

The main decision point is an MCP tools/call request. Shield checks the requested operation against safety rules and can deny it before the downstream server receives the call, pause for human approval, or permit it with a warning. Its rule coverage includes destructive SQL, Git operations, filesystem changes, credential access, reverse shells, privilege escalation, cloud and Kubernetes administration, Docker, IAM, anti-forensics, NoSQL and search systems, host-security controls, and Windows or PowerShell activity.

How it works

Shield also examines traffic in the opposite direction. On first observation, it can record a tool catalog as a trusted baseline and identify later changes that may indicate a supply-chain replacement. Tool descriptions are checked for poisoning patterns, while returned tool data is inspected for prompt injection.

The binary can additionally audit an MCP server before it is connected with --scan, and isolate the server process at the operating-system level with --sandbox. Secret cloaking lets an agent refer to configured credentials through {{cloak:NAME}}; Shield substitutes the value only when forwarding a request and removes it from returned data so the secret is not placed in the model context.

For supported agent hooks, Shield can enforce decisions before and after tool activity. Post-tool checks can record credential-shaped data and use that state to ask before a later network transfer. Rules also cover attempts by an agent to modify Shield's hooks or disable its protections.

Setup and configuration

Shield is distributed as a single binary. The project documents installation through a shell command and also publishes a container image. It requires Rust 1.75 or newer when building from source.

The agent-hook installation command configures supported pre- and post-tool events. A separate guard process watches hook configuration, MCP configuration, and agent rule files; it can restore a removed Shield hook and notify the user. User-level launchd or systemd units can be installed for continuous watching, or the guard can run once.

Policy can be adjusted through shieldset configuration. Examples include setting a minimum file size for the optional large-read offload rule and defining allowed egress hosts. The Smartflow control-plane mode can distribute organization policy and send audit data upstream while using an existing identity provider.

Tools and capabilities

  • Intercept MCP calls over stdio and Streamable HTTP.
  • Apply safety rules with block, approval, or warning outcomes.
  • Pin tool catalogs and scan descriptions and results.
  • Pre-scan MCP servers and sandbox their processes.
  • Cloak configured secrets at the forwarding boundary.
  • Install and monitor agent hooks, including IDE-specific events.
  • Record approvals and security-relevant audit activity.

Limitations and notes

Shield is intended for local enforcement around AI coding agents; its behavior depends on the policy rules, hook events, and downstream MCP transport being configured correctly. Some host events can request a decision before execution but cannot reject an already completed post-tool action, so post-event checks use session state to influence subsequent calls. The project lists support for Cursor, Claude Code, Cline, Continue, Windsurf, and Zed.

The repository license badge identifies the project as Elastic License 2.0.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Shield

AperionAI/shield is an MCP server guardrail that connects AI coding agents to local stdio or remote Streamable HTTP MCP servers. Its main tools are request enforcement, destructive-call blocking, approval gates, tool-catalog pinning, prompt-injection scanning, secret cloaking, audit logging, and optional pre-install scanning or process sandboxing.

Install the single binary with the project's shell installer, or use its published container image. From there, configure Shield between the agent and its MCP servers; supported agent hooks can be added with the agent-hook installation command.

Yes, AperionAI/shield lists Cursor as a supported client. Its documented integration includes Cursor hook events for MCP and shell activity, including pre-tool decisions and post-tool checks.

It evaluates each intercepted `tools/call` against safety rules before forwarding it to the downstream MCP server. Depending on policy, Shield denies the operation, asks for approval, or allows it while attaching a warning.

Yes, it scans tool descriptions and tool results for tool poisoning and prompt injection. Tool catalogs can also be pinned on first use so later changes can be identified as possible supply-chain tampering.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewShield AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/aperionai-shield?style=directory)](https://allmcps.com/mcp/aperionai-shield)
HTML Embed
<a href="https://allmcps.com/mcp/aperionai-shield"><img src="https://allmcps.com/api/badge/aperionai-shield?style=directory" alt="Shield on AllMCPs" /></a>