notify-mcp
Sends plain-text email notifications through Gmail SMTP to the configured Gmail address.
Provides native, audible desktop notifications on Linux using the operating system notification infrastructure.
Provides native, audible desktop notifications on macOS using the operating system notification infrastructure.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@notify-mcp run the test suite and send me a desktop and email notification when it's done"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
notify-mcp
Claude Code için masaüstü ve e-posta bildirimi sağlayan, yerel olarak çalışan bir Model Context Protocol (MCP) sunucusu.
notify-mcp, Claude Code uzun süren bir görevi tamamladığında kullanıcıyı bilgilendirmek için iki kanal sunar: işletim sisteminin yerel bildirim altyapısı ve Gmail SMTP üzerinden gönderilen e-posta. Bildirimler Claude tarafından MCP araçları aracılığıyla istenerek ya da isteğe bağlı bir Stop hook'u ile her yanıtın sonunda otomatik olarak gönderilebilir.
Özellikler
Masaüstü bildirimi: Windows, macOS ve Linux'ta yerel, sesli sistem bildirimi.
E-posta bildirimi: Yapılandırılan Gmail hesabından aynı adrese düz metin e-posta.
Otomatik tamamlanma bildirimi: Claude her yanıtını bitirdiğinde sesli uyarı ve son yanıtın özetini içeren e-posta gönderen
Stophook'u.Kullanıcı tercihlerine duyarlılık: Hook, kullanıcının mesajlarını analiz eder. Bir kanalın istenmediği belirtilirse (ör. "e-posta gönderme") o kanalı tek tur ya da sohbet boyunca atlar.
Tekrarlanan bildirimlerin önlenmesi: Claude aynı turda bildirimi MCP aracıyla zaten gönderdiyse hook ikinci kez göndermez.
Related MCP server: Claude Code Notification Hooks
İçindekiler
Mimari
flowchart LR
CC["Claude Code"] -- "stdio (JSON-RPC)" --> SRV["MCP sunucusu<br/>index.js"]
SRV --> DESK["Masaüstü bildirimi<br/>node-notifier"]
SRV --> MAIL["mailer.js"]
CC -- "Stop hook" --> HOOK["stop-notify.js"]
HOOK --> INTENT["prompt-intent.js<br/>tercih analizi"]
HOOK --> BEEP["Sesli uyarı"]
HOOK --> MAIL
MAIL --> SMTP["Gmail SMTP<br/>port 465 / SSL"]Bileşen | Görev |
| MCP sunucusu. Claude Code ile stdio üzerinden iletişim kurar ve iki araç sunar. |
| Ortak e-posta modülü. |
| Claude Code |
| Kullanıcı mesajlarından bildirim tercihlerini çıkaran kural tabanlı ayrıştırıcı. |
Gereksinimler
Gereksinim | Açıklama |
Node.js 22.22+ veya 24.15+ |
|
MCP sunucusunu çalıştıran istemci. | |
Gmail hesabı ve uygulama şifresi | Yalnızca e-posta bildirimi için gereklidir. |
Kurulum
git clone https://github.com/Harley-Quinnz/notify-mcp.git
cd notify-mcp
npm installYapılandırma
E-posta bildirimi için şablon dosyayı kopyalayın ve kendi bilgilerinizle doldurun:
# macOS / Linux / Git Bash
cp .env.example .env
# Windows (CMD / PowerShell)
copy .env.example .envEMAIL_USER=ornek@gmail.com
EMAIL_PASS=xxxx xxxx xxxx xxxxDeğişken | Açıklama |
| Gmail adresi. E-postalar bu adresten aynı adrese gönderilir. |
| Gmail uygulama şifresi. Hesap şifresi kabul edilmez. Boşluklar otomatik olarak temizlenir. |
.env dosyası her gönderimde yeniden okunduğundan, değerler değiştirildiğinde sunucuyu yeniden başlatmak gerekmez.
Gmail uygulama şifresi oluşturma
Google hesabınızda 2 Adımlı Doğrulama'yı etkinleştirin.
https://myaccount.google.com/apppasswords adresine gidin.
Yeni bir uygulama şifresi oluşturun ve 16 karakterlik değeri
EMAIL_PASSolarak kaydedin.
Claude Code entegrasyonu
MCP sunucusu
Sunucuyu tüm projelerde kullanılabilir olacak şekilde (user scope) ekleyin. Dosya yolunu deponun bulunduğu konuma göre düzenleyin:
# Windows
claude mcp add --scope user notify -- node "C:\\Users\\<kullanici>\\notify-mcp\\index.js"
# macOS / Linux
claude mcp add --scope user notify -- node /home/<kullanici>/notify-mcp/index.jsAlternatif olarak yapılandırma dosyasına elle ekleyebilirsiniz:
{
"mcpServers": {
"notify": {
"type": "stdio",
"command": "node",
"args": ["C:\\Users\\<kullanici>\\notify-mcp\\index.js"]
}
}
}Kurulumu doğrulamak için Claude Code içinde /mcp komutunu çalıştırın. notify sunucusu connected durumunda görünmelidir. Ardından Claude'dan doğrudan bildirim isteyebilirsiniz:
Testleri çalıştır, tamamlandığında masaüstü bildirimi ve e-posta gönder.Stop hook (isteğe bağlı)
stop-notify.js, Claude her yanıtını tamamladığında çalışır:
Kısa bir sesli uyarı çalar (Windows:
[Console]::Beep, macOS:afplay).Proje klasörü, zaman, oturum kimliği ve son yanıtın özetini (en fazla 4000 karakter) içeren bir e-posta gönderir.
Hook'u etkinleştirmek için ~/.claude/settings.json dosyasına ekleyin:
{
"hooks": {
"Stop": [
{
"hooks": [
{
"type": "command",
"command": "node",
"args": ["C:\\Users\\<kullanici>\\notify-mcp\\stop-notify.js"],
"async": true,
"timeout": 60
}
]
}
]
}
}async: true ayarı bildirimlerin Claude'u bekletmemesini sağlar. Hatalar ve atlanan bildirimler proje klasöründeki stop-notify.log dosyasına kaydedilir.
Bildirim tercihleri
Stop hook, sohbetteki kullanıcı mesajlarını analiz ederek her kanal için gönderim kararı verir. Tercihler iki kapsamda uygulanır.
Tek tur
Mesajda bir kanalın istenmediği ya da yalnızca birinin istendiği belirtilirse karar yalnızca o tur için geçerlidir. Sonraki mesajda varsayılan davranışa dönülür.
Örnek mesaj | Ses | E-posta |
"Testleri çalıştır" | Çalınır | Gönderilir |
"Ses ve e-posta gönderme", "Bildirim gönderme" | Çalınmaz | Gönderilmez |
"Ses çalma", "Sessiz çalış" | Çalınmaz | Gönderilir |
"E-posta gönderme", "Mail atma" | Çalınır | Gönderilmez |
"Sadece ses gönder" | Çalınır | Gönderilmez |
"Sadece e-posta gönder" | Çalınmaz | Gönderilir |
"Don't send an email" | Çalınır | Gönderilmez |
Sohbet boyunca
Mesajda "bu sohbet boyunca", "ben söyleyene kadar", "aksini söyleyene kadar", "bundan sonra" veya "artık" gibi bir ifade bulunursa ya da "kapat" / "aç" fiilleri kullanılırsa tercih, değiştirilene kadar sohbetin geri kalanında geçerli olur.
Örnek mesaj | Etki |
"Ben söyleyene kadar bildirim gönderme", "Bildirimleri kapat" | Ses ve e-posta kapatılır. |
"Bu sohbet boyunca sadece ses gönder" | Yalnızca ses çalınır. |
"Artık mail atma", "Sesi kapat" | Yalnızca ilgili kanal kapatılır. |
"Bildirimleri tekrar aç", "Sesi aç", "Artık mail atabilirsin" | Kapatılan kanal yeniden açılır. |
Davranış ayrıntıları
Sohbet kapsamındaki tercihler yalnızca ilgili sohbet için geçerlidir. Karar her seferinde sohbetin transcript'inden hesaplanır. Yeni bir sohbet ya da
/clearsonrası varsayılan davranış geçerlidir.Sohbet boyunca kapatılmış bir kanal, bir turda açıkça istenirse ("bitince mail at") o tur için gönderilir.
Aynı mesajda bir kanal hem istenip hem reddedilirse kanal kapalı kabul edilir.
Türkçe karakter kullanımı ("gonderme", "eposta") ve büyük/küçük harf farkı sonucu etkilemez. İngilizce ifadeler de desteklenir.
İsim olarak kullanılan ifadeler ("e-posta gönderme özelliğini düzelt") ve kod blokları içindeki metinler komut olarak değerlendirilmez.
Ayrıştırıcı kural tabanlıdır. Desteklenmeyen bir ifade fark edilmezse varsayılan davranış (gönderim) uygulanır.
MCP araç referansı
send_desktop_notification
Yerel, sesli bir masaüstü bildirimi gösterir.
Parametre | Tip | Açıklama |
|
| Bildirim başlığı |
|
| Bildirim metni |
send_email_notification
EMAIL_USER adresine, aynı adresten düz metin e-posta gönderir (Gmail SMTP, port 465, SSL).
Parametre | Tip | Açıklama |
|
| E-posta konusu |
|
| E-posta gövdesi (düz metin) |
Proje yapısı
notify-mcp/
├── index.js MCP sunucusu ve araç tanımları
├── mailer.js Gmail SMTP üzerinden e-posta gönderimi
├── stop-notify.js Claude Code Stop hook'u
├── prompt-intent.js Bildirim tercihlerinin ayrıştırılması
├── .env.example Ortam değişkenleri şablonu
├── package.json
├── LICENSE
└── README.mdGeliştirme
Hook kararlarını test etme
NOTIFY_DRY_RUN=1 ortam değişkeni ile hook hiçbir bildirim göndermeden verdiği kararı JSON olarak yazdırır:
echo '{"transcript_path":"<transcript.jsonl>"}' | NOTIFY_DRY_RUN=1 node stop-notify.jsstdout kullanımı
stdio transport, stdout akışını JSON-RPC iletişimi için kullanır. Sunucu kodunda console.log kullanılmamalı, tüm loglar console.error (stderr) ile yazılmalıdır.
Güvenlik
.envdosyası.gitignoreile depo dışında tutulur. Depoda yalnızca değer içermeyen.env.examplebulunur.Gmail hesap şifresi yerine her zaman uygulama şifresi kullanın. Uygulama şifreleri hesap şifresini değiştirmeden tek tek iptal edilebilir.
Uygulama şifresinin sızdığından şüpheleniyorsanız https://myaccount.google.com/apppasswords üzerinden iptal edip yenisini oluşturun.
Sunucu yerel olarak çalışır ve Gmail SMTP dışında herhangi bir dış servise veri göndermez.
Sorun giderme
Belirti | Çözüm |
|
|
| Hesap şifresi yerine uygulama şifresi kullanın ve 2 Adımlı Doğrulama'nın etkin olduğunu kontrol edin. |
Masaüstü bildirimi görünmüyor | Windows'ta Ayarlar > Sistem > Bildirimler altında bildirim izinlerini ve "Rahatsız Etme" modunu kontrol edin. |
Sunucu |
|
Hook bildirimi gelmiyor |
|
İstenmediği belirtildiği halde bildirim gönderiliyor |
|
Lisans
Bu proje MIT lisansı ile lisanslanmıştır. Ayrıntılar için LICENSE dosyasına bakın.
Available Tools
2 toolssend_desktop_notificationMasaüstü bildirimi gönderA
Kullanıcının bilgisayarında yerel bir Windows masaüstü bildirimi (toast) gösterir. Uzun süren bir işlem bittiğinde kullanıcıyı haberdar etmek için kullan.
Inputs: title (required), message (required).
send_email_notificationE-posta bildirimi gönderA
Kullanıcının kendi Gmail adresine (.env içindeki EMAIL_USER) yine kendi adresinden bir e-posta bildirimi gönderir. Uzun süren bir işlem bittiğinde kullan.
Inputs: message (required), subject (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 2 tools
The two tools target clearly different delivery channels (local desktop toast vs. Gmail), so an agent can distinguish them mechanically. However, both descriptions state the identical trigger condition ('use when a long-running operation finishes') with no guidance on when to prefer one over the other, leaving selection partly ambiguous.
Both tools follow the exact same send_<channel>_notification pattern, which is predictable and readable. No mixed conventions or inconsistent verb styles.
With only two tools the surface is borderline thin even for a notification utility; it is well-scoped with no redundancy, but two nearly identical-purpose tools is a minimal offering rather than a comfortably sized set.
For a notifier, 'send' is essentially the only lifecycle operation, and two independent channels give reasonable coverage with no dead ends. Minor gaps remain: no way to discover or verify which channel is configured/available, and no fallback or status reporting.
Maintenance
Related MCP Connectors
Let your AI agent notify you by email, Slack, Discord, or webhook. One tool: send_notification.
Connect any IMAP/SMTP mailbox to Claude & ChatGPT: search, read, sort, draft. Sends only with OK.
Connect any mailbox to Claude, ChatGPT & AI: read, send, reply, schedule & search emails.
Give Claude, Cursor or any agent its own email address: send, read and reply in threads.
Related MCP Servers
- AlicenseBqualityDmaintenancePlays Spotify tracks or system sounds as notifications when Claude Code completes tasks, with desktop notifications and cross-platform support for macOS, Linux, and Windows.89 npm1MIT
- AlicenseAqualityDmaintenanceProvides automatic desktop notifications and contextual sounds for Claude Code operations across macOS, Windows, and Linux. It enhances the development experience by intelligently mapping specific event types to native system alerts and sounds.411 npm3MIT
- AlicenseNot gradedqualityDmaintenanceSends native Windows desktop notifications with repeating sound alerts for Claude Code, supporting states like finished, needs_help, and pending_review.MIT
- AlicenseNot gradedqualityBmaintenanceEnables Claude Desktop, Cowork, and Claude Code threads to send native macOS, Windows, or Linux desktop notifications when a task finishes or input is needed, showing the project name and a one-line summary with done, question, or urgent levels. Runs locally with zero dependencies and no network access, and self-instructs each thread on when and how to ping the user.MIT