Labsco
AlexBuzaev75 logo

CoolUtils Mail Viewer

β˜… 1

from AlexBuzaev75

Read, convert, and extract attachments from .eml, .msg, .p7m and 9 other email file formats. Built into Mail Viewer for Windows.

πŸ”₯πŸ”₯πŸ”₯βœ“ VerifiedFreeQuick setup

Mail Viewer MCP Server

License MCP Platform

A Model Context Protocol server that lets Claude, Cursor, Cline, and any MCP-compatible AI agent read, convert, and extract attachments from email files β€” .eml, .msg, .p7m, .mim, .tnef, .vcf, .olk15, and more.

The server is built into CoolUtils Mail Viewer β€” there is nothing extra to install. Run MailViewer.exe --mcp and the program skips its GUI to act as a stdio JSON-RPC server.

What you can do

Once connected, give your AI assistant natural-language instructions:

  • "Convert all .msg files in D:\archive to PDF and put them in D:\output" β€” the agent calls convert_mail on each file.
  • "What attachments does this EML have and who sent it?" β€” get_mail_info returns a clean JSON object instantly.
  • "Extract all attachments from these 40 emails into C:\attachments" β€” extract_attachments saves them all in one pass.

Everything runs locally β€” your mail files are never uploaded anywhere.

Tools

convert_mail

Converts a mail file to the specified output format using the full Mail Viewer rendering engine.

  • Source formats: .eml, .msg, .mim, .p7m, .vmbx, .tnef, .mapixml, .olk15, .vcf, .contact, .3uc
  • Output formats: pdf, html, txt, doc, rtf, tiff, jpg, png, bmp, emf, eml, xps

PDF and DOCX output preserves embedded HTML, inline images, attachment previews, and message headers β€” identical to what you see in the GUI.

get_mail_info

Reads a mail file and returns its metadata as JSON: sender, To/CC/BCC recipients, subject, date, raw RFC headers, plain-text and HTML body, and a list of attachments with names, sizes, and content types. The source file is not modified.

extract_attachments

Saves all attachments from a mail file into a target folder (created automatically if it does not exist). Returns the list of saved files with absolute paths and sizes in bytes.

Full input/output schemas: schemas/mcp-tools.json.

Example sessions

See examples/usage.md for end-to-end transcripts:

  • Batch convert a folder β€” point Claude at a directory of .msg files and ask for PDFs.
  • Forensic triage β€” ask Claude to summarize sender/subject/attachment patterns across 100 emails.
  • Attachment harvesting β€” extract every attachment from a quarter's worth of legal correspondence into one folder.

Technical details

  • Transport: stdio (NDJSON, one JSON-RPC 2.0 message per line, UTF-8)
  • Protocol version: 2024-11-05
  • Server name (reported in initialize): mailviewer-mcp
  • Platform: Windows 7 / 8 / 10 / 11
  • License: Commercial (Mail Viewer); MIT (this configuration/docs repo). Personal license starts at $49.90, 30-day free trial.

Server manifest: schemas/mcp-server.json.

Resources