NandakrishnanR/MCP_SERVER_CLIENT
3.1
If you are the rightful owner of MCP_SERVER_CLIENT 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.
A simple flight booking system built using MCP (Model Context Protocol) Server-Client architecture.
@right now this is a simple server client service, MCP is under construction on develop branch
Flight Booking System
A simple flight booking system built using MCP (Model Context Protocol) Server-Client architecture.
Project Overview
This is a project that demonstrates how to build a distributed system using MCP protocol. The system allows users to search for flights, book tickets, and check booking status.
Architecture
Why MCP Server-Client Architecture?
- Separation of Concerns: Server handles flight data and booking logic, client handles user interface
- Scalability: Multiple clients can connect to one server (like multiple booking websites using same flight data)
- Security: Sensitive booking data stays on the server, clients only get what they need
- Real-time Updates: When one client books a flight, the server updates availability for all clients
- Modularity: Easy to add new features without changing client code
System Components
- Server (
server/server.py): Handles flight data, booking logic, and provides MCP resources - Client (
client/flight_client.py): User interface that connects to the server - Demo (
demo.py): Shows how the system works
How to Run
Prerequisites
pip install -r requirements.txt
Option 1: Interactive Mode
python client/flight_client.py
Option 2: Demo Mode
python demo.py
Available Operations
- Search Flights: Find flights between two cities
- Book Flight: Reserve a seat on a flight
- Check Booking: View booking details and status
- List Flights: See all available flights