AENA Flights MCP
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@AENA Flights MCPShow me departures from Madrid-Barajas."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
AENA Flights MCP
Español: README.es.md
An MCP server for flight data across the 50 Spanish airports run by AENA. It puts both of AENA's flight APIs behind one clean set of tools, so an agent asks for flights and gets back the same flight shape no matter which API answered.
Why two APIs
AENA exposes two ways to read flights, and each covers a gap the other leaves open.
Website API is public and needs no credentials. It sees roughly 14 days ahead but has no past data, and it reports local times. Good for discovery.
REST API uses OAuth2 and needs a client secret. It sees about 54 hours into the past and 24 ahead, reports UTC, and tells you the real operating flight behind a codeshare. Good for tracking.
The server picks the right one for you (source: "auto"), or you can force either. Without a secret it runs in website-only mode and still works.
Related MCP server: flight-tracker
Tools
search_flights— arrivals or departures for an airport, with an optional flight-number filter.get_flight— one flight by number at an airport.list_airports— every AENA airport with IATA/ICAO codes, fetched live.
Install
pnpm install
pnpm buildConfigure
Copy .env.example to .env. The website API needs nothing. For the REST API set AENA_CLIENT_SECRET; AENA_CLIENT_ID and AENA_TENANT_ID already have working defaults.
{
"mcpServers": {
"aena": {
"command": "node",
"args": ["/path/to/aena-mcp/dist/index.js"]
}
}
}Development
pnpm install
pnpm build # tsc → dist/
pnpm test # unit tests over captured fixtures, no network, no credentials
pnpm inspect # drive a live stdio session with the MCP inspectorParsing lives in pure normalizers (normalizeWebsiteRow, normalizeRestRow)
so the mapping is tested without a live call. See CONTRIBUTING.md.
CI runs the tests on Node 20 and 22 plus an MCP inspector smoke. Tagged pushes
(v*) publish to npm (OIDC trusted publishing), the MCP Registry, and attach a
.mcpb bundle to the GitHub release.
Notes on the data
Arrivals is
"A"in the REST API but"L"in the website API. The server hides this.The REST
airlineIATAfield actually carries the ICAO code. The server resolves both.Neither API filters by flight number on the server, so searches pull the whole airport and filter locally.
Neither gives real takeoff or landing times, only scheduled and estimated. For wheels-off and wheels-on you need a source like FlightRadar24.
License
MIT
Maintenance
Related MCP Servers
- AlicenseBqualityDmaintenanceProvides access to real-time and historical flight data from Flightradar24 API, enabling users to track live aircraft positions, query flight histories, and retrieve comprehensive aviation information including aircraft, airline, and airport details.158MIT
- Alicense-qualityCmaintenanceProvides comprehensive flight tracking capabilities using the OpenSky Network API, enabling real-time flight data, geographic searches, historical data, and airport operations through MCP tools.MIT
- Alicense-qualityCmaintenanceProvides live US airport operational status and delay data from the FAA, free and without authentication.11MIT
- Alicense-qualityDmaintenanceProvides real-time flight status, airport weather, delays, cheap flight deals, and TSA wait times without requiring an API key.19MIT
Related MCP Connectors
Airports MCP — wraps AirportGap API (free, no auth required)
Aviationstack MCP — global flight + airport + airline data
Live flight prices and working booking links for AI agents and travel apps.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/MrGo2/aena-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server