Skip to main content

MCP Hotel Search

A hotel search service built with Google's Agent Developer Kit (ADK) and Model Context Protocol (MCP). This service enables AI models to search for hotels using SerpAPI .

What is Model Context Protocol?

The Model Context Protocol (MCP) is a standard developed by Anthropic that enables AI models to use tools by defining a structured format for tool descriptions, calls, and responses. This project implements an MCP tool using Google's ADK that can be used by Claude and other MCP-compatible models.

Installation

# Install from PyPI
pip install mcp-hotel-search

# Or install from the project directory (development mode)
git clone https://github.com/arjunprabhulal/mcp-hotel-search.git
cd mcp-hotel-search
pip install -e .

Prerequisites

This project requires:

  • Google's Agent Developer Kit (google-ai-adk)
  • MCP Python SDK (mcp-python-sdk)
  • SerpAPI API key (google-search-results)
  • Python 3.9+

Usage

Once installed, you can run the server using the command-line entry point:

# Ensure SERP_API_KEY is set as an environment variable or in a .env file
mcp-hotel-search

Environment Variables

Set the SerpAPI key as an environment variable:

export SERP_API_KEY="your-api-key-here"

Alternatively, create a .env file in the directory where you run the server:

SERP_API_KEY=your_api_key_here

Features

  • MCP-compliant tool using Google's Agent Developer Kit (ADK) for hotel search functionality
  • Integration with SerpAPI Google Hotels
  • Support for searching hotels with specific check-in and check-out dates
  • Packaged for easy installation and use

MCP Tool

This package provides the following Model Context Protocol tool:

  • search_hotels: Search for hotels with parameters:
    • location: The city or location to search for hotels
    • check_in_date: Check-in date in YYYY-MM-DD format
    • check_out_date: Check-out date in YYYY-MM-DD format

License

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

Author

Arjun Prabhulal

For more articles on AI/ML and Generative AI, follow me on Medium: https://medium.com/@arjun-prabhulal

Metadata

Release files for mcp-hotel-search 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mcp-hotel-search 0.1.2
File Size Uploaded Provenance Actions
mcp_hotel_search-0.1.2.tar.gz 5.5 kB Without provenance Details for mcp_hotel_search-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mcp-hotel-search 0.1.2
File Interpreter ABI Platform Actions
mcp_hotel_search-0.1.2-py3-none-any.whl Python 3 none any Details for mcp_hotel_search-0.1.2-py3-none-any.whl

Total release size: 12.1 kB

Release files / mcp_hotel_search-0.1.2.tar.gz

Download URL mcp_hotel_search-0.1.2.tar.gz
Size 5.5 kB
Tags Source
SHA-256 checksum
How to use checksums
b6e1f303d61b27fffdb4d61974c726e712abd8c4bf53ab7c3d062269c4befc59
BLAKE2b-256 checksum
How to use checksums
efc30d498d4dc54effbe31942f9eda2531493b25bfb14a6d23b13018083834f3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.11

Release files / mcp_hotel_search-0.1.2-py3-none-any.whl

Download URL mcp_hotel_search-0.1.2-py3-none-any.whl
Size 6.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
752e89328bb5e0f5eea5d263bab5a47df78ff531773d47fd5d8c729379760699
BLAKE2b-256 checksum
How to use checksums
f5b6be4b1489f1bb10ec2943a300201c973bfbc896151df11797ae1aaa1f7fb6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.11

Security for mcp-hotel-search 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page