MsgLens
MCP server by AndyLiu0427 Community
Reads Outlook .msg, .eml and winmail.dat email files locally, showing headers, body and attachments. Aimed at people who need to read business email without uploading it to a server.
Install MsgLens
Built from the published package, never by AI.
claude mcp add msglens -- npx -y msglens-cliRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"msglens": {
"args": [
"-y",
"msglens-cli"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"msglens": {
"args": [
"-y",
"msglens-cli"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"msglens": {
"args": [
"-y",
"msglens-cli"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add msglens -- npx -y msglens-cli{
"mcpServers": {
"msglens": {
"args": [
"-y",
"msglens-cli"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add msglens npx -y msglens-cliGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the msglens block.
About
MsgLens reads Outlook .msg, standard .eml and winmail.dat (TNEF) email files. It detects the format from the file contents rather than the extension, recovers the message body through a fallback chain, resolves cid: inline images, and extracts attachments individually or as a ZIP. Messages can be exported to .eml, .txt or PDF, and raw internet headers can be shown.
The web viewer has no backend, so parsing runs in the browser and files are not uploaded. The same parsers ship as the msglens-cli npm package, which includes a dependency-free MCP server started with msglens mcp. It suits people who need to read business email locally, and IT, deliverability or discovery work that needs raw headers.
Written from the project's README and checked against it.
What you need
- Node.js to run the msglens-cli package
- pnpm to build the CLI (pnpm cli:build)
- Node.js 20.9 or later to build the website
Try asking
- Read this Outlook .msg file and summarise the headers and body.
- Extract the attachments from this winmail.dat file.
- Show the raw internet headers of this .eml message.
Good to know
- winmail.dat files do not contain the recipient list, so To and Cc show as empty.
- Remote images are blocked by default and load only after a per-message opt-in.
- The source does not list the MCP tool names.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
What you can do with it
- Read Outlook .msg files offline
- Extract attachments from email files
- Inspect raw email headers for IT work
- Open winmail.dat files from Rich Text email
Alternatives to MsgLens
All alternatives →Creates, opens, edits and exports Word, Excel, PowerPoint and PDF files through the MR Office MCP server. It suits AI assistants that need to work on real office documents, with the editor shown in chat when the client supports MCP Apps.
Parses Korean documents such as HWP, HWPX, PDF, XLSX, DOCX and PPTX into Markdown, and writes HWPX or HWP official documents from Markdown. It runs as a library, CLI, HTTP API or MCP server for AI assistants.
Desktop Commander is an MCP server that lets an AI assistant run terminal commands, edit files and manage processes on your computer. It is for developers and users who want an assistant to work with local code and text.
Connects AI assistants to the Linear GraphQL API so they can manage projects, issues, and documents. Built for teams that want planning and project-management workflows in Linear, beyond basic issue CRUD.
pptx-viewer MCP server and tools: manipulate, convert, and collaborate on PowerPoint .pptx files from AI agents.
Reactive Resume is a free, open-source resume builder with an MCP server for document management, imports, exports, checks and job application workflows. It suits people who want to write and track resumes and keep their data under their own control. The source describes the app itself and does not describe the DeepSeek Harness connection.
Compare with MR Office, kordoc or Desktop Commander
MsgLens: common questions
Does MsgLens upload my email files?
The source says there is no backend and all parsing runs client-side in the browser, so files are not uploaded.
Can MsgLens open winmail.dat files?
Yes. It unpacks TNEF winmail.dat files and pulls out the formatted body and real attachments. The recipient list is not stored in these files, so To and Cc stay empty.
Does it read Outlook messages that store the body only as RTF?
Yes. The body fallback chain includes de-encapsulating PidTagRtfCompressed, which the source says covers messages stored as compressed RTF.
How do I install MsgLens?
In Claude Code run claude mcp add msglens -- npx -y msglens-cli. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is MsgLens the official server?
MsgLens is a community project by AndyLiu0427, not verified by a company domain.
Is MsgLens free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is MsgLens safe to use?
It scores 74 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to MsgLens?
Similar MCP servers: MR Office, kordoc, Desktop Commander, MCP Linear.
Does MsgLens work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
