Transport
Data source: Entur
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"}}}'
REST API
API Root
https://context.gnist.ai/rest/entur/
3 endpoints available:
GET /rest/entur/search_stopsGET /rest/entur/get_departuresGET /rest/entur/report_feedback
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())
Command Line
Command
gc entur
CLI documentation will be available when the GnistAI SDK is published.
Install
pip install gnistai
Available Tools (3)
search_stopsSearch for transit stops by name.
| Parameter | Type | Required | Description |
|---|---|---|---|
query | string | required | Stop name or partial name to search for. |
lat | any | optional | Optional latitude to boost nearby results. |
lon | any | optional | Optional longitude to boost nearby results. |
limit | integer | optional | Maximum number of results (default 5). (default: 5) |
get_departuresGet upcoming departures from a transit stop.
| Parameter | Type | Required | Description |
|---|---|---|---|
stop_id | string | required | The stop ID (e.g. NSR:StopPlace:59872 for Oslo S). Use search_stops to find IDs. |
limit | integer | optional | Maximum number of departures (default 10). (default: 10) |
report_feedbackReport a bug, feature request, or general feedback for this data source.
| Parameter | Type | Required | Description |
|---|---|---|---|
feedback | string | required | |
feedback_type | string | optional | (default: "general") |