Agent Guard MCP
Protects Git-tracked files from AI-agent deletion while allowing removal of untracked files and directories.
Install Agent Guard MCP
Run the project’s own setup commands, in order.
Setup steps from the project
agent-guard-mcp installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com
go build -o agent-guard-mcp .go install github.com/kavachh/agent-guard-mcp@latestclaude mcp add agent-guard -- /path/to/agent-guard-mcp
Overview
Use cases
- Delete generated build output without touching tracked source
- Preview agent cleanup operations with dry-run mode
- Check whether temporary paths are protected before removal
- Summarize tracked and untracked content in a workspace
Key features
- Git-aware deletion protection
- Safe file and directory removal
- Dry-run support
- Protection explanations
- Tracked and untracked directory counts
- Static Go binary
Tools3
What Agent Guard MCP lets your agent do. Expand a tool for its parameters.
Security & health
What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.
Recent health check succeeded.
Adoption & maintenance
Factual signals from GitHub, npm, and our automated checks — not a rating.
How Agent Guard MCP works
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 Agent Guard MCP
Related MCP servers
Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.
AllMCPs Directory Badge
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/agent-guard-mcp)<a href="https://allmcps.com/mcp/agent-guard-mcp"><img src="https://allmcps.com/api/badge/agent-guard-mcp?style=directory" alt="Agent Guard MCP on AllMCPs" /></a>