Skip to main content
Glama
SDK-E

mailbox-mcp

by SDK-E

mailbox

CI npm license

로컬 개발용 메일 싱크(mail sink): 머신 전체에서 하나의 SMTP 서버와 HTTP API를 실행하고 모든 프로젝트가 이를 가리키게 하세요. 이메일은 기기를 벗어나지 않으며, 대신 웹 UI, CLI, AI 에이전트용 MCP 서버가 있는 검사 가능한 받은 편지함에 도착합니다.

공유 인스턴스 하나로 프로젝트별 포트 충돌을 없앨 수 있습니다: 한 번 시작하면 여러 프로젝트가 연결할 수 있습니다.

설치

pnpm add -D @sdk-e/mailbox   # or npm i -D / yarn add -D

또는 임시로 실행:

npx @sdk-e/mailbox

빠른 시작

mailbox            # SMTP on :11025, inbox UI on http://localhost:11090

어떤 앱에서든 smtp://127.0.0.1:11025로 메일을 보내세요(nodemailer, Resend 개발 모드 등). 그런 다음:

open http://localhost:11090   # or: mailbox-cli open

바이너리

Bin

용도

mailbox

싱크 실행 (SMTP + HTTP + 받은 편지함 UI)

mailbox-cli

list, read <id>, wait [match] [--timeout s], clear, health, open

mailbox-mcp

MCP 서버 (list_emails, read_email, clear_emails, wait_for_email)

CLI 예시

mailbox-cli list
mailbox-cli read 3
mailbox-cli wait "verification code" --timeout 10   # blocks until a new matching message arrives
mailbox-cli clear

wait시작한 후에 도착하는 메시지만 매칭합니다 — 메일 전송을 트리거하기 전에 먼저 시작하세요.

라이브러리 사용

import { startMailbox } from "@sdk-e/mailbox";

const mailbox = await startMailbox({ smtpPort: 0, httpPort: 0 }); // 0 = ephemeral
console.log(mailbox.smtpPort, mailbox.url);
await mailbox.close();

격리된 일회용 받은 편지함이 필요한 통합 테스트에 이상적입니다.

HTTP API (안정적인 와이어 프로토콜)

라우트

메서드

응답

/api/health

GET

{ ok, smtpPort, httpUrl, messageCount }

/api/email

GET

{ id, receivedAt, from, to, subject, text, html } 배열

/api/email/:id

GET

위 메시지에 raw 소스 포함; 없으면 404 {"error": …}

/api/email/all

DELETE

{ ok: true, messageCount: 0 }

/

GET

받은 편지함 UI

구성

환경 변수(작업 디렉터리에 .env.local, 그다음 .env가 있으면 로드됨):

변수

기본값

용도

MAIL_SMTP_PORT

11025

SMTP 수신 포트

MAIL_HTTP_PORT

11090

HTTP API/UI 포트

MAIL_HTTP_URL

포트에서 파생

CLI/MCP가 싱크에 접근할 때 사용하는 기본 URL

MAILBOX_HOST

127.0.0.1

바인딩 인터페이스 (기본값은 루프백)

앱의 메일러를 로컬에서 smtp://127.0.0.1:$MAIL_SMTP_PORT로 지정하세요. 프로덕션에서는 기존 실제 제공업체를 계속 사용하세요. 서버는 NODE_ENV=production일 때 시작을 거부합니다.

왜 높은 포트인가?

1025/1080(기존 MailHog 스타일 기본값)은 충돌이 잦습니다. mailbox는 기본값으로 11025/11090을 사용하므로 여러 SDK-E 프로젝트가 서로 또는 다른 로컬 도구와 충돌하지 않고 단일 인스턴스를 공유할 수 있습니다.

개발

Node >= 20 및 pnpm >= 11 필요.

pnpm install
pnpm verify     # format, lint, typecheck, test, build

CONTRIBUTING.md를 참조하세요.

라이선스

MIT

-
license - not tested
Not graded
quality - not tested
B
maintenance

Maintenance

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

  • Give an AI agent its own email address: send, reply, read, and wait for mail.

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

  • Hosted email MCP for AI agents with inboxes, send/receive, memory, recovery, and credits.

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/SDK-E/mailbox'

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