Back to MCP directory
publicPublicdnsLocal runtime

Amadeus Flight Search

Amadeus MCP服务器整合了航班搜索功能与Claude桌面应用

article

README

🚀 Amadeus MCP 服务器

本 MCP 服务器实现了 Amadeus 的航班搜索功能与 Claude Desktop 的集成,能让你方便地在 Claude Desktop 中使用航班搜索服务。

🚀 快速开始

环境配置

  1. .env 文件所需环境变量
AMADEUS_API_KEY=your_key
AMADEUS_API_SECRET=your_secret
  1. Claude Desktop 配置
{
  "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 格式

🔧 技术细节

架构说明

  • 使用 FastMCP 作为服务器实现。
  • 实现了标准输入输出传输。
  • 记录到文件和 stderr。
  • 处理异步航班搜索操作。

📚 详细文档

常见问题

连接超时

  • 检查 server.py 日志(位于 amadeus_mcp.log)。
  • 验证环境变量。
  • 检查 Claude Desktop 日志。
  • 参阅 MCP 文档 了解详细信息。

认证错误

  • 验证 Amadeus API 凭据。
  • 检查 .env 文件权限。
  • 确保凭据正确加载。

调试步骤

运行独立测试

npx @modelcontextprotocol/inspector python path/to/server.py

查看日志

tail -f amadeus_mcp.log

验证环境

python -c "import os; print(os.getenv('AMADEUS_API_KEY'))"

📄 支持资源

  1. 模型上下文协议文档
  2. Amadeus API 文档
  3. Claude Desktop MCP 指南
help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client