Skip to main content
Glama
ni-c

smtp-mcp

by ni-c

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
SMTP_TLSNostarttls, implicit or none. Never opportunistic.starttls
SMTP_FROMYesThe only sender used, e.g. Name <person@example.net>. There is no from parameter.
SMTP_HOSTYesHostname of the SMTP server, e.g. smtp.example.net.
SMTP_PORTNoDepends on SMTP_TLS.587 / 465 / 25
SMTP_USERYesUsername for SMTP authentication.
ELICITATIONNofalse replaces the approval dialog with the two-call token. Not prefixed.true
SMTP_PASSWORDYesPassword or app-specific password.
SMTP_AUDIT_LOGNoFile the audit lines are appended to, in addition to stderr.
SMTP_SIGNATURENoText appended below the standard -- delimiter.
SMTP_ALLOW_SENDNoSet to true to register the sending tools.false
SMTP_DENY_TOOLSNoRemoved after SMTP_ALLOW_TOOLS is applied.
SMTP_ALLOW_TOOLSNoTool names, a prefix with one trailing *, or essential.
SMTP_INSECURE_TLSNoAccept self-signed certificates.false
SMTP_ATTACHMENT_DIRNoDirectory attachments are read from. Unset means no attachments.
SMTP_MAX_RECIPIENTSNoDistinct recipients across To, Cc and Bcc in one message.10
SMTP_ATTACHMENT_TYPESNoComma-separated content types that may be attached. text/html and application/zip are opt-in.
SMTP_MAX_MESSAGE_BYTESNoSize ceiling on the composed message.10485760
SMTP_ALLOWED_RECIPIENTSNoComma-separated addresses and @domains. * allows anyone. Required when SMTP_ALLOW_SEND=true.
SMTP_MAX_SENDS_PER_HOURNoSliding hourly cap.20
SMTP_MAX_ATTACHMENT_BYTESNoSize ceiling on one attachment.5242880

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
get_server_infoA

Reports the SMTP endpoint, the fixed sender address, who this server is allowed to write to, the current limits and whether sending is switched on at all. Call this first: it answers "can I send, and to whom" without touching the network.

validate_recipientsA

Says which of the given addresses this server is allowed to write to, and why the others are refused. Nothing is sent and no connection is made. Use it before composing a message rather than discovering the refusal afterwards.

preview_mailA

Builds exactly the message send_mail would build and returns its headers and bodies, without connecting to anything. Every check a send performs runs here too — the allowlist, the recipient limit, the attachment policy and the size limit — so this is the way to find out whether a message is acceptable before asking a human to approve it. Attachment payloads are summarised by name, size and digest rather than printed.

test_connectionA

Opens a connection to the SMTP server, negotiates TLS and authenticates, then closes it again. No message is sent. Use it to tell a configuration problem apart from a delivery problem.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ni-c/smtp-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server