freemantp/flightradar-mcp-server
3.2
If you are the rightful owner of flightradar-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
The Flight Radar MCP Server provides access to ADS-B flight data through the Flight Radar API, offering a range of tools for retrieving and managing flight and aircraft information.
Tools
7
Resources
0
Prompts
0
Flight Radar MCP Server
An MCP (Model Context Protocol) server that provides access to ADS-B flight data through the Flight Radar API.
Features
This MCP server provides the following tools:
- get_meta_info: Get meta information about the Flight Radar API
- check_api_status: Check if the Flight Radar API is alive and ready
- get_flights: Get a list of flights with optional filtering and limiting
- get_flight_by_id: Get detailed information about a specific flight
- get_flight_positions: Get position data for a specific flight
- get_all_positions: Get all position data with optional filtering
- get_aircraft: Get aircraft information by ICAO 24-bit address
Installation
- Set up environment variables:
# Create a .env file with your Flight Radar API base URL
echo "FLIGHTRADAR_API_BASE_URL=your_api_base_url_here" > .env
- Install dependencies:
uv sync
This will:
- Create a virtual environment automatically if one doesn't exist
- Install all dependencies specified in pyproject.toml
- Set up the project for development
Usage
Running the Server Standalone
uv run flight_radar_mcp.py
Configuring with Claude Desktop
Add the following to your Claude Desktop MCP configuration file:
{
"mcpServers": {
"flightradar": {
"command": "/path/to/uv",
"args": ["run", "--directory", "/your/checkout/dir", "flight_radar_mcp.py"],
"env": {
"FLIGHTRADAR_API_BASE_URL": "https://radar-api.com"
}
}
}
}
API Endpoints Covered
GET /api/v1/info
- Get meta informationGET /api/v1/alive
- Check if API is aliveGET /api/v1/ready
- Check if API is readyGET /api/v1/flights
- Get flights with optional filteringGET /api/v1/flights/{flight_id}
- Get specific flight detailsGET /api/v1/flights/{flight_id}/positions
- Get flight position dataGET /api/v1/positions
- Get all position dataGET /api/v1/aircraft/{icao24addr}
- Get aircraft information
Example Usage
Once configured, you can use the MCP server in Claude to:
- Get current flights: "Show me all current flights"
- Filter military flights: "Get all military flights"
- Track specific aircraft: "Get information for aircraft with ICAO address ABC123"
- Get flight positions: "Show the position history for flight XYZ456"
- Check API status: "Is the flight radar API working?"
Data Models
FlightDto
id
: Flight identifiericao24
: ICAO 24-bit addresscls
: Flight class (optional)lstCntct
: Last contact timestampfirstCntct
: First contact timestamp
AircraftDto
icao24
: ICAO 24-bit addressreg
: Registration (optional)icaoType
: ICAO aircraft type (optional)type
: Aircraft type (optional)op
: Operator (optional)
Error Handling
The server includes comprehensive error handling for:
- Network connectivity issues
- API rate limiting
- Invalid parameters
- Missing flight/aircraft data
Requirements
- Python 3.10+
- uv package manager