GoodRx MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@GoodRx MCP ServerFind the best price for 20mg Atorvastatin near 90210"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
@striderlabs/mcp-goodrx
A Model Context Protocol (MCP) connector for the GoodRx prescription discount service. Enables AI assistants to search for drug prices, find pharmacies, and retrieve discount coupons using GoodRx.
Overview
This MCP connector uses Playwright browser automation to interact with GoodRx, providing real-time prescription drug pricing and discount coupon data.
Related MCP server: MCP Shop Server
Installation
npm install @striderlabs/mcp-goodrxOr install Playwright browsers after installation:
npx playwright install chromiumTools
goodrx_search_drug
Search for a prescription drug on GoodRx to find available pricing information, forms, and dosages.
Parameters:
drug_name(string, required) - Name of the drug (generic or brand name)dosage(string, optional) - Dosage form (e.g., "10mg", "500mg tablet")quantity(number, optional) - Number of pills/units
goodrx_get_prices
Get GoodRx discount prices for a drug at nearby pharmacies.
Parameters:
drug_name(string, required) - Name of the drugdosage(string, optional) - Dosage (e.g., "10mg")quantity(number, default: 30) - Number of pillszip_code(string, optional) - ZIP code to search nearform(string, optional) - Drug form (tablet, capsule, etc.)
goodrx_get_coupon
Get a GoodRx discount coupon for a specific drug at a pharmacy. Returns BIN, PCN, Group, and Member ID needed at checkout.
Parameters:
drug_name(string, required) - Name of the drugpharmacy(string, optional) - Pharmacy name (e.g., "CVS", "Walgreens")dosage(string, optional) - Dosage (e.g., "10mg")quantity(number, default: 30) - Number of pillszip_code(string, optional) - ZIP code for the pharmacy location
goodrx_find_pharmacies
Find pharmacies near a location that accept GoodRx discount coupons.
Parameters:
zip_code(string, required) - ZIP code to search nearpharmacy_name(string, optional) - Filter by pharmacy chain nameradius_miles(number, default: 10) - Search radius in miles
goodrx_compare_prices
Compare drug prices across multiple pharmacies to find the best deal using GoodRx.
Parameters:
drug_name(string, required) - Name of the drug to comparedosage(string, optional) - Dosage (e.g., "10mg")quantity(number, default: 30) - Number of pillszip_code(string, optional) - ZIP code for comparisonpharmacies(string[], optional) - Specific pharmacies to compare (e.g., ["CVS", "Walgreens", "Rite Aid"])form(string, optional) - Drug form (tablet, capsule, etc.)
Usage with Claude Desktop
Add to your Claude Desktop configuration (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
{
"mcpServers": {
"goodrx": {
"command": "npx",
"args": ["-y", "@striderlabs/mcp-goodrx"]
}
}
}Usage with MCP CLI
npx @striderlabs/mcp-goodrxExample Queries
Once connected, you can ask your AI assistant:
"What is the cheapest price for Lisinopril 10mg near 90210?"
"Find pharmacies near ZIP code 10001 that accept GoodRx"
"Get me a GoodRx coupon for Metformin at CVS"
"Compare prices for Atorvastatin 20mg at pharmacies near me"
Technical Details
Uses Playwright with headless Chromium for browser automation
Implements session management with singleton browser instance
Anti-detection measures including custom user agent and navigator property overrides
Graceful shutdown handling for SIGINT/SIGTERM
Requirements
Node.js >= 18
Playwright Chromium browser (installed via
npx playwright install chromium)
License
MIT
Author
Strider Labs hello@striderlabs.ai
Available Tools
5 toolsgoodrx_compare_pricesC
Compare drug prices across multiple pharmacies to find the best deal using GoodRx.
Inputs: drug_name (required), dosage, quantity, zip_code, +2 more.
goodrx_find_pharmaciesB
Find pharmacies near a location that accept GoodRx discount coupons.
Inputs: zip_code (required), pharmacy_name, radius_miles.
goodrx_get_couponA
Get a GoodRx discount coupon for a specific drug at a pharmacy. Returns BIN, PCN, Group, and Member ID needed at checkout.
Inputs: drug_name (required), pharmacy, dosage, quantity, +1 more.
goodrx_get_pricesC
Get GoodRx discount prices for a drug at nearby pharmacies.
Inputs: drug_name (required), dosage, quantity, zip_code, +1 more.
goodrx_search_drugB
Search for a prescription drug on GoodRx to find available pricing information, forms, and dosages.
Inputs: drug_name (required), dosage, quantity.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
5 tool updates
v1.0.0- First observed
goodrx_compare_prices - First observed
goodrx_find_pharmacies - First observed
goodrx_get_coupon - First observed
goodrx_get_prices - First observed
goodrx_search_drug
TDQS
Scored across 5 tools
Each tool has a clearly distinct purpose: compare_prices focuses on price comparison across pharmacies, find_pharmacies locates nearby pharmacies, get_coupon retrieves discount coupon details, get_prices provides pricing at nearby pharmacies, and search_drug searches for drug information. There is no overlap or ambiguity between these functions.
All tools follow a consistent 'goodrx_verb_noun' pattern (e.g., goodrx_compare_prices, goodrx_find_pharmacies), using snake_case and starting with the server prefix. This uniformity makes the tool set predictable and easy to understand.
With 5 tools, this server is well-scoped for its purpose of accessing GoodRx drug pricing and pharmacy services. Each tool serves a specific, necessary function without redundancy, making the count appropriate and manageable.
The tool set covers core GoodRx workflows: searching drugs, finding pharmacies, getting prices, comparing prices, and obtaining coupons. A minor gap is the lack of tools for managing user accounts or prescription history, but the essential operations for price comparison and coupon retrieval are fully covered.
Maintenance
Related MCP Connectors
Playwright browser automation — navigate, click, fill forms, extract, screenshot — 17 agent tools.
A real browser for your agent: screenshots, page checks, Markdown and PDFs.
Web search, browser automation, scraping, crawling and CAPTCHA solving for AI agents.
Unblocking and fresh web data for agents: URL to Markdown, YouTube, Maps, Amazon, jobs. Pay per call
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to automate web browsers through Playwright, providing capabilities for navigation, content extraction, form filling, screenshot capture, and JavaScript execution. Supports multiple browser engines with comprehensive error handling and security features.1-
- AlicenseNot gradedqualityDmaintenanceEnables AI models to find the best online deals by browsing and interacting with multiple shopping platforms like Amazon and eBay across various regions. It uses Playwright to automate searches and retrieve product information from compatible e-commerce and deal-tracking websites.11 npm3MIT
- AlicenseNot gradedqualityDmaintenanceEnables LLMs to perform browser automation tasks including web scraping, taking screenshots, and executing JavaScript using Playwright. It facilitates real-time interaction with web pages and the generation of automated test code.22 npmMIT
- AlicenseNot gradedqualityDmaintenanceProvides browser automation capabilities for AI assistants, enabling web navigation, form filling, and data extraction through Playwright.MIT