Skip to main content

Overview

This guide will help you install the Secure MCP Gateway, generate a configuration, and connect it to Claude Desktop with a test echo server. You’ll be up and running in under 10 minutes.
This quick start uses the pip installation method and Claude Desktop as the MCP client. For other installation methods or clients, see the installation guide.

Prerequisites

Before starting, ensure you have:
  • Python 3.11 or higher - Check with python --version
  • pip 25.0.1 or higher - Check with pip --version
  • Claude Desktop - Download from claude.ai/download
If you don’t have these installed, refer to the installation guide for detailed setup instructions.

Step 1: Install the gateway

1

Create a virtual environment

2

Install from PyPI

This installs the gateway and all dependencies, including the mcp CLI.
3

Verify installation

You should see version 2.1.7 or higher.

Step 2: Generate configuration

The gateway uses a JSON configuration file that defines projects, users, servers, and guardrails.
This creates a configuration file with:
  • Location (macOS): ~/.enkrypt/enkrypt_mcp_config.json
  • Location (Windows): %USERPROFILE%\.enkrypt\enkrypt_mcp_config.json
The generated config includes a default project, user, API key, and an echo server for testing.

What’s in the config?

The generated configuration includes:
  • Common settings - Log level, cache settings, telemetry configuration
  • Default project - Named “default_project” with a unique project ID
  • Default user - Email “default@example.com” with a unique user ID
  • API key - A 50-character random string for authentication
  • Echo server - A test MCP server that echoes back messages

Step 3: Install for Claude Desktop

Connect the gateway to Claude Desktop:
This command:
  1. Reads your gateway configuration
  2. Extracts the API key, project ID, and user ID
  3. Updates Claude’s config file at:
    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows: %APPDATA%\Claude\claude_desktop_config.json
  4. Configures the gateway as an MCP server
You must restart Claude Desktop after installation for the changes to take effect.

What gets added to Claude’s config?

Step 4: Verify the connection

1

Restart Claude Desktop

Completely quit and restart Claude Desktop.
2

Check for the gateway

In Claude, look for the MCP server icon (🔌) in the bottom right corner. Click it to see “Enkrypt Secure MCP Gateway” listed.
3

Test the echo server

Ask Claude: “List all available MCP servers and their tools.”You should see:
  • Server: echo_server
  • Tools: send_echo_message
4

Use the echo tool

Ask Claude: “Use the echo server to send the message ‘Hello, Gateway!’”Claude will invoke the send_echo_message tool through the gateway, and you should receive the echoed response.
If you don’t see the gateway or encounter errors, check the troubleshooting section below.

Step 5: View gateway tools (optional)

The gateway itself provides management tools you can invoke from Claude:
  • enkrypt_list_all_servers - List all configured MCP servers
  • enkrypt_get_server_info - Get details about a specific server
  • enkrypt_discover_all_tools - Discover tools from all servers
  • enkrypt_secure_call_tools - Execute tools with guardrails
  • enkrypt_get_cache_status - View cache statistics
  • enkrypt_clear_cache - Clear cached data
Try asking Claude: “Use the gateway to get cache status.”

What’s next?

Add a real MCP server

Now that the gateway is working, add a real MCP server like GitHub:
You’ll need to set the GITHUB_PERSONAL_ACCESS_TOKEN environment variable. See the GitHub MCP Server documentation for details.

Enable guardrails

Protect your servers with input and output guardrails:
  1. Get an Enkrypt API key from app.enkryptai.com/settings
  2. Add it to your config:
  3. Enable guardrails for a server:

Set up monitoring

For production deployments, enable observability:
  1. Run the OpenTelemetry stack:
  2. Access Grafana at http://localhost:3000
  3. View traces in Jaeger at http://localhost:16686
  4. Check metrics in Prometheus at http://localhost:9090

Troubleshooting

Gateway not showing in Claude

  1. Verify the config file exists:
  2. Check that the path to gateway.py is correct
  3. Ensure Claude Desktop was restarted (not just the window, but the entire app)
  4. Check Claude’s logs:
    • macOS: ~/Library/Logs/Claude/
    • Windows: %APPDATA%\Claude\logs\

”Gateway key is required” error

This means the gateway couldn’t find a valid API key. Verify:
  1. The ENKRYPT_GATEWAY_KEY is set in Claude’s config
  2. The key exists in the apikeys section of enkrypt_mcp_config.json
  3. The key matches exactly (no extra spaces or quotes)

Echo server not found

If the echo server doesn’t appear:
  1. Check the config file at ~/.enkrypt/enkrypt_mcp_config.json
  2. Verify the args path points to the actual echo_mcp.py file
  3. Test the server directly:

Python version mismatch

If you see errors about Python versions:
  1. Ensure you’re using Python 3.11+:
  2. Create a new virtual environment with the correct Python:

Other MCP clients

Cursor

Install for Cursor instead of Claude Desktop:
This updates ~/.cursor/mcp.json (or %USERPROFILE%\.cursor\mcp.json on Windows).

Claude Code

For the Claude Code CLI:
This runs claude mcp add to register the gateway.

Learn more

Installation guide

Docker, from source, and advanced installation options

Configuration

Configure servers, guardrails, and advanced settings

CLI reference

Complete command reference for managing the gateway

API reference

REST API documentation for programmatic management