duffel_mcp.py•792 B
#!/usr/bin/env python3
"""
Duffel MCP Server
A Model Context Protocol server for the Duffel API, enabling LLMs to search and book
flights and accommodations, and manage travel bookings through a unified interface.
This server integrates with Duffel's comprehensive travel API to provide:
- Flight search and booking
- Accommodation (stays) search and booking
- Order management and modifications
- Supporting resources (airports, airlines, accommodations, etc.)
"""
# Import the MCP server instance
from duffel_mcp.server import mcp
# Import tools to register them with the server
# The import will cause the @mcp.tool decorators to register the tools
from duffel_mcp.tools import flights, stays, airports # noqa: F401
if __name__ == "__main__":
# Run the MCP server
mcp.run()