Travel MCP Server
A robust Model Context Protocol (MCP) server for flight bookings, payments, and company policies.
Features
- Tools: Search flights, Book flights, Process payments.
- Resources: User profiles, Pricing rules, Company policies.
- Prompts: Standardized flight booking prompt.
- Transport: Stdio (Standard Input/Output) - ready for local agents.
Installation
Prerequisites
- Python 3.10 or higher
Setup
- Clone this repository or download the source code.
- No external dependencies are required for the server itself!
Usage
Running Locally
To test the server, you can run the main script directly. It listens on stdin.
python main.py
Connecting an Agent
If you are building an MCP Client (like a Gemini or Claude agent), point it to the main.py file with the python executable.
Example Command:
python main.py
Logic Flow
- List Tools: Send
{"type": "list_tools"} - Call Tool: Send
{"type": "call_tool", "tool": "...", "arguments": {...}}
File Structure
main.py: Entry point.protocol/: Protocol handling logic.tools/: Tool implementation (Flights, Payments, etc).resources/: Static or dynamic resources.