Skip to main content
Feedback

Basic API key authentication

MCP Gateway supports basic API key authentication for new connections to MCP Gateway.

To enable it, add the following to your app.yaml:

auth:
enabled: true

At startup, MCP Gateway will read the expected API key from the AUTH_KEY environment variable.

To authenticate, clients must include the key in their request headers, as shown in the following example:

x-lunar-api-key: YOUR_API_KEY