1M

199-mcp/mcp-uber

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

16 stars 10 forks 质量 55 趋势 21

一个MCP(模式上下文协议)服务器,用于通过AI助手预订Uber骑行.

概览

一个MCP(模式上下文协议)服务器,用于通过AI助手预订Uber骑行. - OAuth 2.0 认证与 Uber - 获取骑行价格估算 - 请求 Uber 骑行 - 检查骑行状态 - 取消骑行 1. 转到Uber开发者 Dashboard 2. 点击"Sign in",或者: - 使用已存在的Uber rider/driver账户 - 为开发专门创建一个新账户 为组织创建电子邮件化名(例如:[email protected]),而不是使用个人账户来方便所有权转让. 1. 在开发者Dashboard中,点击"Create App"(右上角) 2. 填写所需信息 : - : 您的应用程序名称 - : 简单描述您的应用程序的3. 单击“创建” 1. 在仪表板2中导航您的应用程序。 转到分页3。 你会发现: - : 您的应用程序的公开标识 - : 私人密钥( 保持此安全 !) - : 服务器侧请求 1. 联合国.

概述(AI 翻译)

一个MCP(模式上下文协议)服务器,用于通过AI助手预订Uber骑行.

□ 特性

  • OAuth 2.0 认证Uber
  • 获取乘车价格估计数
  • 请求Uber骑行
  • 检查驾驶状态
  • 取消驾驶

□ 安装

使用 npm( 全球安装)

使用 npx( 不需要安装)

□ 设置

QQ 第 1 步 : 创建一个 Uber 开发者账户

  1. 转到 Uber 开发者 Dashboard
  2. 点击"签名"并选择:
  • 使用现有的 Uber 骑手/司机账户
  • 专门建立一个新的发展帐户

QQ 提示 : ** 对于组织,创建电子邮件化名(例如:[email protected]),而不是使用个人账户来方便所有权转让.

QQ 第 二 步 : 创建新应用程序

  1. 在开发者Dashboard中,点击"Create App"(右上角)
  2. 填写所需资料:
  • App 名称:您的申请名称
  • ** 说明**:简要说明你的应用程序的工作
  1. 点击"创造"

QQ 第3步:获取您的 API 证书

  1. 在仪表板上导航您的应用程序
  2. 转到** Auth** 标签
  3. 你会发现:
  • 身份证**: 您的应用程序的公开标识符 私人钥匙(保持安全!)

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

MCP Uber Server

An MCP (Model Context Protocol) server for booking Uber rides through AI assistants.

Features

  • OAuth 2.0 authentication with Uber
  • Get price estimates for rides
  • Request Uber rides
  • Check ride status
  • Cancel rides

Installation

Using npm (global installation)

npm install -g mcp-uber

Using npx (no installation required)

npx mcp-uber

Setup

Step 1: Create an Uber Developer Account

  1. Go to Uber Developer Dashboard
  2. Click “Sign in” and either:
    • Use an existing Uber rider/driver account
    • Create a new account specifically for development

💡 Tip: For organizations, create an email alias (e.g., [email protected]) instead of using a personal account for easier ownership transfer.

Step 2: Create a New App

  1. In the Developer Dashboard, click “Create App” (top right corner)
  2. Fill in the required information:
    • App Name: Your application name
    • Description: Brief description of what your app does
  3. Click “Create”

Step 3: Get Your API Credentials

  1. Navigate to your app in the dashboard
  2. Go to the Auth tab
  3. You’ll find:
    • Client ID: Public identifier for your app
    • Client Secret: Private key (keep this secure!)
    • Server Token: For server-side requests

Step 4: Configure OAuth Settings

  1. In the Auth tab, add your redirect URI:
    • For local testing: http://localhost:3000/callback
    • For production: Your actual callback URL
  2. Select required scopes:
    • profile - User’s basic profile information
    • request - Request rides on user’s behalf
    • ride_request - View and manage active ride requests

⚠️ Note: The request scope is privileged and requires Uber approval for production use. During development, your account can use it without approval.

Step 5: Set Up Environment Variables

Create environment variables with your credentials (see Configuration section below)

Usage with Claude Desktop

Using npm (global installation)

Add to your Claude Desktop configuration (~/Library/Application Support/Claude/claude_desktop_config.json):

{
  "mcpServers": {
    "uber": {
      "command": "mcp-uber",
      "env": {
        "UBER_CLIENT_ID": "your_client_id",
        "UBER_CLIENT_SECRET": "your_client_secret",
        "UBER_REDIRECT_URI": "http://localhost:3000/callback",
        "UBER_ENVIRONMENT": "sandbox"
      }
    }
  }
}

Using npx

Add to your Claude Desktop configuration:

{
  "mcpServers": {
    "uber": {
      "command": "npx",
      "args": ["mcp-uber"],
      "env": {
        "UBER_CLIENT_ID": "your_client_id",
        "UBER_CLIENT_SECRET": "your_client_secret",
        "UBER_REDIRECT_URI": "http://localhost:3000/callback",
        "UBER_ENVIRONMENT": "sandbox"
      }
    }
  }
}

Available Tools

  1. uber_get_auth_url - Get OAuth authorization URL
在 GitHub 查看完整 README

安装

npx mcp-uber
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "uber": { "command": "mcp-uber", "env": { "UBER_CLIENT_ID": "your_client_id", "UBER_CLIENT_SECRET": "your_client_secret", "UBER_REDIRECT_URI": "http://localhost:3000/callback", "UBER_ENVIRONMENT": "sandbox" } } } }