danieloza/mcp-security-gateway
FastAPI security gateway for MCP servers with policy enforcement, approvals, rate limits, incident creation, and redacted audit logs.
Platform-specific configuration:
{
"mcpServers": {
"mcp-security-gateway": {
"command": "npx",
"args": [
"-y",
"mcp-security-gateway"
]
}
}
}Add the config above to .claude/settings.json under the mcpServers key.
> FastAPI gateway for governing MCP tool access with auth, policy enforcement, approvals, rate limiting, and audit-friendly request logs.
[](https://www.python.org/) [](https://fastapi.tiangolo.com/) [](#)
Teams want agents to call MCP tools in production. The missing layer is usually control:
MCP Security Gateway models that missing layer as a backend-first service.
GET /healthGET /meGET /mcp-serversGET /policiesGET /requestsGET /requests/{request_id}POST /requestsGET /approvalsPOST /approvals/{approval_id}/decisionGET /incidentspython -m venv .venv
.venv\Scripts\activate
pip install -e .
pip install pytest httpx
uvicorn mcp_security_gateway.main:app --reloadOpen:
http://127.0.0.1:8000/docshttp://127.0.0.1:8000/dashboardmsg-ops-demomsg-security-demomsg-platform-demodocker compose up --buildThis starts:
Loading reviews...