M
MCP Gateway
MCP server by meetpanchal-sevlex
Created 5/19/2026
Updated about 16 hours ago
README
Repository documentation and setup instructions
Sevlex MCP Gateway
A production MCP (Model Context Protocol) security gateway that sits between AI agents and MCP servers. Intercepts, logs, and flags every tool call in real time.
What it does
- Intercepts every tool call between Claude and any MCP server
- Logs tool name, parameters, response, duration, session ID to Supabase
- Detects anomalies automatically:
- Retry loop detection — same tool called 3+ times
- Slow call detection — calls taking over 5 seconds
- Large response detection — responses over 8KB
- Changes call status from allowed to flagged automatically
- API key auth tied to customer accounts
How it works
The gateway is a transparent stdio proxy. Claude thinks it's talking directly to the MCP server. The MCP server thinks it's talking directly to Claude. Every message passes through the gateway first.
Tech Stack
- Node.js
- MCP Protocol (stdio transport)
- Supabase (logging + auth)
- dotenv
Setup
Create a .env file:
Quick Setup
Installation guide for this server
Install Package (if required)
npx @modelcontextprotocol/server-mcp-gateway
Cursor configuration (mcp.json)
{
"mcpServers": {
"meetpanchal-sevlex-mcp-gateway": {
"command": "npx",
"args": [
"meetpanchal-sevlex-mcp-gateway"
]
}
}
}