MCP-IMAP-Agent/backend/.env.example
Soldier 8232a58600 MCP IMAP server with core email tools
Implements complete IMAP server using FastMCP protocol with 5 core tools:
- list_folders: Browse mailbox structure
- search_emails: Query with filters (sender, subject, date)
- get_email: Fetch full email content with metadata
- send_email: SMTP sending with HTML support
- health_check: Connection validation

Architecture:
- FastMCP for MCP protocol implementation
- aioimaplib for async IMAP connections
- IMAPSession class for connection pooling
- REST API bridge (api_server.py) for HTTP access

Tech: Python 3.11 + FastMCP + aioimaplib + FastAPI + aiosmtplib
2025-11-17 12:36:09 +00:00

22 lines
452 B
Plaintext

# MCP Server Configuration
MCP_PORT=8000
MCP_HOST=0.0.0.0
# Security Settings
RATE_LIMIT_PER_MINUTE=60
MAX_EMAIL_FETCH_SIZE=100
SESSION_TIMEOUT_MINUTES=30
# Redis Configuration (for production)
REDIS_URL=redis://localhost:6379
REDIS_DB=0
# Logging
LOG_LEVEL=INFO
# CORS Settings (for frontend)
CORS_ORIGINS=http://localhost:3000,https://maxtheweb.ai
# Auth Settings (for magic links)
RESEND_API_KEY=your_resend_api_key
MAGIC_LINK_EXPIRY_MINUTES=15