npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

good-eggs-mcp-server

v0.1.7

Published

MCP server for Good Eggs grocery shopping with Playwright automation

Downloads

745

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

| Tool | Description | | ------------------------------ | ---------------------------------------------------- | | search_for_grocery | Search for groceries by keyword (includes favorites) | | get_favorites | Get your favorite/saved grocery items | | get_grocery_details | Get detailed info about a specific product | | add_to_cart | Add a product to your shopping cart | | get_cart | View the contents of your shopping cart | | remove_from_cart | Remove a product from your shopping cart | | search_for_freebie_groceries | Find free items ($0.00) on homepage and fresh-picks | | get_list_of_past_order_dates | Get dates of your past orders | | get_past_order_groceries | Get items from a specific past order | | add_favorite | Add a product to your favorites | | remove_favorite | Remove a product from your favorites |

Quick Start

Prerequisites

Installation

npm install
npm run build

Configuration

Set the following environment variables:

| Variable | Required | Description | Default | | -------------------- | -------- | ------------------------------- | ------- | | GOOD_EGGS_USERNAME | Yes | Your Good Eggs account email | - | | GOOD_EGGS_PASSWORD | Yes | Your Good Eggs account password | - | | HEADLESS | No | Run browser in headless mode | true | | TIMEOUT | No | Browser operation timeout (ms) | 30000 |

Claude Desktop Configuration

Add to your claude_desktop_config.json:

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

Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "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 to connect.

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