Beckn Mobility MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Beckn Mobility MCP Serverfind me a cab from MG Road to Bangalore airport"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Beckn Mobility MCP Server
A generic Model Context Protocol (MCP) server for the Beckn Mobility domain. This server acts as a Buyer Application Platform (BAP), enabling AI agents (like Claude, Gemini, etc.) to search for cabs, view prices, and book rides using the open Beckn Protocol (e.g., Namma Yatri, ONDC).
Features
Generic BAP Implementation: Connects to any Beckn-compliant Mobility BPP.
MCP Tools: Exposes
search_cabs,select_ride,init_booking, andconfirm_bookingas AI tools.Async Webhook Handling: Robust
WebhookManagerhandles Beckn's asynchronous callbacks with timeouts and request correlation.Secure Signing: Implements Ed25519 request signing required by the Beckn Registry.
Hono Server: Built on Hono for high-performance HTTP handling and Server-Sent Events (SSE).
Verification Scripts: Includes a suite of scripts to verify crypto signing and end-to-end flows.
Related MCP server: Uber MCP Server
Prerequisites
Node.js v18+
A public URL (using
ngrokor a cloud deployment) for receiving webhooks.Registration with a Beckn Registry (e.g., Namma Yatri Sandbox).
Installation
Clone the repository:
git clone https://github.com/<YOUR_USERNAME>/mcp-beckn-mobility.git cd mcp-beckn-mobilityInstall dependencies:
npm install
Configuration
Generate Keys: Run the helper script to generate your Ed25519 signing keys.
npx tsx src/generate_keys.tsCopy the output (BAP ID, Public Key, Private Key).
Setup Environment: Copy
.env.exampleto.env(or create it) and fill in your details:# Beckn Registry Details BAP_ID=mcp-mobility-bap-<TIMESTAMP> UNIQUE_KEY_ID=key1 SIGNING_PRIVATE_KEY=<YOUR_PRIVATE_KEY> SIGNING_PUBLIC_KEY=<YOUR_PUBLIC_KEY> # URLs BAP_URI=https://<YOUR_NGROK_URL> # Must be public! BPP_URI=https://gateway.nammayatri.in/search # Or local mock PORT=3000Register: Use your BAP ID and Public Key to register on the Namma Yatri / Beckn Registry.
Usage
Start the Server:
npm run devConnect via Ngrok (if running locally):
ngrok http 3000Update
BAP_URIin.envwith the ngrok URL.Connect your AI Client: Configure your MCP Client (e.g., Claude Desktop) to connect to the SSE endpoint:
URL:
http://localhost:3000/sse
Verification
We have included scripts to verify the system before going live:
Verify Crypto: Checks if your keys and signing logic are mathematically correct.
npx tsx src/verify_crypto.tsVerify Full Flow (Local): Runs a local Mock BPP and tests the full HTTP request/response loop.
npx tsx src/verify_full_flow.tsBlack Box Test: Simulates an MCP Client connecting via SSE and calling tools.
npx tsx src/verify_mcp_client.ts
Project Structure
src/index.ts: Main server entry point (Hono app).src/tools/mobilityTools.ts: MCP Tool definitions (search_cabs, etc.).src/lib/becknClient.ts: Handles Beckn protocol communication and signing.src/lib/webhookManager.ts: Manages async callbacks.src/lib/honoTransport.ts: Custom MCP Transport for Hono.
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityDmaintenanceEnables cab booking and management through natural conversation, allowing users to book rides, cancel bookings, and view driver details. Works with Google Maps MCP to provide comprehensive travel planning with automatic route optimization and cab arrangements between destinations.Last updated
- Alicense-qualityDmaintenanceEnables AI assistants to interact with the Uber API for ride management, including requesting rides, obtaining price and time estimates, and tracking active trip status. It supports comprehensive journey features such as viewing ride history, cancelling requests, and rating drivers through a secure OAuth 2.0 integration.Last updatedMIT
- AlicenseAqualityCmaintenanceHotel booking MCP server — the first transaction-complete hotel booking integration for AI agents. Search 300K+ properties in 140+ countries, get live rates and room details, and generate secure checkout URLs. No payment in the AI conversation — guests complete booking at a hosted checkout page and receive a real hotel confirmation number. Set your own booking fee via Stripe Connect.Last updated8232Inno Setup
- AlicenseAqualityAmaintenanceEnables AI agents to plan trips by searching flights, accommodations, and activities, and managing itineraries collaboratively with role-based permissions.Last updated20101MIT
Related MCP Connectors
Discover and book businesses via AI agents.
Flight search & booking for AI agents. 400+ airlines, $20-50 cheaper than OTAs.
Last-minute booking slots across 11 suppliers. Search, price, and execute bookings via AI agents.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/dumko2001/mcp-beckn-mobility'
If you have feedback or need assistance with the MCP directory API, please join our Discord server