Skip to main content
Glama
Jorisslagter

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 Sendmail Server

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.

A
license - permissive license
A
quality
C
maintenance

Maintenance

UpdatingMaintainers
UpdatingResponse time
Release cycle
0Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    A
    quality
    A
    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
    245
    19
    MIT
  • F
    license
    Not graded
    quality
    D
    maintenance
    Enables sending emails via SMTP with support for HTML content, attachments, bulk sending, and template-based emails. Features session management and full MCP Streamable HTTP transport compliance.
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables sending and managing emails via Postmark, including email delivery with templates, template listing, and delivery statistics.
    MIT

View all related MCP servers

Related MCP Connectors

  • Send transactional email, run campaigns, manage contacts and automations, audit deliverability.

  • Send transactional email over a verified domain — templates, attachments, custom headers.

  • Send email, manage domains, DNS, webhooks, templates, and inbound routing on MailKite

View all MCP Connectors

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/Jorisslagter/sdk-node'

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