mcp-bouncer introduces stdio proxy for MCP tool server security
Key point
The open-source proxy enforces per-server allowlists, normalizes file paths to prevent traversal, and blocks SSRF attempts.
Details
mcp-bouncer acts as a stdio proxy positioned between an AI agent and its Model Context Protocol (MCP) servers. It intercepts every tools/call to enforce security policies before requests reach the backend.
Security Mechanisms
The tool implements three primary safeguards:
- Allowlists: Checks every call against a per-server allowlist configured by the user.
- Path Normalization: Normalizes file paths to refuse traversal attempts that try to escape the workspace.
- SSRF Protection: Blocks URLs that resolve to private or loopback IP ranges to prevent Server-Side Request Forgery.
Any request not explicitly permitted is blocked from reaching the server. The project is available on GitHub at github.com/princejain756/mcp-bouncer.
This summary was generated automatically by AI. Check the original for the author's claims and context. Copyright belongs to the original author.
Our guide explains how the AI works. Report summary errors, attribution issues, or removal requests via Contact.