Skip to main content
Glama
maillog-mcp

maillog-mcp

Official
by maillog-dev

@maillog/node-sdk

Node SDK and MCP server for the Maillog email API. Other languages: Python · Go · Ruby · PHP · Rust

Install

npm install @maillog/node-sdk

Related MCP server: maillog-mcp

Get a key without an account

curl -X POST https://api.maillog.nl/v1/keys/sandbox \
  -H "Content-Type: application/json" \
  -d '{"email":"you@example.com"}'

The key it returns may only send to that address and expires after 24 hours. For your own domains, sign up at https://maillog.nl/signup.

Send

import { Maillog } from "@maillog/node-sdk";

const maillog = new Maillog(process.env.MAILLOG_API_KEY);

const { id } = await maillog.emails.send({
  from: "Acme <noreply@acme.nl>",
  to: ["you@example.com"],
  subject: "hello",
  html: "<p>it works</p>",
});

emails.sendBatch(emails) takes 1 to 100 at a time. emails.list({ limit, offset, status }) returns what was sent, with delivery status and open/click counts.

Errors

Failures throw MaillogError with .status and .body, so a 422 from validation and a 403 from an expired key can be handled apart.

import { MaillogError } from "@maillog/node-sdk";

try {
  await maillog.emails.send(params);
} catch (err) {
  if (err instanceof MaillogError && err.status === 422) {
    // body carries errors[] with the offending field
  }
}

There is no retry logic, on purpose: a client that silently resends produces duplicate mail, and only you know whether that is acceptable.

MCP server

The package ships an MCP server so an assistant can send mail directly.

claude mcp add maillog --env MAILLOG_API_KEY=ma_xxx -- npx -y maillog-mcp

Tools: send_email, list_emails.

Options

new Maillog(apiKey, {
  baseUrl: "http://localhost:3086",  // default https://api.maillog.nl
  timeoutMs: 30_000,
});

Develop

npm run build          # tsc to dist/
node --test src/*.test.ts

MIT.

Available Tools

2 tools
list_emailsList sent emailsA

List emails previously sent through Maillog, newest first, with delivery status and open/click counts. Use this to check whether a message actually went out.

Inputs: limit, offset, status.

send_emailSend an emailA

Send a transactional email through Maillog. The 'from' address must be on a domain verified in the Maillog dashboard, except for sandbox keys, which may only send to the address the sandbox key was issued for.

Inputs: to (required), from (required), subject (required), cc, +4 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 2 tools

    Disambiguation5/5

    send_email and list_emails are clearly distinct: one creates a new email, the other reads previously sent emails. There is no overlap or ambiguity between the two operations.

    Naming Consistency5/5

    Both tool names follow a consistent verb_noun snake_case pattern, matching the broader MCP convention. The style is predictable and uniform across the small set.

    Tool Count3/5

    Two tools is on the thin side for a server, but the pair covers the core send-and-verify workflow implied by the Maillog domain. It is functional yet minimal, so the count is borderline appropriate.

    Completeness4/5

    The server covers the essential email send and delivery-check lifecycle with no obvious dead ends. Minor gaps exist, such as no single-email detail lookup or domain management, but the core workflow is workable.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables email integration via IMAP and SMTP, allowing model assistants to read, send, search emails, and list folders.
      15
      ISC
    • A
      license
      A
      quality
      D
      maintenance
      Enables sending emails and listing sent emails with delivery status and open/click counts via the Maillog API.
      2
      MIT
    • A
      license
      A
      quality
      A
      maintenance
      Enables AI assistants to read, search, sort, draft, and send email from connected mailboxes through MCP tools, with access controlled by per-token permissions.
      18
      4
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables MCP clients to send, receive, and track email and manage templates, domains, webhooks, and other email API operations from AI assistants.
      122 npm
      MIT