Skip to main content

Hotel search service built with Google's Agent Developer Kit (ADK) and MCP

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_hotel_search-0.1.2.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_hotel_search-0.1.2-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file mcp_hotel_search-0.1.2.tar.gz.

File metadata

  • Download URL: mcp_hotel_search-0.1.2.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for mcp_hotel_search-0.1.2.tar.gz
Algorithm Hash digest
SHA256 b6e1f303d61b27fffdb4d61974c726e712abd8c4bf53ab7c3d062269c4befc59
MD5 1977e2d2660ad0bf7d7654f593c96a17
BLAKE2b-256 efc30d498d4dc54effbe31942f9eda2531493b25bfb14a6d23b13018083834f3

See more details on using hashes here.

File details

Details for the file mcp_hotel_search-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_hotel_search-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 752e89328bb5e0f5eea5d263bab5a47df78ff531773d47fd5d8c729379760699
MD5 b87b1bb3d013a3ac0294a287719c267b
BLAKE2b-256 f5b6be4b1489f1bb10ec2943a300201c973bfbc896151df11797ae1aaa1f7fb6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page