
CoolUtils Mail Viewer
β 1from AlexBuzaev75
Read, convert, and extract attachments from .eml, .msg, .p7m and 9 other email file formats. Built into Mail Viewer for Windows.
Mail Viewer MCP Server
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:\archiveto PDF and put them inD:\output" β the agent callsconvert_mailon each file. - "What attachments does this EML have and who sent it?" β
get_mail_inforeturns a clean JSON object instantly. - "Extract all attachments from these 40 emails into
C:\attachments" βextract_attachmentssaves 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
.msgfiles 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
Installation
1. Install Mail Viewer
Download and install CoolUtils Mail Viewer for Windows from https://www.coolutils.com/MailViewer. The MCP server is bundled inside the standard MailViewer.exe binary β no extra package, no separate license.
A 30-day free trial is available; no email or credit card is required.
2. Configure your MCP client
Claude Code
Add to ~/.claude.json under mcpServers:
{
"mcpServers": {
"mailviewer": {
"command": "C:\\Program Files\\CoolUtils\\CoolUtils Mail Viewer\\MailViewer.exe",
"args": ["--mcp"]
}
}
}Claude Desktop
Add to %APPDATA%\Claude\claude_desktop_config.json under mcpServers (same block as above).
Cursor
Add to .cursor/mcp.json in your project, or to ~/.cursor/mcp.json globally β same JSON block.
Cline
Open Cline's MCP settings UI and paste the same block.
A copy-paste-ready snippet is also installed alongside the executable as claude-config-snippet.json. Adjust the path if you installed Mail Viewer in a non-default location.
3. Verify
Run this in a command prompt to confirm the server responds:
echo {"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"t","version":"0"}}} | "C:\Program Files\CoolUtils\CoolUtils Mail Viewer\MailViewer.exe" --mcpYou should see a single JSON-RPC response containing protocolVersion, serverInfo, and a tools capability.
Troubleshooting
The server doesn't respond. Verify the executable path is correct. The default install path on Windows is C:\Program Files\CoolUtils\CoolUtils Mail Viewer\MailViewer.exe. On 32-bit installs use C:\Program Files (x86)\β¦.
Claude can't find the tools. Restart your MCP client after editing the config file. Check the client logs β for Claude Desktop, see %APPDATA%\Claude\logs.
File path errors. Use absolute paths in your prompts. Forward slashes (/) and backslashes (\) both work; quote paths with spaces.
Trial expired. Buy a license β Personal starts at $49.90. The MCP server keeps working in the same binary.
Licensed under MITβ you can use, modify, and redistribute it under that license's terms.
License
The configuration files, schemas, and documentation in this repository are released under the MIT License. CoolUtils Mail Viewer itself is commercial software β see the product page for licensing.