@striderlabs/mcp-uber
MCP server connector for Uber ride-sharing, enabling ride requests, fare estimates, and trip tracking via browser automation.
README
@striderlabs/mcp-uber
MCP server connector for Uber ride-sharing — request rides, get fare estimates, and track trips via browser automation.
Installation
npx @striderlabs/mcp-uber
Or install globally:
npm install -g @striderlabs/mcp-uber
MCP Configuration
Add to your claude_desktop_config.json:
{
"mcpServers": {
"uber": {
"command": "npx",
"args": ["@striderlabs/mcp-uber"]
}
}
}
Tools
status
Check Uber authentication and session status, including the current pickup/destination if set.
| Name | Type | Required | Description |
|---|---|---|---|
| (no parameters) |
login
Authenticate with Uber using email/phone and password via browser automation.
| Name | Type | Required | Description |
|---|---|---|---|
identifier |
string | Yes | Uber account email address or phone number |
password |
string | Yes | Uber account password |
headless |
boolean | No | Run browser in headless mode (default: true). Set false to see the browser and complete OTP/captcha manually. |
Note: Uber often requires phone OTP verification. If OTP is triggered, run with
headless: falseto complete verification in the visible browser window, then callloginagain.
logout
Clear the Uber session and all stored cookies.
| Name | Type | Required | Description |
|---|---|---|---|
| (no parameters) |
set_pickup
Set the pickup location for a ride request. Persists across tool calls.
| Name | Type | Required | Description |
|---|---|---|---|
address |
string | Yes | Pickup address (e.g., "123 Main St, New York, NY" or "JFK Airport") |
set_destination
Set the destination for a ride request. Persists across tool calls.
| Name | Type | Required | Description |
|---|---|---|---|
address |
string | Yes | Destination address (e.g., "456 Park Ave, New York, NY" or "LaGuardia Airport") |
get_fare_estimate
Get fare estimates for all available ride types between pickup and destination.
| Name | Type | Required | Description |
|---|---|---|---|
pickup |
string | No | Override pickup address (uses stored pickup if not provided) |
destination |
string | No | Override destination address (uses stored destination if not provided) |
headless |
boolean | No | Run browser in headless mode (default: true) |
Note: Set pickup and destination first with
set_pickup/set_destination, or provide them directly as parameters.
get_ride_options
Get available ride types (UberX, Comfort, XL, Black, etc.) with pricing and ETAs for the current route.
| Name | Type | Required | Description |
|---|---|---|---|
pickup |
string | No | Override pickup address |
destination |
string | No | Override destination address |
headless |
boolean | No | Run browser in headless mode (default: true) |
request_ride
Request an Uber ride. Returns a confirmation preview by default — does not automatically confirm.
| Name | Type | Required | Description |
|---|---|---|---|
ride_type |
string | No | Ride type (e.g., "UberX", "Comfort", "XL", "Black"). Defaults to "UberX". |
confirm |
boolean | No | Set true to actually place the ride request. Default false (preview only). |
headless |
boolean | No | Run browser in headless mode (default: true) |
Warning: Setting
confirm: truewill attempt to place a real ride request. Make sure pickup, destination, and ride type are correct before confirming.
get_ride_status
Get the status of your current or most recent Uber ride.
| Name | Type | Required | Description |
|---|---|---|---|
headless |
boolean | No | Run browser in headless mode (default: true) |
cancel_ride
Cancel a pending or active Uber ride request.
| Name | Type | Required | Description |
|---|---|---|---|
confirm |
boolean | No | Set true to confirm cancellation. Default false (shows cancellation info only). |
headless |
boolean | No | Run browser in headless mode (default: true) |
Note: A cancellation fee may apply if a driver has already been assigned. Review the cancellation policy before confirming.
get_ride_history
Get recent Uber ride history.
| Name | Type | Required | Description |
|---|---|---|---|
limit |
number | No | Number of recent trips to return (default: 10) |
headless |
boolean | No | Run browser in headless mode (default: true) |
For Agents
Agents can use this connector to autonomously request, track, and manage Uber rides on behalf of their human. Example agent flow:
Agent: "I need to get to JFK Airport. What's the cheapest ride available?"
The agent will:
- Call
set_pickupwith the user's current location - Call
set_destinationwith "JFK Airport" - Call
get_fare_estimateto compare UberX, Comfort, XL pricing - Return a summary of options and estimated wait times
Agent: "Request the UberX ride."
The agent will:
- Call
request_ridewithride_type: "UberX"andconfirm: true - Receive a confirmation with driver ETA
- Store the ride ID for tracking
- Autonomously call
get_ride_statusat intervals to keep the user informed
This connector is designed to work in autonomous personal assistant scenarios where the agent has persistent access to the user's Uber account and makes ride decisions based on context (location, cost, time, preferences).
Typical Workflow
1. login → Authenticate with Uber
2. set_pickup → "Times Square, New York, NY"
3. set_destination → "JFK Airport, Queens, NY"
4. get_fare_estimate → Review prices for UberX, Comfort, XL, etc.
5. request_ride → Preview the ride (confirm: false)
6. request_ride → confirm: true to place the request
7. get_ride_status → Track your driver
8. cancel_ride → Cancel if needed (confirm: true)
Session Storage
Sessions and route data are stored in:
~/.striderlabs/uber/
├── cookies.json # Browser session cookies
├── auth.json # Account metadata
└── route.json # Current pickup/destination
Technical Details
- Transport: stdio (MCP standard)
- Browser: Chromium via Playwright with stealth patches
- Stealth: Patches
navigator.webdriver, spoof plugins/languages, remove automation markers - Geolocation: Defaults to New York City (40.7128, -74.006)
- User Agent: Chrome 120 on macOS
Notes
- OTP/Captcha: Uber may require phone OTP or CAPTCHA during login. Use
headless: falseto handle these manually. - Fare Estimates: Available without login via uber.com/global/en/price-estimate/
- Ride Requests: Require an active logged-in session.
- Cancellation Fees: Uber may charge a fee if you cancel after a driver is assigned.
- Mobile App: Uber is primarily a mobile app. The web interface (riders.uber.com) is used for automation, which may have different features than the mobile app.
License
MIT — Strider Labs
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。