loading…
Search for a command to run...
loading…
Enables AI models to fetch and summarize Gmail messages, send emails with attachments, and convert text content into PDFs. It streamlines email-based workflows
Enables AI models to fetch and summarize Gmail messages, send emails with attachments, and convert text content into PDFs. It streamlines email-based workflows like automated reporting and task management through the Model Context Protocol.
Model Context Protocol (MCP) kullanarak Gmail ile etkileşime geçen akıllı mail asistanı.
git clone https://github.com/hasanoz07/mcp-gmail-summarizer.git
cd mcp-gmail-summarizer
python3 -m venv venv
source venv/bin/activate # Mac/Linux
# veya
venv\Scripts\activate # Windows
pip install -r requirements.txt
credentials.json dosyasını indir ve proje klasörüne koypython test_gmail.py
Tarayıcı açılacak, Gmail hesabına izin ver.
Mac:
nano ~/Library/Application\ Support/Claude/claude_desktop_config.json
Windows:
%APPDATA%\Claude\claude_desktop_config.json
Şunu ekle (yolları kendinize göre düzenleyin):
{
"mcpServers": {
"gmail-summarizer": {
"command": "/PATH/mcp-gmail-summarizer/venv/bin/python3",
"args": [
"/PATH/mcp-gmail-summarizer/gmail_mcp_server.py"
]
}
}
}
gmail-summarizer aktif olmalı[email protected] adresinden son 5 maili getir ve özetle
Şu metni PDF'e çevir ve [email protected] adresine gönder:
Ödev 1 - Python Temelleri
Bu ödevde Python'un temel konuları işlenmiştir.
Email konusu: "Ödev 1 Tamamlandı"
[email protected] adresine /path/to/file.pdf dosyasını gönder
Konu: "Proje Raporu"
İçerik: "Raporumu ekte bulabilirsiniz."
mcp-gmail-summarizer/
├── gmail_mcp_server.py # MCP sunucu
├── gmail_fetcher.py # Gmail API işlemleri
├── pdf_generator.py # PDF oluşturucu
├── test_gmail.py # Gmail bağlantı testi
├── requirements.txt # Python bağımlılıkları
├── credentials.json # Google OAuth (gitignore'da)
├── token.pickle # Kimlik token (gitignore'da)
├── generated_pdfs/ # Oluşturulan PDF'ler
└── README.md # Bu dosya
get_emails_from_senderBelirli bir gönderenden mailleri çeker.
Parametreler:
sender_email: Gönderen mail adresimax_results: Maksimum mail sayısı (varsayılan: 10)send_email_with_attachmentMail gönderir (opsiyonel ek ile).
Parametreler:
to_email: Alıcı adresisubject: Mail konusubody: Mail içeriğiattachment_path: Ek dosya yolu (opsiyonel)create_and_send_pdfMetin → PDF → Mail gönder.
Parametreler:
content: PDF içeriğito_email: Alıcı adresisubject: Mail konusupdf_title: PDF başlığıemail_body: Mail içeriğicredentials.json ve token.pickle dosyaları asla Git'e eklenmezpip install reportlab markdown2 Pillow
tail -f ~/Library/Logs/Claude/mcp-server-gmail-summarizer.log
python3 gmail_mcp_server.py
pdf_generator.py doğru font kullanıyor mu kontrol et.
MIT License
Hasan Öz
Pull request'ler memnuniyetle karşılanır!
git checkout -b feature/amazing-feature)git commit -m 'Add amazing feature')git push origin feature/amazing-feature)Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"gmail-mcp-summarizer": {
"command": "npx",
"args": []
}
}
}