naolib-mcp

v1.2.0
naolib-mcp Checked 20 hours ago Published 6 months ago

Serveur MCP pour les informations de trafic en temps réel de Naolib (Nantes)

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

check_api_status

Verify the availability of the Naolib SIRI services (raw XML, no auth). Uses POST /anshar/services with a CheckStatusRequest. Accès libre : limité à 1 requête / 30 secondes.

check_api_status_soap

Verify the availability of the Naolib SIRI services via SOAP (no auth). Uses POST /anshar/ws/siri with a SOAP CheckStatus envelope. Accès libre : limité à 1 requête / 30 secondes.

search_stop

Search for a stop by name and return its StopPoint ID. Uses fuzzy matching against the NeTEx stop index (cached locally). The returned ID can be passed directly to ``get_stop_monitoring``.

ParameterTypeDescription
query *string

get_stop_monitoring

Get real-time arrivals for a specific stop via raw XML (auth required). The ``stop_id`` should be the raw stop identifier returned by ``search_stop`` (e.g. ``FR_NAOLIB:Quay:2687``). Use ``search_stop`` to find it by name first. Uses POST /anshar/services with a StopMonitoringRequest (requires NAOLIB_API_KEY). datasetId header is set to NAOLIBORG. Args: stop_id: Raw stop ID (as returned by search_stop). No 'StopPoint:' prefix. maximum_visits: Maximum number of departures to return (default: 5).

ParameterTypeDescription
stop_id *string
maximum_visitsinteger

get_traffic_alerts

Get real-time traffic alerts and disruptions (SIRI Situation Exchange). Returns current disruptions, incidents, and service alerts on the Naolib network. Uses SIRI Lite GET /siri/2.0/situation-exchange.json (requires NAOLIB_API_KEY).

get_general_messages

Get general messages and service announcements (SIRI General Message). Returns informational messages, service notices, and announcements on the Naolib network (e.g. planned works, service changes). Uses SIRI Lite GET /siri/2.0/general-message.json.

get_vehicle_monitoring

Get real-time vehicle positions on a specific line (SIRI Vehicle Monitoring). Returns the live GPS positions of all vehicles running on the given line. Use ``discover_lines()`` to find valid line identifiers. Uses SIRI Lite GET /siri/2.0/vehicle-monitoring.json (requires NAOLIB_API_KEY). Args: line_ref: Line identifier (e.g. ``"Line:A"`` or ``"FR_NAOLIB:Line:TM:A"``).

ParameterTypeDescription
line_ref *string

get_estimated_timetables

Get estimated arrival/departure times for a specific line (SIRI ET). Returns the expected arrival and departure times for all stops on a given line. Use ``discover_lines()`` to find valid line identifiers. Uses SIRI Lite GET /siri/2.0/estimated-timetables.json (requires NAOLIB_API_KEY). Args: line_ref: Line identifier (e.g. ``"Line:A"`` or ``"FR_NAOLIB:Line:TM:A"``).

ParameterTypeDescription
line_ref *string

get_facility_status

Get real-time status of facilities and equipment at a stop (SIRI Facility Monitoring). Returns the operational status of elevators, escalators, ticket machines, and other equipment at a given stop. Uses SIRI Lite GET /siri/2.0/facility-monitoring.json. Without a stop_id, returns the overall facility status of the network. Args: stop_id: Optional stop identifier to filter facilities (e.g. ``"StopPoint:BAB"``).

ParameterTypeDescription
stop_idstring

discover_stops

Discover available stop points via SIRI StopPointsDiscovery (SIRI Lite). Returns all stop points available in the Naolib dataset, optionally filtered by a search query. Uses SIRI Lite GET /siri/2.0/stoppoints-discovery.json. Note: For detailed stop searches with fuzzy matching, prefer ``search_stop()``. This tool is best used without a query to list all available stop IDs, or with a partial name to filter results. Args: query: Optional stop name filter (case-insensitive partial match).

ParameterTypeDescription
querystring

discover_lines

Discover available lines via SIRI LinesDiscovery (SIRI Lite). Returns all public transport lines (tram, bus, etc.) available in the Naolib dataset, optionally filtered by a search query. Uses SIRI Lite GET /siri/2.0/lines-discovery.json. Use the returned line IDs with ``get_vehicle_monitoring()`` or ``get_estimated_timetables()``. Args: query: Optional line name or number filter (case-insensitive partial match).

ParameterTypeDescription
querystring