Skip to main content

Overview

The Secure MCP Gateway CLI provides comprehensive command-line tools for managing your gateway infrastructure. It enables you to configure MCP servers, manage projects and users, control access with API keys, and maintain system health.

Installation

Install via pip

Verify Installation

Quick Start

1. Generate Default Configuration

Create the initial configuration file with default settings:
This creates ~/.enkrypt/enkrypt_mcp_config.json (macOS/Linux) or %USERPROFILE%\.enkrypt\enkrypt_mcp_config.json (Windows).

2. Install Gateway for Your Client

Note: Restart Claude Desktop after installation.

CLI Structure

The CLI is organized into command groups:

Configuration Commands

Manage MCP configurations and servers

Project Commands

Create and manage projects

User Commands

Manage users and API keys

System Commands

Backup, restore, and health checks

Getting Help

General Help

Command Group Help

Specific Command Help

Global Options

flag
Display the CLI version
flag
Display help information
flag
Delegate command to Docker container (requires Docker installation)

Configuration File Location

The CLI reads and writes configuration to:

Common Workflows

Initial Setup

  1. Generate configuration
  2. Install for your MCP client
  3. Add MCP server configurations
  4. Create projects and users
  5. Generate API keys

Add New Server

  1. Add server to configuration
  2. Configure guardrails (optional)
  3. Test with discovery command

User Management

  1. Create user
  2. Add user to project
  3. Generate API key for user/project combination

Exit Codes

  • 0 - Success
  • 1 - General error
  • 2 - Invalid arguments

Environment Variables

string
API key for gateway authentication (set by install command)
string
Project identifier (set by install command)
string
User identifier (set by install command)
string
Host operating system (Docker only: macos, linux, windows)
string
Path to .enkrypt directory on host (Docker only)

Next Steps

Explore Configuration Commands

Learn how to manage MCP configurations and servers