New:Socket for Asana Is Now Available.Learn more
Get Started

mcp-inbox

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

mcp-inbox

AI Inbox Manager — MCP Server with 15 tools. Unified inbox + email send/reply/poll via IMAP + SMTP.

latest
Source
npmnpm
Version
2.0.1
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

mcp-inbox

AI Inbox Manager — MCP Server with 15 tools for unified inbox management + email send/reply/poll via IMAP + SMTP.

Give your AI assistant full email powers: read, search, triage, send, reply, and manage a multi-channel inbox with lead scoring and priority detection.

Features

  • 15 MCP Tools — 10 read, 2 write, 3 email (send/reply/poll)
  • Multi-Channel Inbox — email, web forms, Telegram, custom channels
  • Multi-Mailbox — 4 configurable mailboxes (hello, support, sales, info)
  • IMAP Polling — Fetch unseen emails (read-only, non-destructive)
  • SMTP Sending — Send emails with DKIM support, file attachments up to 25 MB
  • Thread Tracking — Email threading with In-Reply-To/References headers
  • AI Triage — Lead scoring, urgency detection, intent classification
  • Priority Detection — High-urgency items and high lead-score filtering
  • Dual Transport — stdio (default) + Streamable HTTP mode
  • PostgreSQL — Prisma ORM with full schema included

Quick Start

1. Install

npm install

2. Set up the database

# Set DATABASE_URL in .env or environment
export DATABASE_URL="postgresql://user:pass@localhost:5432/inbox"

# Push schema to database
npx prisma db push

3. Configure email (optional — inbox tools work without email)

# .env
EMAIL_DOMAIN=yourdomain.com
EMAIL_ORG_NAME="Your Company"

# IMAP (for polling incoming emails)
IMAP_HOST=imap.yourdomain.com
IMAP_PORT=993
IMAP_PASS=your-imap-password

# SMTP (for sending emails)
SMTP_HOST=smtp.yourdomain.com
SMTP_PORT=587
SMTP_USER=your-smtp-user
SMTP_PASS=your-smtp-password

4. Build and run

npm run build
npm start          # stdio mode (for Claude Desktop, Cursor, etc.)
npm start -- --http  # HTTP mode on port 4008

5. Connect to Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "inbox": {
      "command": "node",
      "args": ["/path/to/mcp-inbox/dist/server.js"],
      "env": {
        "DATABASE_URL": "postgresql://user:pass@localhost:5432/inbox",
        "EMAIL_DOMAIN": "yourdomain.com",
        "EMAIL_ORG_NAME": "Your Company",
        "IMAP_HOST": "imap.yourdomain.com",
        "IMAP_PASS": "your-password",
        "SMTP_HOST": "smtp.yourdomain.com",
        "SMTP_PORT": "587",
        "SMTP_USER": "your-user",
        "SMTP_PASS": "your-password"
      }
    }
  }
}

Tools Reference

Reading (10 tools)

ToolDescriptionParameters
inbox_listList/filter inbox itemschannel?, status?, search?, fromDate?, toDate?, limit?, offset?
inbox_getGet single item with body + triageid
inbox_searchFull-text search across all fieldsquery, limit?
inbox_statsOverview: total, by status/channel, high-priority count
inbox_threadsEmail threads with message countslimit?
inbox_get_threadThread details with all messagesthreadKey
inbox_high_priorityItems needing immediate attention
inbox_notesTriage notes: TLDR, intent, urgency, scoreinboxItemId
inbox_recentLast N items across all channelslimit?
inbox_channel_summaryPer-channel breakdown

Writing (2 tools)

ToolDescriptionParameters
inbox_update_statusChange status: new -> processed -> notified -> archivedid, status
inbox_archive_oldAuto-archive old processed itemsolderThanDays? (default: 30)

Email (3 tools)

ToolDescriptionParameters
email_sendSend email via SMTP with optional attachmentsto, subject, text, html?, replyTo?, mailbox?, attachments?
email_replyReply to existing inbox thread (auto-threading)inboxItemId, text, html?
email_pollPoll IMAP for unseen emails (read-only)maxCount?, mailbox?

Resources (2)

ResourceURIDescription
Inbox Statsinbox://statsCurrent inbox statistics
High Priorityinbox://high-priorityItems needing attention

Database Schema

Three Prisma models included:

  • InboxItem — Messages from any channel (email, web, Telegram, form)
  • InboxNote — AI triage notes with TLDR, intent, urgency, lead score
  • EmailThread — Thread tracking with message counts and auto-reply status

Enums: Channel (web/telegram/email/form), InboxStatus (new/processed/notified/archived), Urgency (low/mid/high)

Mailboxes

4 configurable mailboxes, each with its own IMAP user and SMTP sender:

MailboxEmailSender Name
hello (default)hello@{domain}{org}
supportsupport@{domain}{org} Support
salessales@{domain}{org} Sales
infoinfo@{domain}{org} Info

Set EMAIL_DOMAIN and EMAIL_ORG_NAME environment variables to configure.

Architecture

src/
  server.ts          — MCP server with 15 tool registrations
  core/
    db.ts            — Prisma database queries (inbox, notes, threads, stats)
    email.ts         — IMAP polling + SMTP sending + thread replies
  lib/
    dual-transport.ts — stdio + Streamable HTTP transport
    logger.ts        — Structured stderr logging
prisma/
  schema.prisma      — Database schema (3 models, 3 enums)

Environment Variables

VariableRequiredDescription
DATABASE_URLYesPostgreSQL connection string
EMAIL_DOMAINNoEmail domain (default: example.com)
EMAIL_ORG_NAMENoOrganization name for sender (default: My Organization)
IMAP_HOSTNo*IMAP server hostname
IMAP_PORTNoIMAP port (default: 993)
IMAP_PASSNo*IMAP password
IMAP_TLSNoEnable TLS (default: true)
SMTP_HOSTNo*SMTP server hostname
SMTP_PORTNoSMTP port (default: 587)
SMTP_USERNo*SMTP username
SMTP_PASSNo*SMTP password
MCP_HTTPNoSet to 1 to enable HTTP transport
MCP_PORTNoHTTP port override (default: 4008)
MCP_HOSTNoHTTP bind address (default: 127.0.0.1)
MCP_DEBUGNoSet to 1 for debug logging

* Required for email tools (email_send, email_reply, email_poll). Inbox tools work without email configuration.

Docker

npm run build
docker build -t mcp-inbox .
docker run -p 4008:4008 \
  -e DATABASE_URL="postgresql://..." \
  -e MCP_HTTP=1 \
  -e EMAIL_DOMAIN=yourdomain.com \
  mcp-inbox

Tested SMTP Providers

  • Brevo (smtp-relay.brevo.com)
  • SendGrid (smtp.sendgrid.net)
  • Postmark (smtp.postmarkapp.com)
  • AWS SES
  • Any standard SMTP relay

License

MIT

Keywords

mcp

FAQs

Package last updated on 10 Jul 2026

Related posts