返回 MCP 目录
public公开dns本地运行

优步外卖AI下单助手

一个概念验证的模型上下文协议服务器,使大型语言模型应用程序能够与Uber Eats互动,允许人工智能代理通过自然语言浏览和订购食物。

article

README

Uber Eats MCP Server

This is a POC of how you can build an MCP servers on top of Uber Eats

https://github.com/user-attachments/assets/05efbf51-1b95-4bd2-a327-55f1fe2f958b

What is MCP?

The Model Context Protocol (MCP) is an open protocol that enables seamless integration between LLM applications and external tools.

Prerequisites

  • Python 3.12 or higher
  • Anthropic API key or other supported LLM provider

Setup

  1. Ensure you have a virtual environment activated:

    uv venv
    source .venv/bin/activate  # On Unix/Mac
    
  2. Install required packages:

    uv pip install -r requirements.txt
    playwright install
    
  3. Update the .env file with your API key:

    ANTHROPIC_API_KEY=your_openai_api_key_here
    

Note

Since we're using stdio as MCP transport, we have disable all output from browser use

Debugging

You can run the MCP inspector tool with this command

uv run mcp dev server.py
help

运行方式说明

cloud

托管运行

托管运行通常表示这个 MCP Server 由服务方环境承载,用户一般按页面提供的连接方式或授权流程接入,不需要在本地长期启动一个 MCP 进程

  1. 打开服务方连接页
  2. 完成授权或复制端点
  3. 在 MCP 客户端中连接
terminal

本地运行 / 其它方式

本地运行通常需要用户在自己的电脑或服务器上安装依赖,把 server_config 复制到 MCP 客户端,并按 env_schema 补齐环境变量、密钥或其它配置

  1. 复制 server_config
  2. 安装所需依赖
  3. 补齐环境变量后重启客户端