Search for emails by date range, keywords, and sender
Read the full content of a specific email
Get statistics about email volume over time
Compose and send a new email with optional CC recipients
ClaudePost provides a seamless email management interface through Claude. This integration allows you to handle emails directly through natural language conversations, supporting features like searching, reading, and sending emails securely. With ClaudePost, you can search emails by date range and keywords, view daily email statistics, read full email content with threading support, and compose and send new emails with CC recipients. The integration prioritizes security with TLS support and works with Gmail and other email providers.
ClaudePost transforms how you interact with your email by enabling natural language conversations with Claude to manage your inbox. Instead of navigating complex email interfaces, you can simply ask Claude to find, read, and send emails using everyday language.
Before setting up ClaudePost, ensure you have:
Install uv package manager
On macOS/Linux:
curl -LsSf https://astral.sh/uv/install.sh | sh
Remember to restart your terminal after installation.
Clone and set up the project
# Clone the repository
git clone https://github.com/ZilongXue/claude-post.git
cd claude-post
# Create and activate virtual environment
uv venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
# Install dependencies
uv pip install -e .
Create environment configuration
Create a .env
file in the project root with your email credentials:
EMAIL_ADDRESS=your.email@gmail.com
EMAIL_PASSWORD=your-app-specific-password
IMAP_SERVER=imap.gmail.com
SMTP_SERVER=smtp.gmail.com
SMTP_PORT=587
Configure Claude Desktop
First, ensure you have the latest version of Claude Desktop installed from claude.ai/download.
Open your Claude Desktop configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
mkdir -p ~/Library/Application\ Support/Claude
touch ~/Library/Application\ Support/Claude/claude_desktop_config.json
Add the following configuration (replace paths with your actual paths):
{
"mcpServers": {
"email": {
"command": "/Users/username/.local/bin/uv",
"args": [
"--directory",
"/path/to/claude-post/src/email_client",
"run",
"email-client"
]
}
}
}
After updating the configuration, restart Claude Desktop for the changes to take effect.
The server runs automatically through Claude Desktop when it launches. No manual server management is needed, and the server stops when Claude is closed.
You can interact with your emails using natural language commands. Here are some examples:
For security reasons, Claude will always show you the email details for confirmation before actually sending.
.env
fileThe application logs detailed information to email_client.log
. Check this file for debugging information and error messages if you encounter any issues.
If Claude doesn't recognize email commands, ensure that:
.env
file contains the correct credentials