Skip to main content
Glama
maillog-dev

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: Inbound Email MCP 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

Maintainers
Response time
Release cycle
Releases (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

View all related MCP servers

Related MCP Connectors

  • Email for AI agents — send, receive as a webhook, manage domains, templates, routing.

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

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

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

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