Skip to main content

Using Hospitable's MCP Server to automate a nightly vacancy offer

  • May 8, 2026
  • 17 replies
  • 819 views

Jason
Known Participant
Forum|alt.badge.img+1

I've been experimenting with connecting Hospitable to Claude using the new MCP server. Wanted to share what I built in case it's useful to others.

The idea

Every evening at 7 PM, a script automatically checks whether any guests checking out tomorrow are sitting in a room that's vacant the following night. If so, it sends them a warm, personal message offering to extend their stay one more night at a 20% discount.

The economics are simple: if a guest stays an extra night in the same room, I get revenue without having to turn over the room. No extra cleaning, no gap to fill. If they say no, no harm done.

How it works

The script uses Hospitable's MCP server to give Claude access to my properties, reservations, and calendar — and the ability to send messages. Each evening Claude:

  1. Pulls all my properties
  2. Finds which guests check out tomorrow
  3. Checks each of those rooms to see if tomorrow night is vacant
  4. Sends a personal, non-automated-feeling message to any guest in a vacant room

The setup

It's a small Node.js app running on Railway (a simple hosting platform). 

The code is on Github here.

Happy to answer questions or share more details if anyone wants to build something similar.

17 replies

doreen
New Participant
Forum|alt.badge.img
  • New Participant
  • May 8, 2026

I actually take this one step further, I check ALL future reservations with a 1 day gap and offer both the incoming and outgoing guests the extra day for 20% discount. Why? Because people may want to change flights plans much earlier than last minute so this fills the gap way earlier with higher chance of success.

I still do a last minute additional message in case there is a gap offering late checkout or early check in in case there is a gap for XXX, or the extra day if plans changed….

is amazing how many gaps I have been able to fill this way.


jandr
New Participant
Forum|alt.badge.img
  • New Participant
  • May 9, 2026

I haven’t hosted anything on railway, do you mind me asking your railway costs? (I already have an anthropic sub)


roxe
New Participant
Forum|alt.badge.img
  • New Participant
  • May 10, 2026

love this, thanks for sharing. 


roxe
New Participant
Forum|alt.badge.img
  • New Participant
  • May 10, 2026

Can you automate this Doreen? 


donna
Participating Frequently
Forum|alt.badge.img+1
  • Participating Frequently
  • May 11, 2026

Can hospitable do this without having an extra gadget to have to use? 


Forum|alt.badge.img+3
  • Inspiring
  • May 11, 2026

Cool idea. I’d want to add a conditional to it so that it does NOT send the offer if tomorrow’s empty night is a Friday or Saturday (since I don’t allow Saturday Checkins or Checkouts)


Forum|alt.badge.img+3
  • Inspiring
  • May 11, 2026

I actually take this one step further, I check ALL future reservations with a 1 day gap and offer both the incoming and outgoing guests the extra day for 20% discount. Why? Because people may want to change flights plans much earlier than last minute so this fills the gap way earlier with higher chance of success.

I still do a last minute additional message in case there is a gap offering late checkout or early check in in case there is a gap for XXX, or the extra day if plans changed….

is amazing how many gaps I have been able to fill this way.


How far in advance though?  When does it run, when a booking comes in and creates the Gap? Does it have logic to NOT send the offer if the offer has already been previously sent? Can you add conditionals like “Don’t send if the Gap night is a Friday” for example?


Jason
Known Participant
Forum|alt.badge.img+1
  • Author
  • Known Participant
  • May 11, 2026

Oh that’s a great idea, Doreen! Thanks for sharing it. I’ve implemented that and updated the code on Github (the source is in my original message). 

I accept weekend reservations, so have not implemented the ability to not send the offer if the gap is a friday/sat. You could easily do so, though. The source is freely available for tinkering. 

In my version, I have it running on reservations 30 days into the future. I initially tried 90 days but quickly hit api rate limits with Anthropic when it was trying to process reservations across 3 properties 90 days out. Setting it to 30 days solved it without me having to upgrade to a higher-tier plan. 

 

To answer some other questions in this thread:

  1. I’m doing this with a $20/month anthropic account
  2. It looks like it’ll use about $2/month of Railway costs. I’ve kept this low by using Zapier to power down the Railyway worker when it’s not needed. It powers on at 6:45pm, this thing runs, and it turns back off at 8:00pm. 
  3. No, Hospitable can’t do this on it’s own but the MCP server functionality (which this forum is about) makes it possible with some tinkering and nerdery. 

Forum|alt.badge.img+3
  • Inspiring
  • May 11, 2026

Oh that’s a great idea, Doreen! Thanks for sharing it. I’ve implemented that and updated the code on Github (the source is in my original message). 

I accept weekend reservations, so have not implemented the ability to not send the offer if the gap is a friday/sat. You could easily do so, though. The source is freely available for tinkering. 

In my version, I have it running on reservations 30 days into the future. I initially tried 90 days but quickly hit api rate limits with Anthropic when it was trying to process reservations across 3 properties 90 days out. Setting it to 30 days solved it without me having to upgrade to a higher-tier plan. 

 

