GnistAI GnistAI
Log in

Entur (Norwegian Transit)

Norwegian public transit — routes, stops, departures, and journey planning.

Overview   |   MCP Docs   |   API Docs   |   OpenAPI   |   Playground   |   Tutorial   |   Toolkits   |   Home
status: healthy status status healthy healthy tools: 3 tools tools 3 3 Transport

Data source: Entur

MCP MCP Protocol

Endpoint https://context.gnist.ai/mcp/entur/
claude_desktop_config.json
{
  "mcpServers": {
    "gnist-entur": {
      "url": "https://context.gnist.ai/mcp/entur/",
      "headers": {
        "Gnist-API-Key": "YOUR_API_KEY"
      }
    }
  }
}
Shell
curl -X POST "https://context.gnist.ai/mcp/entur/" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -H "Gnist-API-Key: YOUR_API_KEY" \
  -d '{"jsonrpc": "2.0", "method": "tools/call", "id": 1, "params": {"name": "search_stops", "arguments": {"query": "example"}}}'

API REST API

API Root https://context.gnist.ai/rest/entur/

3 endpoints available:

Shell
curl "https://context.gnist.ai/rest/entur/search_stops?query=example" \
  -H "Gnist-API-Key: YOUR_API_KEY"
Python
import httpx

resp = httpx.get(
    "https://context.gnist.ai/rest/entur/search_stops",
    headers={"Gnist-API-Key": "YOUR_API_KEY"},
    params={
        "query": "example"
},
)
print(resp.json())

OpenAPI Spec  ·  Full API Docs

CLI Command Line

Command gc entur

CLI documentation will be available when the GnistAI SDK is published.

Install
pip install gnistai

Available Tools (3)

search_stops
Search for transit stops by name.
ParameterTypeRequiredDescription
querystringrequiredStop name or partial name to search for.
latanyoptionalOptional latitude to boost nearby results.
lonanyoptionalOptional longitude to boost nearby results.
limitintegeroptionalMaximum number of results (default 5). (default: 5)
get_departures
Get upcoming departures from a transit stop.
ParameterTypeRequiredDescription
stop_idstringrequiredThe stop ID (e.g. NSR:StopPlace:59872 for Oslo S). Use search_stops to find IDs.
limitintegeroptionalMaximum number of departures (default 10). (default: 10)
report_feedback
Report a bug, feature request, or general feedback for this data source.
ParameterTypeRequiredDescription
feedbackstringrequired
feedback_typestringoptional (default: "general")

Related