mobility-mcp-africa
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.
mobility-mcp-africa
Africa's first open-standard MCP server for ride-hailing. Enables AI agents (Claude, GPT, Gemini) to search, book, and manage rides via the Model Context Protocol.
Why This Exists
The travel industry is shifting to AI agent-based booking. Google, Booking.com, and Expedia are building agents that book travel on behalf of users. These agents need standardized APIs to connect to — and MCP is that standard.
No ride-hailing provider in Africa currently has an MCP-compatible API. This project changes that by providing:
A generic provider interface that any ride-hailing service (Bolt, Uber, InDrive, local operators, etc.) can implement
A working MCP server with tools for searching, booking, tracking, and cancelling rides
A mock provider with realistic Nigerian data for development and demos
A live provider template for connecting to any ride-hailing service's REST API
Related MCP server: Atithi Driver Booking MCP Server
Architecture
AI Agent (Claude, GPT, Gemini, etc.)
|
| MCP Protocol (stdio)
v
+---------------------------+
| mobility-mcp-africa |
| (MCP Server) |
| |
| 10 Tools + 2 Resources |
| |
| Provider Abstraction |
| ├── MockProvider (dev) |
| ├── LiveProvider (prod) |
| └── YourProvider (add!) |
+---------------------------+
|
| REST API
v
Ride-Hailing Provider APIQuick Start
Install
git clone https://github.com/bamikalea/mobility-mcp-africa.git
cd mobility-mcp-africa
npm installRun with Mock Provider
# No API keys needed — uses realistic Lagos mock data
PROVIDER=mock npx tsx src/index.tsTest with MCP Inspector
npx @modelcontextprotocol/inspector npx tsx src/index.tsThis opens a web UI where you can test all tools interactively.
Use with Claude Desktop
Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
{
"mcpServers": {
"mobility-africa": {
"command": "npx",
"args": ["tsx", "/path/to/mobility-mcp-africa/src/index.ts"],
"env": {
"PROVIDER": "mock"
}
}
}
}Restart Claude Desktop. You can now ask: "Find me a ride from the airport to Victoria Island in Lagos".
Available Tools
Tool | Description |
| Search for available rides between two locations. Returns fare estimates, ETAs, and vehicle types. |
| Get available ride types (economy, comfort, premium, motorcycle, tricycle) for a city. |
| Book a ride. Returns confirmation with ride ID, driver details, and ETA. |
| Get real-time status of a booked ride (driver location, ETA, current status). |
| Cancel a booked ride. Returns cancellation confirmation and any fees. |
| Get a fare estimate without booking. Returns price range, distance, and duration. |
| Convert a place name (e.g., "Eko Hotel") to coordinates. |
| Update an active ride — change destination or update driver notes. Returns updated fare if destination changed. |
| Add an intermediate stop to an active ride. Returns updated fare and total estimated duration. |
| Generate a trip details message for sharing with friends/family for safety. Includes driver, vehicle, plate, and route. |
Available Resources
Resource | URI | Description |
Supported Cities |
| List of cities where service is available |
Pricing Info |
| Pricing structure, surge rules, cancellation policy |
Configuration
Env Variable | Default | Description |
|
| Provider to use: |
| — | API key for the ride-hailing provider (required when PROVIDER=live) |
| — | Base URL of the ride-hailing provider's REST API |
Adding a New Provider
A "provider" is a ride-hailing service — companies like Bolt, Uber, InDrive, or any local ride-hailing operator. Any ride-hailing service can integrate by implementing the RideHailingProvider interface. See docs/ADDING_A_PROVIDER.md for a step-by-step guide.
Testing
# Run all tests (65 tests)
npm test
# Run tests in watch mode
npm run test:watch
# Build TypeScript
npm run buildSupported Ride Types
Type | Description | Max Passengers |
economy | Affordable everyday rides | 4 |
comfort | Spacious and comfortable | 4 |
premium | Luxury vehicles with top-rated drivers | 4 |
motorcycle | Fast two-wheel rides (okada) | 1 |
tricycle | Three-wheel keke rides | 3 |
Supported Cities
Lagos, Nigeria
Abuja, Nigeria
More coming soon
Contributing
See CONTRIBUTING.md for guidelines.
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
Mobility, geocoding and nearby urban services for AI agents.
Get date-specific quotes and book private UK airport and cruise-port transfers through your AI assistant. Compare vehicle options, validate flights, retrieve bookings, amend details and cancel with customer confirmation. No registration required to start, subject to service limits; optional API-key and OAuth access for registered integrations. Transfer fares are payable separately and cancellation conditions apply. Live demo and connection instructions: https://ai.airport-pickups-london.com/ Technical documentation: https://mcp.airport-pickups-london.com/docs
The travel infrastructure built for AI agents: search and book flights, hotels, and rental cars.
Travel tools for AI agents: plan and edit real trips, search stays and tours, import travel videos.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to search for cabs, view prices, and book rides through the open Beckn Protocol by connecting to Beckn-compliant mobility providers like Namma Yatri and ONDC.-
- AlicenseAqualityDmaintenanceEnables AI agents to manage cab bookings, estimate fares, and dispatch drivers with a 2-tier priority algorithm for hotel guests, providing 18 MCP tools for driver management, dispatch, and ride lifecycle.20MIT
- AlicenseAqualityDmaintenanceEnables agents to search places, get live fares and route previews, list payment methods, book rides, monitor ride and vehicle status, preview and confirm cancellations, and retrieve ride history for Tesla Robotaxi rider accounts.8MIT
- AlicenseAqualityBmaintenanceEnables an AI assistant to find places, compare live Uber ride prices, request rides behind a price-capped preview/confirm step, track or cancel active rides, and review trip history.13250 PyPIMIT