HOL Guard logo

HOL Guard

Reviews AI agent actions locally, detects security risks, and manages policy-based approvals with evidence and decision history.

Install HOL Guard

Run the project’s own setup commands, in order.

Setup steps from the project

HOL Guard installs with its own commands rather than a config we can generate, so these are copied as-is. Run them in order in a terminal. Source: github.com

  1. 1. Install
    pipx install hol-guard
    
  2. 2. Configure
    hol-guard init
    

Overview

HOL Guard is a local-first security layer delivered through a stdio MCP server for reviewing AI agent actions before execution. It covers shell commands, file access, package installations, MCP tool calls, prompts, and tool results, looking for risks such as secret exposure, destructive operations, prompt injection, and supply-chain issues. Policies can allow, block, or pause actions for approval, with decisions recorded as local receipts. Use it when an agent needs controlled access to a workstation or when you need an approval trail; an optional Guard Cloud connection adds shared history, team policy, and fleet management.

Use cases

  • Review agent shell commands before execution
  • Approve or deny sensitive AI actions
  • Scan workspace dependencies for supply-chain risks
  • Inspect MCP integrations and decision history

Key features

  • Policy-based allow, block, and approval decisions
  • Local receipts and approval history
  • MCP server and tool-call inspection
  • Shell, file, package, and prompt protection
  • Agent artifact inventory and AI bill of materials
  • Plugin and MCP integration scanning

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.

37/37 checks healthy over the last 63d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 21d ago via OSV.dev

Adoption & maintenance

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

GitHub stars1.1kStargazers on the source repository.
Last commitTodayMost recent push to the default branch.
Directory activity6 viewsConfig copies, upvotes, and views on AllMCPs.

How HOL Guard works

What HOL Guard does

HOL Guard adds security review and approval workflows around AI agents, tools, plugins, skills, MCP servers, and package installations. It examines actions before they run and applies policy outcomes: allow, block, or request approval.

The protected surfaces include shell commands, file operations, package-manager activity, local agent artifacts, MCP server configurations, MCP tool calls, prompts, and tool results. Detection covers destructive operations, access to sensitive files, credential exposure, suspicious outbound commands, prompt injection, and supply-chain risks.

The project also ships plugin-scanner, a separate command-line utility for checking agent plugins, skills, and MCP integrations before publication. Its checks include security findings, quality reporting, authoring feedback, install-surface validation, and runtime-readiness checks.

How it works

The guard connects to agents through native hooks, managed MCP proxies, and launch integrations. When a supported event occurs, it evaluates the action against the configured policy. A native prompt or the approval center can receive requests that need a human decision.

Local receipts preserve decisions for later review. The command-line interface and local dashboard provide access to pending approvals, decision history, tracked artifacts, protection status, and integration diagnostics. Coverage varies by agent because enforcement and approval behavior depend on the events each integration exposes.

Optional Guard Cloud connectivity provides shared history, team policy, and fleet management in addition to local operation.

Setup and configuration

HOL Guard requires Python 3.10 or newer, pipx, and a matching native runtime. Install it with:

bash
pipx install hol-guard
hol-guard init

The initialization wizard discovers supported agents and guides protection setup. It requests confirmation before setup changes such as opening the dashboard, installing agent integrations, or connecting optional cloud services. Verify the installation with hol-guard status, and use hol-guard update for updates.

Agents can also be configured explicitly. For example:

bash
hol-guard install codex
hol-guard run codex --dry-run
hol-guard run codex

The dry run records the current artifact state before launch.

Tools and capabilities

  • Review shell commands and file access before execution.
  • Inspect MCP server configuration and MCP tool calls through supported hooks and proxies.
  • Evaluate package-manager operations using supply-chain intelligence.
  • Inventory plugins, skills, tools, and agent configuration changes.
  • Detect prompt injection and sensitive content in supported events.
  • Manage pending approvals and inspect recorded receipts.
  • Test or explain command classifications without executing commands.
  • Scan workspaces and export an AI bill of materials in JSON format.
  • Run plugin-scanner checks against agent integrations before publication.

Limitations and notes

Supported agent coverage includes Codex, Claude Code, GitHub Copilot CLI, Cursor, Cline, Gemini CLI, Grok, Hermes, Kimi Code, Pi, oh-my-pi, OpenClaw, OpenCode, Antigravity, ZCode, and Devin. Enforcement, approval delivery, and failure behavior differ by integration.

The project requires a compatible native runtime in addition to Python and pipx. Windows ARM64 users should check the platform-specific setup guidance. External command-coverage contributions require explicit opt-in, while core protections remain enabled.

Reviews

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

Frequently Asked Questions about HOL Guard

HOL Guard is an MCP server that connects AI agents to local security review and approval workflows. Its main tools cover shell commands, file access, package installs, MCP tool calls, prompts, and tool results, detecting risky behavior and recording allow, block, or approval decisions for later inspection.

Install it with `pipx install hol-guard`, then run `hol-guard init`. The setup wizard discovers supported agents and guides protection configuration. Python 3.10 or newer, `pipx`, and a matching native runtime are required.

Yes, Cursor is listed among the supported AI agents. Install HOL Guard, run its initialization wizard, and follow the agent integration setup. Enforcement and approval behavior depend on the events exposed by the Cursor integration.

Yes, HOL Guard can allow, block, or request approval for reviewed actions according to policy. Pending requests can be managed with the CLI or approval center, and resulting decisions are recorded as local receipts.

No, HOL Guard runs locally without an account. An optional Guard Cloud connection adds shared history, team policy, and fleet management for users who need those capabilities.

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 PreviewHOL Guard AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/hol-guard?style=directory)](https://allmcps.com/mcp/hol-guard)
HTML Embed
<a href="https://allmcps.com/mcp/hol-guard"><img src="https://allmcps.com/api/badge/hol-guard?style=directory" alt="HOL Guard on AllMCPs" /></a>