Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MCP_HOSTNoHTTP/HTTPS listen address.127.0.0.1
MCP_PATHNoStreamable HTTP path./mcp
MCP_PORTNoHTTP/HTTPS port.3200
IMAP_HOSTNoIMAP server host. Can be omitted for common providers to auto-fill.
IMAP_PASSNoIMAP password. If not set, reuses SMTP_PASS.
IMAP_PORTNoIMAP server port. Can be omitted for common providers to auto-fill.
IMAP_USERNoIMAP username. If not set, reuses SMTP_USER.
SMTP_HOSTNoSMTP server host. Can be omitted for common providers to auto-fill.
SMTP_PASSNoSMTP password or authorization code.
SMTP_PORTNoSMTP server port. Can be omitted for common providers to auto-fill.
SMTP_USERNoSMTP username (usually the email address).
IMAP_SECURENoWhether to use a secure IMAP connection. Set to 'true' or 'false'. Defaults based on provider if omitted.true
MCP_API_KEYNoOptional. If set, enables Bearer / X-MCP-API-Key authentication. Should be at least 32 bytes in production.
SMTP_SECURENoWhether to use a secure SMTP connection. Set to 'true' or 'false'. Defaults based on provider if omitted.true
EMAIL_PROVIDERNoEmail provider mode: 'imap-smtp' or 'gmail-api'. Defaults to 'imap-smtp' if not specified.
GMAIL_CLIENT_IDNoGoogle OAuth client ID (required for Gmail API mode).
MCP_CORS_ORIGINNoOptional CORS origin. Multiple values can be comma-separated.
MCP_TLS_CA_PATHNoOptional CA file for client certificate validation (mTLS).
MCP_TRUST_PROXYNoSet to 'true' to trust the X-Forwarded-Proto header from a trusted proxy.false
MCP_TLS_KEY_PATHNoPath to the TLS private key file. Must be provided together with MCP_TLS_CERT_PATH for native HTTPS.
MCP_TLS_CERT_PATHNoPath to the TLS certificate chain file. Must be provided together with MCP_TLS_KEY_PATH for native HTTPS.
DEFAULT_FROM_EMAILNoDefault sender email address used when sending emails.
GMAIL_ACCESS_TOKENNoA valid Gmail access token. Can be used instead of OAuth credentials.
EMAIL_ACCOUNTS_JSONNoJSON string defining named email accounts. Each account can have provider, from, smtp, imap fields.
GMAIL_CLIENT_SECRETNoGoogle OAuth client secret (required for Gmail API mode).
GMAIL_REFRESH_TOKENNoGoogle OAuth refresh token (required for Gmail API mode).
MCP_TLS_MIN_VERSIONNoMinimum TLS version. Allowed values: TLSv1.2 or TLSv1.3.TLSv1.2
EMAIL_DEFAULT_ACCOUNTNoDefault named account to use when EMAIL_ACCOUNTS_JSON is set.
MCP_TLS_KEY_PASSPHRASENoOptional passphrase for the TLS private key.
MCP_TLS_REQUIRE_CLIENT_CERTNoWhether to require and verify client certificates. Set to 'true' or 'false'.false
EMAIL_ALLOW_INSECURE_TRANSPORTNoTesting only. Set to 'true' to allow SMTP/IMAP without TLS.false
EMAIL_ALLOW_INVALID_TLS_CERTIFICATESNoTesting only. Set to 'true' to disable validation of mail server TLS certificates.false

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
send-emailC

发送邮件

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

C2.7/5.0

Scored across 1 tool

Disambiguation5/5

Only one tool exists, so there is no risk of confusion between tools.

Naming Consistency5/5

With a single tool, naming consistency is trivially maintained.

Tool Count2/5

A single send-email tool is too few for an email MCP server, which typically requires additional capabilities like reading, listing, or managing emails.

Completeness2/5

The tool surface is severely incomplete, covering only sending emails with no support for receiving, listing, or other common email operations.

Maintenance

ActivityMaintained
ResponsivenessNo issues