mcpField
G
good-eggs

good-eggs

Local
github.com/pulsemcpBusiness & Marketing81Updated 8w ago

About good-eggs

A Playwright-based MCP server that automates grocery shopping on Good Eggs. It supports searching products, managing favorites, editing the cart, and reviewing past orders. It suits users who want an AI assistant to handle Good Eggs shopping tasks.

Key features

  1. 01Grocery search with favorite status
  2. 02Favorite item management
  3. 03Product detail lookup
  4. 04Cart add and remove actions
  5. 05Free item discovery at $0.00
  6. 06Past order history lookup

Use cases

  1. 01Searching for organic produce and adding it to the cart
  2. 02Reviewing saved items and restocking favorites
  3. 03Finding free items on the homepage and fresh-picks
  4. 04Reviewing past orders and reordering items

MCP support

This project is an MCP server that exposes search, favorites, cart, and order tools to MCP clients. It drives a logged-in browser session against the Good Eggs website.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"com-pulsemcp-good-eggs": {
"command": "npx",
"args": [
"-y",
"good-eggs-mcp-server"
],
"env": {
"GOOD_EGGS_USERNAME": "<GOOD_EGGS_USERNAME>",
"GOOD_EGGS_PASSWORD": "<GOOD_EGGS_PASSWORD>",
"HEADLESS": "<HEADLESS>",
"TIMEOUT": "<TIMEOUT>"
}
}
}
}
Run commandnpx -y good-eggs-mcp-server
Environment variables to set
GOOD_EGGS_USERNAMESecretYour Good Eggs account email address.
GOOD_EGGS_PASSWORDSecretYour Good Eggs account password.
HEADLESSRun browser in headless mode (true/false).
TIMEOUTBrowser operation timeout in milliseconds.

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npmgood-eggs-mcp-server0.1.11

Tools

11

Saved tool list · updated 2w ago

ParameterTypeRequiredDescription
querystringYesSearch query for groceries (e.g., "organic apples", "milk", "bread")

Details

From the project README

Good Eggs MCP Server

MCP server for Good Eggs grocery shopping automation using Playwright. Search for groceries, manage favorites, add items to cart, and view past orders.

Features

  • Search Groceries - Search for any grocery item on Good Eggs (includes favorite status)
  • Manage Favorites - Get, add, and remove favorite items
  • Get Product Details - View detailed information about any product
  • Shopping Cart - View, add, and remove items from your shopping cart
  • Find Freebies - Find items priced at $0.00 on homepage and fresh-picks
  • Past Orders - View your order history and reorder items

Tools

ToolDescription
search_for_grocerySearch for groceries by keyword (includes favorites)
get_favoritesGet your favorite/saved grocery items
get_grocery_detailsGet detailed info about a specific product
add_to_cartAdd a product to your shopping cart
get_cartView the contents of your shopping cart
remove_from_cartRemove a product from your shopping cart
search_for_freebie_groceriesFind free items ($0.00) on homepage and fresh-picks
get_list_of_past_order_datesGet dates of your past orders
get_past_order_groceriesGet items from a specific past order
add_favoriteAdd a product to your favorites
remove_favoriteRemove a product from your favorites

Setup

Prerequisites
  • Node.js 18+
  • A Good Eggs account (create one at goodeggs.com)
Environment Variables
VariableRequiredDescriptionDefault
GOOD_EGGS_USERNAMEYesYour Good Eggs account email-
GOOD_EGGS_PASSWORDYesYour Good Eggs account password-
HEADLESSNoRun browser in headless modetrue
TIMEOUTNoBrowser operation timeout (ms)30000
Claude Desktop

Make sure you have your Good Eggs account credentials ready.

Then proceed to the setup instructions below. If this is your first time using MCP Servers, you'll want to make sure you have the Claude Desktop application and follow the official MCP setup instructions.

Manual Setup

You're going to need Node working on your machine so you can run npx commands in your terminal. If you don't have Node, you can install it from nodejs.org.

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

Windows: %APPDATA%\Claude\claude_desktop_config.json

Modify your claude_desktop_config.json file to add the following:

{
  "mcpServers": {
    "good-eggs": {
      "command": "npx",
      "args": ["-y", "good-eggs-mcp-server"],
      "env": {
        "GOOD_EGGS_USERNAME": "[email protected]",
        "GOOD_EGGS_PASSWORD": "your-password"
      }
    }
  }
}

Restart Claude Desktop and you should be ready to go!

Usage Examples

Search for groceries
"Search for organic apples"
"Find gluten-free bread"
"Look for chicken breast"
View and add favorites
"Show me my favorite items"
"What are my saved groceries?"
Add items to cart
"Add 2 of those apples to my cart"
"Put the organic milk in my basket"
View your cart
"What's in my cart?"
"Show me my basket"
Check deals
"What deals are available today?"
"Find any free items"
Reorder from past orders
"Show me my past orders"
"What did I order on January 3rd?"

How It Works

This MCP server uses Playwright to automate a browser session with Good Eggs:

  1. On first tool use: Launches a browser and logs into your Good Eggs account
  2. Browser session persists: All subsequent tool calls reuse the same logged-in session
  3. Smart navigation: Tools check if you're already on the right page to minimize navigation
  4. Stealth mode: Uses playwright-extra with stealth plugin to avoid bot detection

Development

# Install dependencies
npm run install-all

# Run in development mode
npm run dev

# Build
npm run build

# Run tests
npm test

# Lint
npm run lint

Project Structure

good-eggs/
├── local/                 # Local server implementation
│   └── src/
│       └── index.ts       # Entry point with env validation
├── shared/                # Shared business logic
│   └── src/
│       ├── server.ts      # GoodEggsClient with Playwright automation
│       ├── tools.ts       # MCP tool definitions
│       ├── types.ts       # TypeScript types
│       └── logging.ts     # Logging utilities
├── tests/                 # Test suites
├── package.json           # Root workspace config
└── README.md

Security Notes

  • Your Good Eggs credentials are used only to log into your account
  • The browser session runs locally on your machine
  • No credentials are transmitted to any third-party services
  • Consider using environment variables rather than hardcoding credentials

Limitations

  • Requires a valid Good Eggs account with delivery service in your area
  • Browser automation may occasionally fail if Good Eggs updates their website
  • Some operations (favorites, past orders) require account login

License

MIT

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.