Starbucks MCP Server

Starbucks MCP Server

Enables ordering Starbucks coffee via AI assistant using Playwright browser automation, supporting login, favorites management, custom orders, and manual order confirmation for safety.

Category
访问服务器

README

Starbucks MCP Server

The first MCP server for ordering Starbucks coffee using AI! Built with Playwright automation and the Model Context Protocol.

⚠️ Important Disclaimers

UNOFFICIAL & EDUCATIONAL USE ONLY

  • This project is NOT affiliated with, endorsed by, or connected to Starbucks Corporation in any way
  • Use at your own risk - This tool may violate Starbucks Terms of Service
  • For educational and personal use only - Not intended for commercial use
  • You are financially responsible for all orders placed through this tool
  • No warranty - Provided "AS IS" without warranty of any kind (see LICENSE)
  • Your Starbucks account may be banned for using automated tools
  • Starbucks may request this repository be taken down at any time

FINANCIAL SAFETY:

  • Every order requires manual confirmation - Orders are NOT automatically placed
  • Review flow built-in - You see the order details before confirming
  • ⚠️ Always verify order details, prices, and totals before confirming
  • ⚠️ Monitor your account - Check your bank statements regularly
  • 🚨 Emergency stop - Close the browser immediately if something goes wrong

By using this software, you acknowledge these risks and agree to use it responsibly.

Features

  • 🔐 Browser-based authentication - Log in once, order anytime
  • Favorite orders - Save and reorder your go-to drinks and food
  • 🎯 Custom orders - Order any combination of drinks and food
  • 📍 Location support - Select your pickup location
  • Order approval - Review before placing your order

Installation

cd ~/code/starbucks-mcp-server
npm install
npm run build

Configuration

Add to your Claude Code config (~/.claude.json):

{
  "mcpServers": {
    "starbucks": {
      "type": "stdio",
      "command": "node",
      "args": ["/path/to/starbucks-mcp-server/dist/server.js"],
      "env": {},
      "cwd": "/path/to/starbucks-mcp-server"
    }
  }
}

Usage

First Time Setup

# Log in to Starbucks
> login_starbucks

# Complete the login in the browser, then:
> complete_starbucks_login

Ordering

# Order a favorite
> Order my "Morning Coffee Run"

# Custom order
> Order a grande Pike Place Roast and a Bacon Gouda sandwich

# List favorites
> What are my Starbucks favorites?

# Add a new favorite
> Save a new favorite called "Afternoon Pick-Me-Up" with a venti cold brew

Example Commands

  • "Order me a tall iced cold brew from Polk Street"
  • "Place my usual morning coffee order"
  • "What Starbucks favorites do I have saved?"
  • "Order breakfast - grande pike place and a breakfast sandwich"

Tools

  • login_starbucks - Open browser for authentication
  • complete_starbucks_login - Complete login after manual sign-in
  • check_starbucks_auth - Check authentication status
  • list_starbucks_favorites - List saved favorite orders
  • order_starbucks_favorite - Order a saved favorite
  • order_starbucks_custom - Place a custom order
  • add_starbucks_favorite - Save a new favorite
  • confirm_starbucks_order - Confirm and place pending order
  • cancel_starbucks_order - Cancel pending order

How It Works

This MCP server uses Playwright to automate the Starbucks website:

  1. Authentication: Opens a browser for you to log in manually
  2. Session Management: Saves cookies for future orders
  3. Order Automation: Navigates the menu, selects items, and adds to cart
  4. Review Flow: Shows you the order before placing it
  5. Confirmation: Places the order ONLY when you explicitly approve

Safety Features

  • No automatic ordering - Every order stops at the cart for your review
  • Explicit confirmation required - You must run confirm_starbucks_order to place the order
  • Cancel anytime - Use cancel_starbucks_order to abort before confirmation
  • Order details shown - See items, prices (when available), and location before confirming
  • Session-based - You control when the browser opens and closes

Troubleshooting

If something goes wrong:

  1. Close the browser window immediately
  2. Check your Starbucks app/account for pending orders
  3. Cancel any unwanted orders in the Starbucks app
  4. Delete starbucks-session.json to force re-authentication
  5. Use cancel_starbucks_order before confirming to abort

Common issues:

  • Orders fail to add items → Website may have changed, headless mode issues
  • Session expired → Run login_starbucks again
  • Wrong location → Specify location explicitly in order commands

Requirements

  • Node.js 18+
  • Playwright (automatically installs browsers)
  • Active Starbucks account

Contributing

This is the first Starbucks MCP server! Contributions welcome:

  • Add support for customizations (milk, sweeteners, etc.)
  • Improve location detection
  • Add order history
  • Support for gift cards and rewards

License

MIT

Author

Dean Wenstrand


☕ Built with Claude Code and caffeine

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选