Skip to main content
Glama
maillog-mcp

maillog-mcp

by Jorisslagter

@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: MCP Email Service

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

    A4/5.0

    Scored across 2 tools

    Disambiguation5/5

    send_email and list_emails have clearly distinct purposes: one creates a new outgoing message, the other reads history of previously sent messages. There is no overlap or ambiguity between them.

    Naming Consistency5/5

    Both tool names follow the same verb_noun pattern (send_email, list_emails), making the set predictable and easy to navigate. The consistency is perfect for a two-tool surface.

    Tool Count3/5

    With only two tools, the server feels thin for a general email service, though the pair covers the two most essential actions. The count is borderline but not unreasonable for a narrowly scoped transactional email logging use case.

    Completeness4/5

    The core lifecycle of sending and verifying delivery is covered: create an email and list sent emails with status. A minor gap is the lack of a single-email detail endpoint or pagination control, but agents can likely work around that using list_emails.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      Enables sending emails via SMTP with template management, supporting multiple SMTP configurations, template creation with variable substitution, and bulk email sending with rate limiting.
      6
      737 npm
      25
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables sending emails (including mass emailing), querying, updating, and canceling delayed emails via the Resend API.
      -
    • A
      license
      A
      quality
      D
      maintenance
      Enables an assistant to send email and list sent emails through the Maillog email API.
      2
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables sending transactional email and campaigns, managing contacts and templates, and reading delivery reports and wallet usage from any MCP client.
      MIT

    Appeared in Searches