Skip to main content

Environment Variables

Getting Your API Key

1

Sign In

Go to app.semust.com and sign in to your account.
2

Navigate to Settings

Go to Settings > API Key in your Semust account.
3

Copy Your Key

Copy the API key. You’ll use this in your .env file or client configuration.

Configuration Methods

You can provide the API key in two ways:

Option 1: .env File

Create a .env file in the MCP server directory:
.env

Option 2: Client Configuration

Pass the API key directly in your AI client’s MCP configuration (see Setup Guides):
When both .env and client config provide the key, the client config takes precedence.

Security Requirements

The server enforces HTTPS for all API communication:
  • SEMUST_BASE_URL must use https://
  • The only exception is localhost / 127.0.0.1 for local development
  • Plaintext HTTP to remote hosts is rejected at startup
Never share your API key or include it in client-side code. Keep it in environment variables or secure configuration files.