To answer some other questions in this thread:

  1. I’m doing this with a $20/month anthropic account
  2. It looks like it’ll use about $2/month of Railway costs. I’ve kept this low by using Zapier to power down the Railyway worker when it’s not needed. It powers on at 6:45pm, this thing runs, and it turns back off at 8:00pm. 
  3. No, Hospitable can’t do this on it’s own but the MCP server functionality (which this forum is about) makes it possible with some tinkering and nerdery. 

You can probably save the Railyway cost by using a Cloudflare worker instead.


britbnhb
New Participant
Forum|alt.badge.img
  • New Participant
  • May 11, 2026

I’m not sure if this is appropriate here - I’m new to using the Community resource, but this thread caught my eye! I am desperately trying to automate and don’t have any coding, etc., experience. I’ve dedicated a lot of time, but don’t have the time that’s needed to really educate myself, so I haven’t had much success, and find that it really sucks me in, so I need to delegate that so I don’t lose focus. I’m looking to hire someone who can assist in setting up some basic automations and possibly a crash course in absolute need-to-knows so that I may do the most simple on my own in the future. Can anyone point me in the right direction? TYIA!


britbnhb
New Participant
Forum|alt.badge.img
  • New Participant
  • May 11, 2026

and I should add - I typically catch on quickly - but all of the digital resources I use for the business have caused terrible option fatigue. I’m hoping that DIY will allow me to customize instead of searching for perfection and reinventing the wheel every time a platform comes out with a new feature. 


Brennan
New Participant
Forum|alt.badge.img+1
  • New Participant
  • May 11, 2026

I’ve been surprised Hospitable doesn’t have this as a built in option already. I know other PMS systems do. I’m a huge hospitable fan but this is one place they could improve.


JenofLions
Participating Frequently
Forum|alt.badge.img
  • Participating Frequently
  • May 12, 2026

I've been experimenting with connecting Hospitable to Claude using the new MCP server. Wanted to share what I built in case it's useful to others.

The idea

Every evening at 7 PM, a script automatically checks whether any guests checking out tomorrow are sitting in a room that's vacant the following night. If so, it sends them a warm, personal message offering to extend their stay one more night at a 20% discount.

The economics are simple: if a guest stays an extra night in the same room, I get revenue without having to turn over the room. No extra cleaning, no gap to fill. If they say no, no harm done.

How it works

The script uses Hospitable's MCP server to give Claude access to my properties, reservations, and calendar — and the ability to send messages. Each evening Claude:

  1. Pulls all my properties
  2. Finds which guests check out tomorrow
  3. Checks each of those rooms to see if tomorrow night is vacant
  4. Sends a personal, non-automated-feeling message to any guest in a vacant room

The setup

It's a small Node.js app running on Railway (a simple hosting platform). 

The code is on Github here.

Happy to answer questions or share more details if anyone wants to build something similar.

Out of curiosity - why aren’t you using the Smart Upsell feature in Hospitable for this? Very cool, but Hospitable already automates it for you and adds the offer to any message you insert the smart code. 
 

Link to the Hospitable tutorial and related how-to:

https://help.hospitable.com/en/articles/2288653-tutorial-offering-extended-stay

 https://help.hospitable.com/en/articles/10067340-how-to-offer-paid-upsells-to-your-guests


Jason
Known Participant
Forum|alt.badge.img+1
  • Author
  • Known Participant
  • May 12, 2026

OMG Jen van Leeuwen - I totally did not realize this is already possible via custom codes. That tutorial does most of what my script does, and with a very elegant solution. Goodness.

 

Overall, I didn’t realize the Conditions for custom codes had become so rich. That is a gold mine of messaging variables! 

 

Nice find,

Jason


JenofLions
Participating Frequently
Forum|alt.badge.img
  • Participating Frequently
  • May 12, 2026

Now you can find another cool way to burn through tokens 😎 


donnalbert
New Participant
Forum|alt.badge.img
  • New Participant
  • May 13, 2026

I've been experimenting with connecting Hospitable to Claude using the new MCP server. Wanted to share what I built in case it's useful to others.

The idea

Every evening at 7 PM, a script automatically checks whether any guests checking out tomorrow are sitting in a room that's vacant the following night. If so, it sends them a warm, personal message offering to extend their stay one more night at a 20% discount.

The economics are simple: if a guest stays an extra night in the same room, I get revenue without having to turn over the room. No extra cleaning, no gap to fill. If they say no, no harm done.

How it works

The script uses Hospitable's MCP server to give Claude access to my properties, reservations, and calendar — and the ability to send messages. Each evening Claude:

  1. Pulls all my properties
  2. Finds which guests check out tomorrow
  3. Checks each of those rooms to see if tomorrow night is vacant
  4. Sends a personal, non-automated-feeling message to any guest in a vacant room

The setup

It's a small Node.js app running on Railway (a simple hosting platform). 

The code is on Github here.

Happy to answer questions or share more details if anyone wants to build something similar.

 


donnalbert
New Participant
Forum|alt.badge.img
  • New Participant
  • May 13, 2026

Is Clause another hosting platform?