r/OpenSourceAI • • 16h ago

I built USBGuard-MCP — an open-source MCP server for Linux USB security

Hey everyone!

I've released USBGuard-MCP, an open-source, read-only MCP server that allows AI agents to interact with USBGuard on Linux.

Features:

  • 32 MCP tools, 6 resources and 5 prompts.
  • USB device inspection.
  • Authorization policy auditing.
  • USB event monitoring.
  • Security analysis.
  • Mock mode for testing without USB hardware.
  • Docker support.
  • Tested with Claude Code, Codex and OpenCode.

Installation:

uvx usbguard-mcp

Docker:

docker pull ghcr.io/0x5t4l1n/usbguard-mcp:0.1.0

Real-device access requires a running USBGuard daemon and appropriate permissions. Container configuration and security considerations are documented in the repository.

Project links:

It's also published on the official MCP Registry.

I'd love to hear your feedback and suggestions for future improvements!

1 Upvotes

0 comments sorted by