Back to Home
botzrDev icon

mcp-guard

Verified Safe

by botzrDev

Overview

Security gateway for Model Context Protocol (MCP) servers, providing authentication, authorization, rate limiting, and observability.

Installation

Run Command
mcp-guard run

Environment Variables

  • RUST_LOG
  • STRIPE_SECRET_KEY
  • MCP_GUARD_AUTH_OAUTH_CLIENT_ID
  • MCP_GUARD_AUTH_OAUTH_CLIENT_SECRET
  • MCP_GUARD_AUTH_OAUTH_REDIRECT_URI
  • MCP_GUARD_DATABASE_URL
  • MCP_GUARD_LICENSE_KEY

Security Notes

The project demonstrates a strong focus on security. Key strengths include robust input validation (SSRF and command injection prevention for upstream connections), API key hashing with constant-time comparison, comprehensive OAuth 2.1 support with PKCE and state protection, and explicit configuration for mTLS trusted proxies to prevent header spoofing. Error messages are sanitized to avoid exposing internal details. Hardcoded production secrets are avoided, as evidenced by a past fix documented in `CHANGES.md`. The overall architecture and practices implemented contribute to a secure gateway solution.

Similar Servers

Stats

Interest Score27
Security Score9
Cost ClassLow
Avg Tokens1
Stars1
Forks0
Last Update2026-01-07

Tags

SecurityGatewayAccess ControlAPI ProtectionObservability