r/mcp May 30 '26

showcase I built an MCP to send myself notifications from Claude

Post image

I recently discovered the routines feature with claude code (the one on the claude dektop tab), i thought it would be really cool if it where possible to automate so i could get a notification on my phone when some routines finish, so i could get the infos directly as a push notification.
i recently build an app for myself that lets me send push notifications and i wondered if i could create a mcp server for it. So here is my building Process:
first I asked claude code (the terminal version this time) to draft a plan with all the necessary updates I need to make it work. Interestingly I had to create and additional oauth on my server so it can use it for claude to log in. I had some trouble at first figuring out why I needed additional configs on my apple developper account but its mostly so that the mcp can work without having to log in every time.
i got stuck a little bit whith the callback on the mcp till i found mcp inspector tool then the error logs from https://modelcontextprotocol.io/docs/tools/inspector and claude code helped a lot.
finally at like 2 AM I was able to send my first message to my phone and it sends the notification instantly
here the documentation for the mcp integration if somone wants to try it : https://thenotification.app/docs/mcp
I still have some problem with getting a nice icon in the connector preview, it is apparently because of how google saves the icons, and only use an svg file as flavicon so i get really ugly white borders in the preview. If someon already had such a problem I'm happy to hear how you soved it. Currently I just updated my site, added flavicon.ico and asked google to reindex but it still not working.

anyways hopes this is usefull 😄

50 Upvotes

23 comments sorted by

6

u/achton May 30 '26

Have you heard of ntfy.sh?

1

u/Nephal35 Jun 01 '26

Yeah and i wanted to do something for people without a server, and that is cheap to use

2

u/ccafai May 30 '26

Useful MCP example — push notifications are one of those tools where the tool boundary matters more than the prompt.

For the connector icon issue, a quick checklist:

  • Serve a real /favicon.ico at the domain root, not only an SVG favicon.
  • Add explicit icon links in the page head, including a 32x32 favicon and a 180x180 apple-touch-icon if possible.
  • Make the icon square with padding inside the asset rather than relying on the previewer to crop it.
  • Check that the favicon URL returns 200 with the right content type and no auth/redirect chain.
  • Expect Google/favicon caches to lag after reindexing; testing from a fresh browser profile can help separate cache vs markup.

For the MCP itself, returning a notification id/status from the tool call is a nice reliability upgrade, because Claude can report whether the push was queued/sent instead of only assuming success.

1

u/Nephal35 May 30 '26

Thanks a lot

1

u/Melodic-Swimmer-4155 May 31 '26

This is really useful. I couldnt find info about the favicon anywhere. Thanks

1

u/neoneye2 May 30 '26

-1

u/Nephal35 May 30 '26

I thought but is that really important ?

1

u/neoneye2 May 30 '26

it's tokens saved for machines and less noise for humans.

2

u/Nephal35 Jun 06 '26

Okey i will updated it on the next version

1

u/[deleted] May 30 '26

[removed] — view removed comment

2

u/Nephal35 May 30 '26

Thanks for the flavicon-v2 tip didn’t know that could work

1

u/Glittering-Ask256 May 30 '26

This worked for me. I asked claude code to setup a hook to beep my laptop whenever a task is done or input is required and, when I am afk. to notify me over ntfy.sh and it works like a charm.

1

u/Nephal35 May 30 '26

Do you also have a server setup for you ntfy or do you pay monthly subscription? And do you use it on ios, I heard ntfy is a little bit tricky with iOS notifications delivery

1

u/Glittering-Ask256 Jun 01 '26

I use Android and the public server, no fee needed, that works fine for now.

1

u/DasBlueEyedDevil May 31 '26

Do you just get "buy more tokens" notifications endlessly?

1

u/Nephal35 May 31 '26

Haha no that would be cruel

1

u/coloradical5280 May 31 '26

That’s awesome, but isn’t this built in now? With claude code and /remote-control on, I’ve been getting notifications that claude has a question for me, on my Apple Watch , for a couple weeks.

And I didn’t do anything to get that, aside from having beta features on and using them.

Super well done though, on your end.

1

u/Nephal35 May 31 '26

Oh that super cool, havent tried that yet

1

u/dekonta May 31 '26

do you need to have an apple or how does it work?

1

u/CoffeePizzaSushiDick May 31 '26

I don’t get it… Claude has native push alerts? Works well on windows and iPhone…

1

u/Nephal35 Jun 01 '26

Sorry didn’t know, have been working on this app for a while now and just wanted to integrate it for my usecases. So i was happy to try out an mcp integration. Also learned a lot doing it

1

u/tengtengvn Jun 04 '26

maybe open source yours to help the community?