Logo
Home Products Support Contact About Us
arrow1 Freeware

Mail Viewer MCP Server: AI-Powered Email Conversion and Inspection

 

CoolUtils Mail Viewer includes a built-in MCP (Model Context Protocol) server. Run MailViewer.exe --mcp and the program skips its GUI, becoming a background server that AI assistants can call directly. Claude Code, Claude Desktop, Cursor, Cline, and any MCP-compatible agent can then convert, read, and extract attachments from your email files — responding to plain-language instructions, without any custom scripting.

What Is MCP?

Model Context Protocol is an open standard published by Anthropic that lets AI agents call desktop software as if it were a remote API. Instead of writing scripts or using the command line, you describe what you need in natural language. The agent resolves the parameters and invokes the right tool — in this case, Mail Viewer running silently in the background.

The MCP server is bundled inside the regular MailViewer.exe binary. There is nothing extra to install or license. The --mcp flag only changes startup behavior: the GUI is hidden, and a background stdio reader thread starts.

What You Can Do

Once connected, you can give your AI assistant instructions like these:

  • "Convert all .msg files in D:\archive to PDF and put them in D:\output" — the agent calls convert_mail on each file in the folder
  • "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
  • No coding required — describe the task, the AI figures out the parameters
  • PDF output preserves embedded HTML, inline images, and headers exactly as the GUI renders them
  • Everything runs locally — mail files are never uploaded anywhere
  • Works with all Mail Viewer source formats including .eml, .msg, .p7m, and more

Three Available Tools

convert_mail

Converts a mail file to the specified output format. Uses the full Mail Viewer rendering engine, so PDF and DOCX output includes embedded HTML, inline images, attachment previews, and message headers — identical to what you see in the GUI.

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

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 their absolute paths and sizes in bytes.

Connect to Claude Code

Add the following block to your ~/.claude.json file inside the mcpServers object (create the key if it does not exist):

{
  "mcpServers": {
    "mailviewer": {
      "command": "C:\\Program Files\\CoolUtils\\CoolUtils Mail Viewer\\MailViewer.exe",
      "args": ["--mcp"]
    }
  }
}

A copy-paste-ready snippet is installed next to the executable as claude-config-snippet.json. Adjust the path if you installed Mail Viewer in a non-default location.

Connect to Claude Desktop

Open %APPDATA%\Claude\claude_desktop_config.json and add the same block under mcpServers:

{
  "mcpServers": {
    "mailviewer": {
      "command": "C:\\Program Files\\CoolUtils\\CoolUtils Mail Viewer\\MailViewer.exe",
      "args": ["--mcp"]
    }
  }
}

The same config format works for Cursor, Cline, and any other agent that supports the Model Context Protocol standard.

Verify the Installation

Run the following in a command prompt to confirm the MCP server responds correctly:

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" --mcp

You should see a single JSON-RPC response containing protocolVersion, serverInfo, and a tools capability. If it appears, the server is ready to use.

Technical Details

For developers and integrators: the server communicates over stdio using NDJSON (one JSON-RPC 2.0 message per line, UTF-8 encoding). Protocol version: 2024-11-05. Server name reported in initialize: mailviewer-mcp. Full input schemas for all three tools are installed alongside the executable as mcp-tools.json. A machine-readable server manifest is available as mcp-server.json.

FAQ ▼

Mail Viewer's MCP server is a built-in feature that lets AI assistants (Claude Code, Claude Desktop, Cursor, Cline, and others) call Mail Viewer directly to convert, inspect, and process email files. Run MailViewer.exe with the --mcp flag and it starts as a silent background server instead of opening its GUI.
No. The MCP server is bundled inside the regular MailViewer.exe binary — there is no separate package or additional license required. The --mcp flag simply changes startup behavior.
Claude Code (Anthropic's CLI for developers), Claude Desktop, Cursor, Cline, and any application that implements the Model Context Protocol standard. The JSON config format is identical for all of them.
Yes. Once Mail Viewer is registered as an MCP server in your AI tool's config, you can type a natural-language request like 'convert all .msg files in D:\archive to PDF' and the agent will call the convert_mail tool on each file automatically.
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.
No. The MCP server runs entirely on your local machine. Mail Viewer reads and converts files locally — nothing is uploaded. The AI agent decides what to convert and where to save the result, but the actual conversion happens on your PC.

 

Start working now!

Download free trial and convert your files in minutes.
No credit card or email required.

⬇ Download Free Trial Windows 7/8/10/11 • 33 MB

Support
Mail Viewer Preview1
Mail Viewer Preview2
Mail Viewer Preview3

Related Topics

Seven Free EML Viewers

Latest News

Newsletter Subscribe

No worries, we don't spam.


© 2026. All rights reserved. CoolUtils File Converters

Cards