mrcsx-mobility
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
mrcsx-mobility
A lightweight, self-hosted Model Context Protocol (MCP) server for public transport integration.
Current version: 0.3.0
Features
Remote MCP server using Streamable HTTP
Mandatory OAuth 2.0 authentication
JWT access token validation with remote JWKS
Explicit OAuth client and user authorization
Public transport stop, address and place search
Transitous integration
Provider-independent mobility data model
Bounded in-memory TTL/LRU cache
Concurrent request deduplication
Upstream request rate limiting
Hardened, non-root Docker runtime
Automated unit, integration and container tests
Related MCP server: Navitia MCP Server
MCP tools
Tool | Description |
| Connectivity check with optional nonce |
| Search stops, stations, addresses and places |
All MCP tools are read-only and require authentication.
Journey planning, departures and real-time transport information are not yet implemented.
Example search
{
"query": "Braunschweig Hauptbahnhof",
"type": "stop",
"limit": 5
}Search results contain normalized geographic information, provider identifiers and available transport modes.
Addresses without provider identifiers return id: null
and can be referenced using their coordinates.
Architecture
flowchart TD
Client[MCP Client]
OAuth[OAuth Authorization Server]
HTTP[HTTP and MCP Server]
Auth[Access Token Validation]
Tools[MCP Tools]
Provider[Mobility Provider]
Cache[TTL/LRU Cache]
API[Transitous API]
Client -->|OAuth| OAuth
Client -->|HTTPS / Bearer Token| HTTP
HTTP --> Auth
Auth -->|JWKS| OAuth
Auth --> Tools
Tools --> Provider
Provider --> Cache
Provider -->|Cache miss| APIThe mobility provider is shared across MCP server instances within the application process.
Configuration
Server
Variable | Default |
|
|
|
|
| Optional |
OAuth
All OAuth variables are required.
Variable | Description |
| HTTPS authorization server issuer |
| Public HTTPS MCP resource URL |
| Authorization server JWKS URL |
| Required scope: |
| Authorized OAuth client UUID |
| Authorized user UUID |
Pocket ID is the currently tested authorization server.
The application validates JWT signatures, token type, issuer, audience, expiration, issue time, client identifier, subject and required scope.
The server refuses to start without valid OAuth configuration. There is no unauthenticated MCP mode.
Transitous
Variable | Default |
|
|
| Required |
|
|
The User-Agent must identify the application, version and operator contact information.
Example:
mrcsx-mobility/0.3.0 (mailto:operator@example.org)HTTP endpoints
Endpoint | Authentication |
| Public |
| Public |
| Mandatory OAuth |
Deploy behind an HTTPS reverse proxy. Do not expose the application's plain HTTP port directly to the internet.
The health endpoint indicates application availability, not upstream Transitous availability.
Provider resource limits
Request timeout: 5 seconds by default
Maximum response size: 1 MiB
Maximum concurrent upstream requests: 2
Minimum interval between upstream requests: 1 second
Cache TTL: 15 minutes
Maximum cache entries: 128
Maximum serialized cached value size: 4 MiB in total
No automatic retries
No background polling
These are application-level limits, not official Transitous quotas. They apply per provider instance.
Privacy
The application does not persist search queries or results.
Search queries and results are temporarily cached in memory. Search queries are transmitted to the configured external mobility provider.
OAuth access tokens, cookies and user identifiers are not forwarded to Transitous.
Operators and users should avoid including unnecessary personal information in search requests.
See the Transitous privacy policy: https://transitous.org/privacy/
Data sources and attribution
This project uses Transitous for public transport and geographic data.
Transitous: https://transitous.org/
Data sources: https://transitous.org/sources/
API usage policy: https://transitous.org/api/
© OpenStreetMap contributors: https://www.openstreetmap.org/copyright
Applications and MCP clients displaying results must preserve appropriate visible attribution and comply with the applicable data source licenses and API usage policies.
The MIT license of this project does not cover third-party transport or geographic data.
Development
Requirements:
Node.js 24
npm
Docker and OpenSSL for container smoke tests
Install dependencies:
npm ci --ignore-scriptsRun type checking and automated tests:
npm run checkBuild the container and execute smoke tests:
docker build -t mrcsx-mobility:dev .
bash tests/docker/run.sh mrcsx-mobility:devAutomated tests use simulated OAuth and Transitous endpoints. They do not require access to the public Transitous API.
Roadmap
v0.1.0: MCP connectivity
v0.2.0: Mandatory OAuth authentication
v0.3.0: Transitous and geographic search
Journey planning
Departure and arrival information
Real-time transport information
Additional provider implementations
License
MIT. See LICENSE.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Hosted MCP for live place search, geocoding & turn-by-turn routes. No Maps API key to manage.
Unofficial Nominatim MCP — wraps OpenStreetMap Nominatim geocoding API (free, no auth)
Search ReliefWeb humanitarian reports, disasters, jobs, training, and country profiles via MCP.
Unofficial Radar MCP — wraps the Radar Geocoding / Search API (radar.com)
Related MCP Servers
- FlicenseNot gradedqualityCmaintenanceProvides geocoding, reverse geocoding, POI search, driving/walking routes, administrative district lookup, and combined travel quick-check tools to MCP hosts.-
- AlicenseAqualityBmaintenanceEnables public-transport journey planning, place search, realtime departures and timetables, usable from any MCP client.9MIT
- AlicenseAqualityBmaintenanceEnables Bing searches with geo, market, and language targeting, returning organic results, ad blocks, and Copilot answers as structured JSON to any MCP client.145 npm4MIT
- AlicenseNot gradedqualityCmaintenanceEnables desktop agents and clients to access geospatial services via a hosted MCP server, including OpenStreetMap queries, address and business search, POI discovery, routing, matrices, isochrones, map matching, optimization, elevation and terrain, basemap styling, spatial analysis, rendering, usage, and service status.18 npmMIT