
AENA Flights MCP
io.github.MrGo2Published by GitHub account MrGo2v0.1.3Updated Oct 24, 2026
Flight data for Spain's 50 AENA airports over the public and OAuth2 REST APIs
Overview
Lets an assistant look up live arrivals, departures, and flight status for Spain's 50 AENA airports.
- What you can do
- Exposes AENA flight data through three tools: search_flights for arrivals or departures at an airport, filtered by flight number, date, or a local-time window; get_flight for a single flight by number; and list_airports for every AENA airport with IATA and ICAO codes. It queries both AENA's public website API and its OAuth2 REST API and normalizes the results into one flight shape, collapsing codeshares and resolving IATA/ICAO differences. Times in the output are local Madrid time.
- When to use it
- Useful when someone wants to ask about Spanish airport traffic in natural language, such as departures from Madrid in an afternoon window, arrivals at Barcelona from London, or the current gate of a specific flight. The website source covers roughly 14 days ahead but no past data, while the REST source covers about 54 hours back and 24 ahead and reveals the operating flight behind a codeshare.
- Requirements
- Runs as a local stdio process via npx mcp-aena (Node.js), or as a desktop extension, or as a hosted remote endpoint. The website API needs no credentials; the REST API needs AENA_CLIENT_SECRET, while AENA_CLIENT_ID and AENA_TENANT_ID have working defaults. Network access is required.
Installation
In SourceWeft
- Open AENA Flights MCP in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
✈️ AENA Flights MCP
Español: README.es.md
Live flight data for the 50 Spanish airports run by AENA, as an MCP server. Ask Claude things like "what departures leave Santiago this afternoon?" or "is IB0459 delayed?" and it answers from real airport data: times, gates, terminals, aircraft, status and codeshares.
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.
🚀 Use it in 30 seconds (no install)
The server runs publicly at https://aena-mcp.carlos-ls.workers.dev/mcp. Add it to Claude with one click:
That link opens claude.ai with the connector prefilled; just confirm. Works on every plan, Free included, and once added it is available in the Claude apps too, phone included. No account, no API key, nothing to configure.
Prefer to add it by hand? Claude → Settings → Connectors → Add custom connector, name it AENA Flights and paste the URL above.
🤖 Also works in ChatGPT
ChatGPT has no one-click install link, but the same server works there (Plus, Pro and Business plans, web only):
- Settings → Apps → Advanced settings → enable Developer mode
- In the Apps panel press + and add the server with URL
https://aena-mcp.carlos-ls.workers.dev/mcp, authentication: none
💬 Things you can ask
- 🛫 "Departures from MAD between 16:00 and 18:00"
- 🛬 "What flights arrive at BCN from London tomorrow afternoon?"
- 🔍 "Where is flight UX7235 right now, which gate?"
- 🏝️ "List all AENA airports in the Canary Islands"
🖥️ Other ways to run it
Config for npm-based clients:
For Claude Code it is one command:
🧰 Tools
search_flights— arrivals or departures for an airport. Filter by flight number, by date, or by a local-time window (afternoon =fromLocal 12:00,toLocal 20:00). Codeshares of the same physical flight collapse into one entry, and every time in the output is local Madrid time.get_flight— one flight by number at an airport.list_airports— every AENA airport with IATA/ICAO codes, fetched live.
🔀 Why two APIs
AENA exposes two ways to read flights, and each covers a gap the other leaves open.
- 🌐 The website API is public and needs no credentials. It sees roughly 14 days ahead but has no past data. Good for discovery.
- 🔐 The REST API uses OAuth2 and needs a client secret. It sees about 54 hours into the past and 24 ahead, 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. The public remote server has full REST access already configured.
🛠️ From source
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.
The public remote server lives in worker/ (Cloudflare Workers, Streamable HTTP, no auth). To host your own:
Parsing 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. - Flight numbers differ by source: the REST API names flights by ICAO (
VLG1674), the website by IATA (VY1674). - 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
Source: README.md at commit 1c50263
Tools
0Version history
1- v0.1.3LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts