Email Processing MCP Server
by Cam10001110101
This MCP server provides email processing capabilities with MongoDB integration for semantic search and SQLite for efficient storage and retrieval. It allows users to process emails from Outlook and leverage local LLMs for advanced features.
Last updated: N/A
What is Email Processing MCP Server?
The Email Processing MCP Server is a tool designed to process emails from Microsoft Outlook, store them in an SQLite database, and generate vector embeddings using Ollama for semantic search capabilities. It integrates with MongoDB to store these embeddings, enabling advanced email analysis and retrieval.
How to use Email Processing MCP Server?
To use the server, first install the prerequisites (Python, Ollama, Outlook, MongoDB). Then, install the necessary Python packages using uv
. Configure the server by updating the claude_desktop_config.json
file with the correct paths and environment variables. Finally, use the provided tools, such as process_emails
, within the Claude environment to process emails from specified date ranges and mailboxes.
Key features of Email Processing MCP Server
Process emails from Outlook with date range filtering
Store emails in SQLite database with proper connection management
Generate vector embeddings using Ollama
Multi-mailbox support, including Inbox, Sent Items, and optionally Deleted Items folders
Use cases of Email Processing MCP Server
Semantic email search within Outlook
Email summarization using LLMs
Automatic email categorization
Generating customizable email reports
Drafting email responses and suggesting Outlook rules
FAQ from Email Processing MCP Server
What are the prerequisites for running this server?
What are the prerequisites for running this server?
Python 3.10+, Ollama, Microsoft Outlook, Windows OS, and MongoDB.
How do I install the required dependencies?
How do I install the required dependencies?
Use uv
to create a virtual environment and install the dependencies using uv pip install -e .
and uv pip install fastmcp
.
How do I configure the server?
How do I configure the server?
Update the claude_desktop_config.json
file with the correct paths to the Python executable, server script, and environment variables (MongoDB URI, SQLite DB path, Ollama URL, etc.).
What does the process_emails
tool do?
What does the process_emails
tool do?
It connects to specified Outlook mailboxes, retrieves emails from Inbox and Sent Items (and Deleted Items if enabled), stores emails in SQLite, generates embeddings using Ollama, and stores embeddings in MongoDB.
What databases are used and what are they used for?
What databases are used and what are they used for?
SQLite is used for primary email storage, full-text search, and processing status. MongoDB is used for storing vector embeddings and semantic similarity search.