Walgreens
FreeMaintainedMCP server for Walgreens - let AI agents manage prescriptions
About
MCP server for Walgreens - let AI agents manage prescriptions
README
MCP server connector for Walgreens — search products, manage prescriptions, cart, and checkout via browser automation.
Installation
npx @striderlabs/mcp-walgreens
Or install globally:
npm install -g @striderlabs/mcp-walgreens
MCP Configuration
Add to your MCP client config (e.g. claude_desktop_config.json):
{
"mcpServers": {
"walgreens": {
"command": "npx",
"args": ["@striderlabs/mcp-walgreens"]
}
}
}
Tools
status
Check Walgreens authentication status, session info, and preferred store.
Parameters: none
login
Authenticate with Walgreens account using email and password via browser automation.
Parameters:
email(string, required) — Walgreens account emailpassword(string, required) — Walgreens account passwordheadless(boolean, optional) — Run browser headless (default:true). Setfalseto see browser window (useful if CAPTCHA appears).
logout
Clear Walgreens session and stored cookies.
Parameters: none
search
Search Walgreens products and medications by query with optional filters.
Parameters:
query(string, required) — Search term (e.g.,"ibuprofen","vitamin c")category(string, optional) — Category filter (e.g.,"vitamins","cold-flu","beauty")min_price(number, optional) — Minimum price filtermax_price(number, optional) — Maximum price filterlimit(number, optional) — Max results to return (default: 10, max: 24)
get_product
Get detailed Walgreens product information by URL or product ID.
Parameters:
url(string, optional) — Full Walgreens product URLproduct_id(string, optional) — Walgreens product ID (alternative to URL)
Returns: title, brand, price, product ID, rating, description, availability, images.
check_prescription_status
Check the status of prescriptions in your Walgreens pharmacy account.
Parameters:
rx_number(string, optional) — Prescription (Rx) number to check. Omit to list all prescriptions.
Returns: drug name, Rx number, status, refills remaining, days supply, last filled date.
refill_prescription
Request a prescription refill at Walgreens pharmacy.
Parameters:
rx_number(string, required) — Prescription (Rx) number to refill
add_to_cart
Add a Walgreens product to the cart.
Parameters:
url(string, optional) — Walgreens product URLproduct_id(string, optional) — Walgreens product ID (alternative to URL)quantity(number, optional) — Quantity to add (default: 1)
view_cart
View current Walgreens cart contents and totals.
Parameters: none
Returns: list of items with name, price, quantity, subtotal, tax, and total.
remove_from_cart
Remove a specific item from the Walgreens cart.
Parameters:
item_index(number, optional) — 1-based index fromview_cartresultsproduct_name(string, optional) — Partial product name to match (alternative to index)
set_store
Set preferred Walgreens store location by ZIP code or store ID.
Parameters:
zip_code(string, optional) — ZIP code to find nearby Walgreens storesstore_id(string, optional) — Specific Walgreens store ID (alternative to ZIP)
Persists the store selection across sessions.
check_store_availability
Check if a product is available at a Walgreens store location.
Parameters:
url(string, optional) — Walgreens product URLproduct_id(string, optional) — Walgreens product ID (alternative to URL)zip_code(string, optional) — ZIP code to check. Uses preferred store if not provided.
Returns: in-store pickup availability, online shipping availability, store name.
checkout
Proceed to checkout and return full order summary.
Parameters: none
Note: This tool returns a checkout summary only — it does not auto-confirm or place the order. You must complete the purchase manually at the provided URL.
Session Storage
Credentials are never stored. Only session cookies and metadata are persisted:
~/.striderlabs/walgreens/cookies.json— Playwright session cookies~/.striderlabs/walgreens/auth.json— Account email, name, login timestamp~/.striderlabs/walgreens/store.json— Preferred store info
Technical Details
- Browser automation: Playwright (Chromium)
- Bot detection evasion: Custom stealth patches (removes
navigator.webdriver, spoofs plugins/languages) - Session persistence: Cookies saved after each tool call, restored on next use
- Transport: stdio (MCP standard)
Security Notes
- Passwords are never written to disk
- If CAPTCHA appears during login, set
headless: falseto complete it manually - The
checkouttool never auto-places orders — it's read-only for safety
License
MIT — Strider Labs
Install Walgreens in Claude Desktop, Claude Code & Cursor
unyly install walgreensInstalls into Claude Desktop, Claude Code, Cursor & VS Code — handles npx, uvx and build-from-source repos for you.
First time? Get the CLI: curl -fsSL https://unyly.org/install | sh
Or configure manually
Run in your terminal:
claude mcp add walgreens -- npx -y @striderlabs/mcp-walgreensStep-by-step: how to install Walgreens
FAQ
Is Walgreens MCP free?
Yes, Walgreens MCP is free — one-click install via Unyly at no cost.
Does Walgreens need an API key?
No, Walgreens runs without API keys or environment variables.
Is Walgreens hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Walgreens in Claude Desktop, Claude Code or Cursor?
Open Walgreens on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Changes
Versions and requested access over time.
- New version published
Related MCPs
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
by modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
by xuzexin-hzMCP-Agent
A simple, composable framework to build agents using Model Context Protocol by [LastMile AI](https://www.lastmileai.dev)
by lastmile-aiSpring AI MCP Client
Provides auto-configuration for MCP client functionality in Spring Boot applications.
mcp.natoma.ai
A Hosted MCP Platform to discover, install, manage and deploy MCP servers by [Natoma Labs](https://www.natoma.ai)
MCPHub
Website to list high quality MCP servers and reviews by real users. Also provide online chatbot for popular LLM models with MCP server support.
MCP Servers Rating and User Reviews
Website to rate MCP servers, write authentic user reviews, and [search engine for agent & mcp](http://www.deepnlp.org/search/agent)
mkinf
An Open Source registry of hosted MCP Servers to accelerate AI agent workflows.
Compare Walgreens with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All ai MCPs
