Skip to main content
Glama

Snapp MCP

An MCP server that lets an AI agent get Snapp ride quotes, book a ride, track the driver, cancel, and know where you are.

Status: two backends.

  • mock (default): a realistic simulated Snapp. Nothing real happens.

  • snapp: the real Snapp passenger API, the one app.snapp.taxi uses. Sign-in and price quotes work. Verified live on 2026-11-04: quotes, booking, status, live updates with a real driver (name, car, plate, location), cancel (free while searching, and free right after a driver accepted), history, suggested places, scheduled-ride pricing, two-stop pricing. Changing the destination, booking a two-stop ride and booking a scheduled ride follow the web app's own calls but haven't been run live. (Scheduling a test route was refused by Snapp with error 6005 for both economy and Eco Plus, so booking a scheduled ride is still unverified.)

This is an unofficial client of an undocumented API. Snapp may change or block it, and it may conflict with Snapp's terms. Use it with your own account only.

Tools

Tool

What it does

get_current_location / set_current_location

Where you are now; the default pickup point

list_places / save_place / remove_place

Saved places like home, work

search_address

Find an address or landmark in Iran (OpenStreetMap)

get_ride_quotes

Price + ETA per service. Optional second_destination for a two-stop ride. Books nothing

request_ride

Books a ride from a quote_id the user picked

get_ride_status

Status, driver, car, plate, driver location, ETAs

cancel_ride

Free while searching and for 2 min after a driver accepts, then a fee

list_rides

Ride history

wait_for_ride_update

Waits until the ride changes (driver found, arrived, trip started, done) so the agent can tell you

suggest_places

Your most frequent pickup/drop-off addresses from ride history, to save as home/work

preview_destination_change / change_destination

New price for a different destination, then change it (needs the agreed price)

get_schedule_quote / schedule_ride

Book a ride for later today or tomorrow (5-minute slots; price is a range)

list_scheduled_rides / cancel_scheduled_ride

Upcoming scheduled rides

snapp_login / snapp_login_status / snapp_logout

Real backend only: sign in on Snapp's own page

Locations can be a saved place name, here, lat,lng, or an address/landmark (Persian or English), looked up on OpenStreetMap Nominatim at most once per second. search_address lists matches. Full addresses work too, e.g. از تهران ونک خیابان شیخ بهایی نبش پارک ملت: if the whole sentence isn't found, the search retries with its pieces (the landmark after «نبش», the alley, the street, ...) and ranks matches by the remaining words such as city and neighbourhood.

Safety: booking is two steps. The agent must get quotes first, and request_ride needs both the quote_id (valid for 5 minutes, usable once) and confirmed_price_toman, the exact price the user agreed to. If the price doesn't match the quote, nothing is booked.

Related MCP server: Uber MCP Server

Setup

Needs Node.js 20+. No clone needed: npx builds it straight from GitHub.

Add it to Claude Code (real Snapp):

claude mcp add snapp -e SNAPP_BACKEND=snapp -- npx -y github:Kia-Karami/snapp-mcp

Or to Claude Desktop's claude_desktop_config.json:

{
  "mcpServers": {
    "snapp": {
      "command": "npx",
      "args": ["-y", "github:Kia-Karami/snapp-mcp"],
      "env": { "SNAPP_BACKEND": "snapp" }
    }
  }
}

Leave out SNAPP_BACKEND to try the simulated Snapp first. Then ask your assistant to sign in to Snapp.

Development

git clone https://github.com/Kia-Karami/snapp-mcp && cd snapp-mcp
npm install
npm test
npm run build

Configuration

Env var

Default

Meaning

SNAPP_BACKEND

mock

mock or snapp

SNAPP_DEBUG

unset

Log raw Snapp API traffic to stderr

SNAPP_MCP_HOME

~/.snapp-mcp

Where saved places and current location are stored (state.json)

SNAPP_MOCK_SPEED

10

Mock clock speed: simulated seconds per real second

Mock ride state lives in memory and resets when the server restarts. Saved places persist.

Signing in (real backend)

snapp_login opens Snapp's own sign-in page (app.snapp.taxi) in a browser window. The user signs in there as usual: phone number, Snapp's captcha, SMS code. When the site has a session, the MCP keeps its tokens in ~/.snapp-mcp/auth.json (readable only by you), refreshes them as needed, and closes the window. The MCP never sees or relays the captcha or SMS code.

The window uses Google Chrome or Edge if installed, otherwise Playwright's WebKit:

npx playwright-core install webkit

