We just open-sourced MCP TravelCode — a Model Context Protocol server that connects AI assistants to the Travel Code corporate travel API.
Your AI assistant can now search for flights, book hotels, manage orders, and track flight status — all through natural language conversations.
What is MCP?
Model Context Protocol (MCP) is an open standard that lets AI assistants connect to external tools and data sources. Think of it as USB-C for AI — one protocol, universal connectivity.
MCP TravelCode implements this standard for corporate travel, giving any compatible AI client access to real travel infrastructure.
Features
- 🔍 Flight search — multi-city, one-way, round-trip with cabin class and passenger filters
- 🏨 Hotel search — star rating, meal plans, refundability, price filters with SSE streaming
- 📊 Flight status — real-time tracking with delays, gates, terminals, and aircraft info
- 📈 Delay statistics — historical delay and cancellation data for flights and airports
- 📋 Order management — create, cancel, modify bookings; check cancellation conditions
- 🌍 Airport & airline data — search by name, city, IATA/ICAO code
Security
Authentication via OAuth 2.1 + PKCE — secure browser-based authorization with automatic token refresh. No API keys stored in config files.
Quick Start
Setup takes a single command. First, authenticate:
npx mcp-travelcode-auth auth
Then add to your AI client config (e.g., claude_desktop_config.json):
{
"mcpServers": {
"travelcode": {
"command": "npx",
"args": ["mcp-travelcode"]
}
}
}
For Claude Code:
claude mcp add travelcode -- npx mcp-travelcode
Supported Clients
MCP TravelCode works with all major AI clients:
| Client | Transport | Status |
|---|---|---|
| ChatGPT Desktop | stdio | ✅ Compatible |
| Claude Desktop | stdio | ✅ Tested |
| Claude Code | stdio | ✅ Tested |
| Gemini | stdio | ✅ Compatible |
| GitHub Copilot | stdio | ✅ Compatible |
| Cursor | stdio | ✅ Tested |
| Windsurf | stdio | ✅ Compatible |
| VS Code | stdio | ✅ Compatible |
| JetBrains IDEs | stdio | ✅ Compatible |
| Zed | stdio | ✅ Compatible |
| Cline | stdio | ✅ Compatible |
| Continue | stdio | ✅ Compatible |
Two transport modes: stdio (local) and HTTP/SSE (remote).
Example Conversation
You: Find me flights from Amsterdam to London next Friday, economy class
AI: Searches the Travel Code API, returns real-time results with prices, times, and airlines
You: Book the KLM flight at 9:15 AM
AI: Creates the booking through the API
That's it. Natural language → real travel actions.
Links
- GitHub: github.com/egorceo/mcp-travelcode
- npm: npmjs.com/package/mcp-travelcode
- Announcement: travel-code.com/news/mcp-travelcode-ai-travel-assistant
MIT license. 577+ monthly npm downloads.
Built by Travel Code — AI-powered corporate travel management.
Top comments (0)