npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

cloudbeds-mcp

v1.0.0

Published

Cloudbeds MCP Server - Hotel management system integration for Claude Desktop

Readme

Cloudbeds MCP Server - Production Ready

A production-ready Model Context Protocol (MCP) server for integrating with the Cloudbeds API to manage hotel reservations, rooms, and guest information.

🎯 Features

  • ✅ Reservation Management: Create, retrieve, and manage hotel reservations
  • ✅ Room Information: Access room types and room details
  • ✅ Guest Management: Handle guest information and profiles
  • ✅ Real-time Data: Direct integration with Cloudbeds API
  • ✅ MCP Protocol: Compatible with MCP-enabled applications
  • ✅ Production Ready: Thoroughly tested and optimized
  • ✅ NPX Support: Easy installation and execution via npx

🚀 Quick Start

Option 1: NPX (Recommended)

The easiest way to use Cloudbeds MCP is via npx:

# Run directly with npx (no installation required)
npx cloudbeds-mcp

# Or install globally
npm install -g cloudbeds-mcp
cloudbeds-mcp

Prerequisites for NPX:

  • Node.js 16.0.0+
  • Python 3.12+
  • Cloudbeds API credentials

Option 2: Manual Installation

  1. Clone the repository

    git clone <repository-url>
    cd cloudbeds_mcp_v1
  2. Install Dependencies

    pip install -r requirements.txt
    # or with uv
    uv sync
  3. Configure Environment

    cp .env.example .env
    # Edit .env with your Cloudbeds API credentials
  4. Start the Server

    python main.py
    # or
    python start_mcp.py

The server will start and be ready to accept MCP connections.

⚙️ Configuration

Environment Setup

Create a .env file in your project directory with your Cloudbeds API credentials:

CLOUDBEDS_API_KEY=your_api_key_here
CLOUDBEDS_PROPERTY_ID=your_property_id_here
CLOUDBEDS_BASE_URL=https://hotels.cloudbeds.com/api/v1.1
LOG_LEVEL=INFO

Claude Desktop Integration

Add the MCP server to your Claude Desktop configuration:

{
  "mcpServers": {
    "cloudbeds": {
      "command": "npx",
      "args": ["cloudbeds-mcp"]
    }
  }
}

Or if installed globally:

{
  "mcpServers": {
    "cloudbeds": {
      "command": "cloudbeds-mcp"
    }
  }
}

🛠️ Available Tools

Reservations

  • get_reservation_tool: Retrieve detailed reservation information
  • get_reservations_tool: List reservations with date filters

Rooms

  • get_room_types_tool: Get available room types and details
  • get_rooms_tool: Get individual room information

📋 Usage Examples

📁 Project Structure

src/
├── server.py              # Main MCP server (production-ready)
├── config.py              # Configuration management
├── cloudbeds_client.py    # Cloudbeds API client with FormData support
└── tools/                 # MCP tools
    ├── reservations.py    # Reservation management tools
    └── rooms.py           # Room information tools

utils/
└── backup_from_api.py     # Data backup utility

docs/
├── MCP_IMPLEMENTATION_README.md  # Technical implementation details
└── TECHNICAL_README_MCP_RESERVATIONS.md  # Original technical docs

🔧 Production Features

Security

  • ✅ API keys stored in environment variables
  • ✅ No sensitive data logged
  • ✅ Proper error handling prevents information leakage

Performance

  • ✅ Rate limiting respects Cloudbeds API limits (10 req/sec)
  • ✅ Async implementation for better concurrency
  • ✅ Efficient FormData processing

Reliability

  • ✅ Comprehensive input validation
  • ✅ Proper error handling and recovery
  • ✅ Detailed logging for debugging
  • ✅ Production-tested implementation

📊 Validation Status

The implementation has been thoroughly tested and validated:

  • Reservation Retrieval: 100% working
  • Room Types: 100% working
  • Room Information: 100% working
  • Error Handling: Comprehensive
  • API Integration: Fully compatible
  • MCP Protocol: Fully compliant

📚 Documentation

🆘 Troubleshooting

Common Issues

  1. Authentication Errors: Verify API key and property ID in .env
  2. Server Won't Start: Check that port 8000 is available
  3. Reservation Creation Fails: Verify room type IDs are valid

Error Codes

  • 400: Invalid request parameters
  • 401: Authentication failed
  • 403: Insufficient permissions
  • 429: Rate limit exceeded

📈 Monitoring

The server provides comprehensive logging for production monitoring:

  • Request/response tracking
  • Error logging with details
  • Performance metrics
  • API rate limiting status

🏆 Production Ready

This implementation is production-ready and has been:

  • ✅ Thoroughly tested with real Cloudbeds API
  • ✅ Optimized for performance and reliability
  • ✅ Cleaned of all development artifacts
  • ✅ Documented for production deployment
  • ✅ Validated with comprehensive test suite

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.