(Playwright's Chromium download is geo-blocked in Iran; WebKit downloads fine.)

Available Tools

19 tools
cancel_rideCancel a rideA
Destructive

Cancels a ride that hasn't started. Free while searching and for 2 minutes after a driver accepts; after that a cancellation fee applies. Only call when the user asks to cancel.

Inputs: reason, ride_id.

cancel_scheduled_rideCancel a scheduled rideC
Destructive

Cancels a ride booked for later. Only call when the user asks.

Inputs: schedule_id (required).

change_destinationChange the destinationA
Destructive

Changes the active ride's destination. Only call after preview_destination_change and the user agreeing to the new price; pass that price as confirmed_price_toman.

Inputs: destination (required), confirmed_price_toman (required), ride_id.

get_current_locationGet current locationA
Read-only

Returns where the user currently is (the last location set with set_current_location).

Inputs: no named parameters.

get_ride_quotesGet ride quotesA
Read-only

Gets price and ETA quotes for a ride, one per service type. Does NOT book anything. Show the user the options, then call request_ride with the quote they choose. Quotes expire after 5 minutes.

Inputs: destination (required), origin, services, second_destination.

get_ride_statusRide statusA
Read-only

Shows a ride's status, driver, car, plate, driver location and ETAs. Defaults to the active ride.

Inputs: ride_id.

get_schedule_quotePrice a ride for laterA
Read-only

Prices a ride booked ahead for a given time (Snapp allows today and tomorrow, in 5-minute slots). Scheduled prices are a range, and Snapp may add a scheduling fee. Books nothing; call schedule_ride after the user agrees.

Inputs: time (required), destination (required), origin, service.

list_placesList saved placesB
Read-only

Lists the user's saved places (home, work, ...).

Inputs: no named parameters.

list_ridesRide historyB
Read-only

Lists recent rides, newest first.

Inputs: limit.

list_scheduled_ridesUpcoming scheduled ridesB
Read-only

Lists rides booked for later.

Inputs: no named parameters.

preview_destination_changePrice a new destinationA
Read-only

Shows what the active ride would cost with a different destination. Changes nothing. Show the user the new price, then call change_destination only if they agree.

Inputs: destination (required), ride_id.

remove_placeRemove a saved placeC
Destructive

Deletes a saved place by name.

Inputs: name (required).

request_rideBook a rideA
Destructive

Books a ride using a quote_id from get_ride_quotes. This sends a real driver and charges the user, so only call it after the user has explicitly confirmed the service and price.

Inputs: quote_id (required), confirmed_price_toman (required).

save_placeSave a placeC

Saves or updates a named place so it can be used as a pickup or destination.

Inputs: lat (required), lng (required), name (required), address.

schedule_rideBook a ride for laterA
Destructive

Books the ride from get_schedule_quote. Only call after the user agreed to the time and price: pass the range's upper price as confirmed_max_price_toman, or, when Snapp gave no estimate, accept_price_set_later: true.

Inputs: schedule_quote_id (required), accept_price_set_later, confirmed_max_price_toman.

search_addressSearch for an addressA
Read-only

Looks up an address or landmark in Iran on OpenStreetMap and returns matching places with coordinates, nearest to the user's current location first. Use it when a place name is ambiguous, then pass the chosen lat,lng to other tools or save it with save_place.

Inputs: query (required), limit.

set_current_locationSet current locationA

Records where the user is right now, used as the default pickup point.

Inputs: location (required), label.

suggest_placesSuggest places from ride historyA
Read-only

Finds the addresses the user rides to and from most often (from their recent rides), so they can be saved with save_place (e.g. as home or work). Ask the user which is which before saving.

Inputs: limit.

wait_for_ride_updateWait for a ride updateA
Read-only

Waits until the ride changes (driver found, driver arrived, trip started, finished, cancelled) and returns the new state, or returns the current state when the wait times out. Call it in a loop to follow a ride and tell the user each change as it happens.

Inputs: ride_id, timeout_seconds.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.6/5.0

    Scored across 19 tools

    Disambiguation5/5

    Each tool maps to a distinct step in a clear workflow: quote → request, preview → change, schedule quote → schedule. Descriptions explicitly disambiguate the risky pairs (get_ride_quotes 'does NOT book anything', preview_destination_change 'changes nothing') and separate immediate vs. scheduled ride operations. Place tools (list_places, search_address, save_place, remove_place, suggest_places) are also cleanly partitioned.

    Naming Consistency4/5

    Nearly all 19 names follow snake_case verb_noun (get_ride_status, cancel_scheduled_ride, change_destination). Minor deviations: singular/plural drift within the place family (save_place/remove_place vs list_places/suggest_places) and a four-word outlier wait_for_ride_update. Still highly predictable overall.

    Tool Count4/5

    At 19 tools the surface leans heavy, but every tool maps to a real operation in a ride-hailing flow, and the safety-critical preview/confirm pairs justify their extra entries. No tool appears redundant or filler.

    Completeness4/5

    Strong coverage: full place CRUD plus suggestion/search, location get/set, immediate and scheduled ride lifecycle (quote, book, status, cancel, polling), destination change, and ride history. Minor gaps remain — no way to edit or reschedule an existing scheduled ride, and no receipt/fare-detail or driver-contact operation.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables 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.
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Enables 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.
      8
      MIT