globetrotter-personal/globetrotter-mcp-server
If you are the rightful owner of globetrotter-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
The Globetrotter MCP Server is a Spring Boot-based server designed to facilitate interactions between AI assistants and the Globetrotter travel system.
Globetrotter MCP Server
A Spring Boot-based MCP (Model Context Protocol) server for the Globetrotter Travel Application.
Overview
This MCP server provides a standardized interface for AI assistants to interact with the Globetrotter travel system, enabling them to search for flights, manage bookings, and access travel-related information.
Features
- RESTful API endpoints for MCP operations
- Health monitoring and metrics
- Configurable server settings
- Spring Boot 3.2.5 with Java 17
- Comprehensive logging and monitoring
Prerequisites
- Java 17 or higher
- Maven 3.6 or higher
Getting Started
Building the Project
mvn clean install
Running the Application
mvn spring-boot:run
The server will start on port 8082 by default.
Docker
# Build the Docker image
docker build -t globetrotter-mcp-server .
# Run the container
docker run -p 8082:8082 globetrotter-mcp-server
API Endpoints
Health Check
GET /api/mcp/health
- Server health status
Server Information
GET /api/mcp/info
- Server information and capabilities
Management Endpoints
GET /actuator/health
- Spring Boot health checkGET /actuator/info
- Application informationGET /actuator/metrics
- Application metrics
Configuration
The application can be configured using the application.yml
file or environment variables:
server:
port: 8082
mcp:
server:
name: globetrotter-mcp-server
version: 1.0.0
description: MCP Server for Globetrotter Travel Application
Development
Project Structure
src/
āāā main/
ā āāā java/
ā ā āāā com/globetrotter/mcp/
ā ā āāā controller/
ā ā āāā service/
ā ā āāā model/
ā ā āāā McpServerApplication.java
ā āāā resources/
ā āāā application.yml
āāā test/
āāā java/
āāā com/globetrotter/mcp/
Adding New Endpoints
- Create a new controller in the
controller
package - Add appropriate request/response models in the
model
package - Implement business logic in the
service
package - Add tests in the
test
directory
Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests for new functionality
- Submit a pull request
License
This project is licensed under the MIT License.