fast-mcp-gatekeeper
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
π‘οΈ fast-mcp-gatekeeper
The Zero-Latency Security & Policy Proxy for Model Context Protocol (MCP)
Powered by TypeSafe AI's Jev System 1 Decision Model.
As coding assistants (Cursor, Claude Desktop, Antigravity) gain access to local tools via the Model Context Protocol (MCP), granting unconstrained access to your filesystem, terminal, and database is risky.
Existing security checks run through heavy LLMs add 2,000β3,000ms of latency to every single tool call, crippling agent responsiveness.
fast-mcp-gatekeeper acts as an ultra-fast stdio proxy sitting between your MCP client and any MCP server. It inspects all JSON-RPC tools/call packets in <50 milliseconds, detecting path traversals, command injections, and credential leaks without slowing down your AI workflow.
β¨ Features
β‘ Sub-50ms Overhead: Jev evaluates tool arguments in a single non-autoregressive pass.
π Automatic Interception: Returns standard MCP JSON-RPC
-32001error codes before the downstream tool can ever execute.π Automatic Token Sanitization: Redacts leaked API keys (
sk-..., Bearer tokens, passwords) on the fly with theredactpolicy.π Universal Compatibility: Works with any stdio-based MCP server (e.g.
@modelcontextprotocol/server-filesystem, Postgres, Git, GitHub).
Related MCP server: MCP Security Gateway
π Quick Setup with Claude Desktop or Cursor
In your claude_desktop_config.json or Cursor MCP settings, simply prepend fast-mcp-gatekeeper -- to your server command:
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": [
"-y",
"fast-mcp-gatekeeper",
"--",
"npx",
"-y",
"@modelcontextprotocol/server-filesystem",
"/Users/username/workspace"
]
}
}
}π§ͺ CLI Inspection Demo
You can inspect any simulated tool call directly from the terminal:
npx fast-mcp-gatekeeper --inspect '{"name": "read_file", "arguments": {"path": "/etc/passwd"}}'Output:
{
"toolName": "read_file",
"isMalicious": true,
"maliciousProbability": 0.99,
"threatLevel": "critical",
"policy": "block",
"reason": "BLOCKED: High-risk security policy violation detected in tool 'read_file'.",
"latencyMs": 41
}π License
MIT Β© Kartik Modi
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
This server cannot be deployed
Maintenance
Related MCP Connectors
Security & DLP proxy for MCP: tool-poisoning scans, PII redaction on tool args/results. Beta.
Scan prompts for injection attacks, redact PII, and audit LLM SDK usage from any MCP client
Security firewall for AI agents β scans MCP calls for injection, secrets, and risks.
Zero-LLM guardrail MCP to detect prompt injections, redact/HMAC PII, and validate tool args.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables secure interoperability between LLM agents and MCP tool servers by sanitizing requests and responses, masking sensitive tokens, detecting PII, and performing server reputation scans.MIT
- FlicenseNot gradedqualityDmaintenanceEnables safe use of any MCP server by proxying and live-scanning all tool requests and responses, blocking or redacting poison descriptions, indirect prompt injection, malicious arguments, and unauthorized destinations.-
- AlicenseNot gradedqualityBmaintenanceProxies MCP traffic between a client and a downstream server to enforce runtime policies on tool declarations, call arguments, and results, including allowlisting, sandboxing, secret and egress controls, and injection detection. It also includes a deterministic benchmark for measuring which security controls stop which attacks.MIT
- AlicenseNot gradedqualityFmaintenanceEnables transparent security for any MCP server by intercepting tool calls, blocking prompt injection attempts, masking PII in responses, and writing immutable audit logs.MIT