Skip to main content
Glama
maboukerfa

AirTrail MCP Server

by maboukerfa
README.md
# AirTrail MCP Server

An MCP (Model Context Protocol) server for managing your [AirTrail](https://github.com/johanohly/AirTrail) flight tracking instance through AI assistants.

## Overview

This server enables LLMs to interact with your self-hosted AirTrail application, providing natural language access to your flight data. Manage your travel history, search flights, and analyze statistics through conversational interfaces.

**Example:**
> When was my last trip to france?

> Get my flights tickets from the download foolder and add the trips information to airtrail 

## Prerequisites

- A running [AirTrail](https://github.com/johanohly/AirTrail) instance
- MCP-compatible client (Claude Code/Desktop, [OpenCode](https://opencode.ai/))
- AirTrail API credentials

## Usage 
1. Clone this project
2. Create a .env file
```txt
AIRTRAIL_API_KEY=
AIRTRAIL_BASE_URL=http://localhost:5173/api
AIRTRAIL_USER_ID=
```
3. Edit your client config file 
```json
{
  "mcpServers": {
    "airtrail": {
      "command": "uv",
      "args": ["run" , "/the-project-path/AirTrail_MCP_server/src/server.py"],
    }
  }
}
```

TDQS

C2.5/5.0

Scored across 3 tools

Disambiguation4/5

The three tools have distinct purposes (add, retrieve specific, list all), but add_flight lacks a description which slightly increases ambiguity.

Naming Consistency5/5

All tool names follow a consistent snake_case verb_noun pattern, making them predictable.

Tool Count4/5

Three tools is slightly sparse but appropriate for a basic flight tracking server covering add, get, and list operations.

Completeness3/5

The set covers adding, retrieving, and listing flights, but lacks update and delete operations, which are notable gaps for a complete lifecycle.

Maintenance

ActivityInactive
ResponsivenessNo issues