本 MCP 服务器实现了 Amadeus 的航班搜索功能与 Claude Desktop 的集成,能让你方便地在 Claude Desktop 中使用航班搜索服务。
.env 文件所需环境变量:AMADEUS_API_KEY=your_key
AMADEUS_API_SECRET=your_secret
{
"mcpServers": {
"amadeus": {
"command": "python",
"args": ["path/to/amadeus/server.py"],
"env": {
"AMADEUS_API_KEY": "your_key",
"AMADEUS_API_SECRET": "your_secret",
"PYTHONPATH": "path/to/amadeus"
}
}
}
}
参数:
origin:IATA 航空港代码destination:IATA 航空港代码date:YYYY - MM - DD 格式server.py 日志(位于 amadeus_mcp.log)。.env 文件权限。npx @modelcontextprotocol/inspector python path/to/server.py
tail -f amadeus_mcp.log
python -c "import os; print(os.getenv('AMADEUS_API_KEY'))"