内容
# AirLabs MCP Server
一个专门的模型上下文协议(MCP)服务器,通过 [AirLabs](https://airlabs.co/) 将 AI 助手(如 Poke、Claude 等)连接到实时全球航班数据。
## Features
### ✈️ Flight Data Tools
* **`airlabs_get_flight_status`**: 特定航班的实时跟踪(例如,“KL601”)。
* **`airlabs_get_schedules`**: 查找机场之间的航班时刻表(例如,“AMS”到“SFO”)。
* **`airlabs_get_airport_delays`**: 检查特定机场的延误情况。
* **`airlabs_search_airports`**: 按城市名称查找 IATA 代码(例如,“London” -> LHR, LGW)。
* **`airlabs_get_nearby_airports`**: 查找特定位置附近的机场。
## Setup & Running Locally
1. **Clone the repo**
```bash
git clone [https://github.com/gsa87/airlabs-mcp-server.git](https://github.com/gsa87/airlabs-mcp-server.git)
cd airlabs-mcp-server
```
2. **Install Dependencies**
```bash
pip install -r requirements.txt
```
3. **Configure Environment Variables**
复制示例环境文件并添加您的 API 密钥:
```bash
cp .env.example .env
```
打开 `.env` 并粘贴您的密钥:
```text
AIRLABS_API_KEY=your_actual_api_key_here
```
4. **Run the Server**
```bash
python src/server.py
```
## Deployment on Render
1. Fork this repository.
2. Create a new **Web Service** on Render.
3. Connect your GitHub repo.
4. Add the following **Environment Variable** in the Render dashboard:
* `AIRLABS_API_KEY`
5. Deploy!
## API Key
从 [AirLabs.co](https://airlabs.co/) 获取免费的 API 密钥。
## License
MIT