aria-mcp-trafik-dk

aria-mcp-trafik-dk

Provides access to real-time Danish road traffic events, roadworks, and queues via public data from Vejdirektoratet, enabling AI assistants to check road conditions without any API keys.

Category
访问服务器

README

aria-mcp-trafik-dk

A Model Context Protocol (MCP) server that exposes current Danish road traffic events and roadworks to AI assistants. Built for ARIA and shareable with the community.

Fully keyless — the data source is a public GCS-hosted JSON feed served by Vejdirektoratet as the backend for trafikkort.vejdirektoratet.dk (trafikinfo.dk).

Complements aria-mcp-drivetime-dk: that server computes drive time; this one tells you whether the road is clear.

Data Source

Source What Attribution
Vejdirektoratet / trafikinfo.dk Current traffic events, roadblocks, queues, roadworks, critical announcements Danish Road Directorate — free public traffic data

NAP reference: https://nap.vd.dk (National Access Point for road data, Denmark)

Endpoint details

The app at trafikkort.vejdirektoratet.dk is backed by two public GCS-hosted JSON feeds (discovered by reading the app's JavaScript bundle):

File URL What
big-screen-events.json https://storage.googleapis.com/trafikkort-data/geojson/big-screen-events.json All current incidents, accidents, roadblocks, queues, closures, weather-related events (~3 min cadence)
critical-announcements.json https://storage.googleapis.com/trafikkort-data/geojson/critical-announcements.json Major planned roadworks and critical traffic announcements

Both are plain JSON (GeoJSON-derived), no authentication required, no API key.

Data format

big-screen-events.json is an array of GeoJSON FeatureCollections, one per event (each collection has exactly one feature). Each feature carries:

{
  "type": "Feature",
  "geometry": { "type": "Point", "coordinates": [lon, lat] },
  "properties": {
    "featureId": "...",
    "layerId": "layer_id_19H1",
    "title": "Kør forsigtigt",
    "header": "Kør forsigtigt - E45 fra Randers mod Aalborg ...",
    "description": "<p>HTML description</p>",
    "TrafficMan2_Type": "org.vd.trafficmap.datexii.v32.datamodel.GeneralInstructionOrMessageToRoadUsers",
    "beginPeriod": "13-06-2026 kl. 00:12",
    "endPeriod": "13-06-2026 kl. 02:00",
    "kommune": "Vejdirektoratet",
    "suspended": "false",
    "future": "false",
    "visible": "true"
  }
}

The outer FeatureCollection also carries layerName which classifies the event:

layerName Meaning
current-other-traffic-announcements.point General incidents, accidents, obstructions
current-roadblocks.point Road/lane closures
current-queue.point Traffic queues
current-blocking-events.point Public events with road closures
current-slippery-road.point Slippery road / water on road
current-strong-wind-traffic-announcements.point Strong wind warnings
current-blocking-roadwork.point / current-roadwork.point Active roadworks (when present)

TrafficMan2_Type is a DATEX II v3.2 class path (e.g. ...Accident, ...AbnormalTraffic, ...MaintenanceWorks).

critical-announcements.json is a single FeatureCollection with properties: featureId, title, description (HTML), category, validFrom (ISO datetime).

Fragility notes

  • The GCS bucket (trafikkort-data) is public but not officially documented. It has been stable since at least 2020 (the mobile SDKs reference the same domain). URL changes are possible with app updates.
  • The subdirectory geojson/25832/ (EPSG:25832 projected coordinates) is not publicly accessible — only the geojson/ root files are open.
  • Events arrive as individual FeatureCollections (one per event), so the array length in big-screen-events.json equals the event count (typically 100–300).
  • description contains HTML; this server strips it before returning.
  • beginPeriod / endPeriod are Danish-formatted date strings (e.g. "13-06-2026 kl. 00:12"), not ISO — returned as-is.
  • suspended: "true" means the event is stored but currently inactive (e.g. cleared accident). This server includes suspended events but marks the flag.

Install & Run

npx aria-mcp-trafik-dk

Or install globally:

npm install -g aria-mcp-trafik-dk
aria-mcp-trafik-dk

Requires Node.js 20 or later.

Tools

traffic_events

Fetch current Danish road traffic events.

Parameters:

Name Type Required Description
area string No Free-text region/road filter, e.g. "E45", "Horsens", "Fyn"
type string No "all" (default) | "incident" | "roadwork" | "queue"

Returns: Array of traffic events:

[
  {
    "type": "Traffic message",
    "road": "E45 fra Randers mod Aalborg",
    "location": "Kør forsigtigt - E45 fra Randers mod Aalborg mellem <35> Hobro V og <34> Hobro N",
    "description": "E45 fra Randers mod Aalborg mellem <35> Hobro V og <34> Hobro N Havareret køretøj, Pas på I højre spor, vejhjælp er på vej",
    "from": "13-06-2026 kl. 00:12",
    "severity": "warning",
    "suspended": false,
    "coordinates": [9.733868, 56.66633]
  }
]

roadworks

Fetch planned and ongoing roadworks.

Parameters:

Name Type Required Description
area string No Free-text region/road filter

Returns: Mixed array of TrafficEvent objects (from live roadwork layers) and CriticalAnnouncement objects (from critical-announcements.json):

[
  {
    "id": "9349df74-15e8-4ffc-93e7-e3e236720da9",
    "title": "E45 Østjyske Motorvej spærres ved Horsens",
    "description": "I forbindelse med bronedrivning spærres E45 Østjyske Motorvej ...",
    "category": "Trafikal forsidemelding (trafikkort)",
    "validFrom": "2026-06-12T10:56:00.410Z"
  }
]

events_near

Find traffic events within a radius of a geographic point.

Parameters:

Name Type Required Description
lat number Yes Latitude (WGS84)
lon number Yes Longitude (WGS84)
radiusKm number No Radius in km (default 25, max 200)

Returns: Array of traffic events, each with an added distanceKm field, sorted by distance ascending.

[
  {
    "type": "Road/lane closure",
    "road": "E45 Østjyske Motorvej",
    "location": "...",
    "description": "...",
    "severity": "blocking",
    "suspended": false,
    "coordinates": [9.85, 55.86],
    "distanceKm": 2.3
  }
]

Environment Variables

Variable Description
VD_GCS_BASE Override the GCS base URL (for testing or caching proxies). Default: https://storage.googleapis.com/trafikkort-data/geojson

ARIA MCP Config

Add to your ARIA credentials / MCP config:

{
  "command": "npx",
  "args": ["-y", "aria-mcp-trafik-dk"],
  "env": {}
}

No environment variables are required. Pair with aria-mcp-drivetime-dk for a complete pre-drive check:

[
  { "command": "npx", "args": ["-y", "aria-mcp-drivetime-dk"] },
  { "command": "npx", "args": ["-y", "aria-mcp-trafik-dk"] }
]

Development

git clone https://github.com/kimhjort/aria-mcp-trafik-dk
cd aria-mcp-trafik-dk
npm install
npm run build
npm test

License

MIT — see LICENSE.

Traffic data is public information from Vejdirektoratet (Danish Road Directorate). Attribution to Vejdirektoratet / trafikinfo.dk is appreciated when redistributing.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选