Skip to main content

Secure MCP Gateway

Enterprise-grade security middleware for Model Context Protocol servers with authentication, guardrails, and observability

Quick start

Get up and running with Secure MCP Gateway in minutes

1

Install the gateway

Install via pip or run with Docker:
pip
pip install secure-mcp-gateway
Docker
docker pull enkryptai/secure-mcp-gateway
2

Generate configuration

Create your gateway configuration file:
secure-mcp-gateway generate-config
This creates ~/.enkrypt/enkrypt_mcp_config.json with default settings.
3

Install for your MCP client

Configure the gateway for Claude Desktop, Cursor, or other MCP clients:
Claude Desktop
secure-mcp-gateway install --client claude-desktop
Cursor
secure-mcp-gateway install --client cursor
4

Start using protected MCP servers

Your MCP client now connects through the secure gateway with authentication, caching, and optional guardrails enabled.

Core features

Everything you need to secure and manage your MCP infrastructure

Authentication & API Keys

Secure API key management with project-based access control and automatic key rotation

Input/Output Guardrails

Block malicious prompts, detect PII, prevent injection attacks, and validate responses

OAuth 2.0/2.1 Support

Full OAuth support with mutual TLS (mTLS), token caching, and automatic refresh

Multi-level Caching

Local and external Redis/KeyDB caching for tool discovery and configuration

OpenTelemetry Observability

Distributed tracing, metrics, and logging with Prometheus and Grafana integration

Plugin Architecture

Extensible system for custom auth providers, guardrails, and telemetry backends

Explore by topic

Dive deeper into specific areas

Core Concepts

Understand the gateway architecture, configuration system, and how it works

Deployment Options

Learn about local installation, Docker deployment, and production patterns

Client Integration

Connect Claude Desktop, Cursor, Copilot, LangChain, and other MCP clients

Security Features

Explore guardrail types, PII handling, and security testing tools

API & CLI reference

Complete reference documentation for developers

REST API

FastAPI-based REST API for configuration management, projects, users, and API keys

CLI Commands

Comprehensive CLI for gateway configuration, server management, and system operations

Gateway Tools

Built-in MCP tools for server listing, tool discovery, and secure execution

Plugin Development

Create custom auth providers, guardrail implementations, and telemetry backends

Ready to secure your MCP infrastructure?

Start protecting your Model Context Protocol servers with enterprise-grade security in minutes

Get Started Now