The Amadeus MCP Server provides flight search, booking, and analysis capabilities for AI assistants through the Amadeus API. It enables AI systems to find flights, analyze prices, search airports, and provide travel recommendations using the Model Context Protocol.
Clone the repository:
git clone https://github.com/yourusername/amadeus-mcp-server.git
cd amadeus-mcp-server
Install dependencies:
npm install
Create a .env
file in the root directory with your Amadeus API credentials:
AMADEUS_CLIENT_ID=your_client_id
AMADEUS_CLIENT_SECRET=your_client_secret
Build and start the server:
npm run build
npm start
For development mode:
npm run dev
The MCP server provides several tools that can be used by AI assistants:
Search for flights between airports with various parameters using the search-flights
tool.
Find airports by keyword, city name, or IATA code with the search-airports
tool.
Use the flight-price-analysis
tool to determine if current prices are high or low for specific routes.
Get comprehensive information about specific flight offers with the get-flight-details
tool.
Identify the most economical travel dates for a route with the find-cheapest-dates
tool.
The server includes ready-to-use prompts for common travel planning scenarios:
analyze-flight-prices
): Get insights on pricing trends for a routefind-best-deals
): Discover optimal flight options for specific routes and datesplan-multi-city-trip
): Create comprehensive multi-city itinerariesfind-cheapest-travel-dates
): Locate the most economical travel periodsTo use this MCP server with OpenAI's Assistant API or other compatible AI systems, configure the assistant to connect to this server's endpoint. The server provides schema resources for flight offers (schema://flight-offers
) and airports (schema://airports
) that can be used by the AI assistant.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"cursor-rules-mcp": {
"command": "npx",
"args": [
"-y",
"cursor-rules-mcp"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.