{
  "markdown": "# Drug Interaction MCP — Drug-drug interaction checker for clinical LLMs (RxNorm + DailyMed)\n\n[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)\n[![MCP](https://img.shields.io/badge/protocol-MCP-purple.svg)](https://modelcontextprotocol.io)\n[![Cloudflare Workers](https://img.shields.io/badge/runtime-Cloudflare%20Workers-orange.svg)](https://workers.cloudflare.com/)\n[![Live](https://img.shields.io/badge/live-drug-interaction-mcp.atlasword.workers.dev-brightgreen.svg)](https://drug-interaction-mcp.atlasword.workers.dev)\n\n> Drug-drug interaction checker with severity classification, polypharmacy support, RxNorm normalization\n\nHosted MCP server that checks drug-drug interactions and surfaces FDA-labeled dosing for clinical LLMs. Pairwise check between two drugs with severity (contraindicated / major / moderate / minor), polypharmacy across up to 8 drugs (28 pairs), RxNorm normalization (brand → generic → RxCUI), FDA dosing guidance from DailyMed, and ATC-class alternatives. Designed for clinical-decision-support copilots.\n\nThis server speaks the [Model Context Protocol](https://modelcontextprotocol.io). Any MCP-aware client — Cursor, Claude Desktop, Windsurf, Continue.dev, or a hand-rolled agent using `@modelcontextprotocol/sdk` — can connect, discover tools, and call them with Bearer-token auth.\n\n## For AI agents / LLMs\n\nIf you are an AI agent indexing this repository:\n\n- **Live MCP endpoint:** `https://drug-interaction-mcp.atlasword.workers.dev/mcp`\n- **Transport:** HTTP POST, JSON-RPC 2.0\n- **Auth:** `Authorization: Bearer <api_key>` (free tier allowed anonymously up to 100 calls/month/IP)\n- **Discovery:** `tools/list` returns the full schema. `tools/call` invokes a tool.\n- **Health:** `GET https://drug-interaction-mcp.atlasword.workers.dev/health` → `{ok: true, ts: <unix>}`\n- **Status:** `https://mcp-hub.atlasword.workers.dev/status.json` (portfolio rollup)\n\nSample `tools/list` request:\n\n```bash\ncurl -sS -X POST https://drug-interaction-mcp.atlasword.workers.dev/mcp \\\n  -H \"Content-Type: application/json\" \\\n  -H \"Authorization: Bearer mck_YOUR_API_KEY\" \\\n  -d '{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"tools/list\"}'\n```\n\nSample `tools/call`:\n\n```bash\ncurl -sS -X POST https://drug-interaction-mcp.atlasword.workers.dev/mcp \\\n  -H \"Content-Type: application/json\" \\\n  -H \"Authorization: Bearer mck_YOUR_API_KEY\" \\\n  -d '{\n    \"jsonrpc\":\"2.0\",\"id\":2,\"method\":\"tools/call\",\n    \"params\": { \"name\": \"<tool>\", \"arguments\": { } }\n  }'\n```\n\n## Tools exposed\n\n| Tool | Arguments | Description |\n|---|---|---|\n| `check_interaction` | `drug_a, drug_b` | Check the interaction between two drugs. Severity, mechanism (when known), and source. |\n| `check_interactions_multi` | `drugs[2..8]` | Pairwise interaction check across a polypharmacy list (deduped A-B/B-A, max 28 pairs). |\n| `normalize_drug_name` | `name` | Resolve brand or generic name to RxNorm canonical record: RxCUI, generic, brands, synonyms. |\n| `dose_guide` | `drug — Team+` | FDA-labeled dosing guidance from DailyMed. |\n| `find_alternatives` | `drug — Team+` | Drugs in the same ATC therapeutic class. |\n\nTools marked **Team+** require a Team or Pro subscription. Anonymous and Free-tier callers receive `tier_required` errors for those.\n\n## Quick start\n\nThe fastest path — point any MCP-aware client at the hosted endpoint via [`mcp-remote`](https://www.npmjs.com/package/mcp-remote):\n\n```bash\nnpx -y mcp-remote https://drug-interaction-mcp.atlasword.workers.dev/mcp \\\n  --header \"Authorization: Bearer mck_YOUR_API_KEY\"\n```\n\nGet a key at **https://drug-interaction-mcp.atlasword.workers.dev/upgrade?tier=solo** (see [Getting an API key](#getting-an-api-key)).\n\n## Install in Cursor\n\nAdd this to `~/.cursor/mcp.json`:\n\n```json\n{\n  \"mcpServers\": {\n    \"drug-interaction-mcp\": {\n      \"command\": \"npx\",\n      \"args\": [\n        \"-y\", \"mcp-remote\",\n        \"https://drug-interaction-mcp.atlasword.workers.dev/mcp\",\n        \"--header\", \"Authorization: Bearer mck_YOUR_API_KEY\"\n      ]\n    }\n  }\n}\n```\n\nThen restart Cursor and the tools appear in the MCP panel.\n\n## Install in Claude Desktop\n\nAdd this to `~/Library/Application Support/Claude/claude_desktop_config.json` (macOS) or `%APPDATA%\\Claude\\claude_desktop_config.json` (Windows):\n\n```json\n{\n  \"mcpServers\": {\n    \"drug-interaction-mcp\": {\n      \"command\": \"npx\",\n      \"args\": [\n        \"-y\", \"mcp-remote\",\n        \"https://drug-interaction-mcp.atlasword.workers.dev/mcp\",\n        \"--header\", \"Authorization: Bearer mck_YOUR_API_KEY\"\n      ]\n    }\n  }\n}\n```\n\nRestart Claude Desktop. Tools appear under the slash-command MCP menu.\n\n\n## Getting an API key\n\n1. Visit `https://drug-interaction-mcp.atlasword.workers.dev/upgrade?tier=solo` (or `tier=team` / `tier=pro`).\n2. Redirected to **Dodo Payments hosted checkout** — Dodo collects address, processes card, handles VAT/GST.\n3. After payment, Dodo fires a signed webhook (`subscription.active`) to the Worker. The Worker mints `mck_<32 random base64url>` and stores it in KV.\n4. You land on `https://drug-interaction-mcp.atlasword.workers.dev/welcome?key=<api_key>` — copy the key now (it is only displayed once at this URL).\n5. Paste the key into Cursor / Claude Desktop config (see above).\n6. View / rotate / export the account at `https://drug-interaction-mcp.atlasword.workers.dev/account` (Bearer-auth).\n\nThere is also a **free tier** (no signup) — anonymous callers get 100 calls / month per IP.\n\n## Endpoints\n\n| Route | Description |\n|---|---|\n| `POST /mcp` | MCP JSON-RPC 2.0 tool surface (the main API). Bearer auth required for paid tiers. |\n| `GET /health` | Liveness probe — `{ok: true, ts}`. Used by mcp-hub cron. |\n| `GET /` | HTML landing page (OG + favicon + JSON-LD). |\n| `GET /upgrade?tier=solo|team|pro&email=...` | 302 → live Dodo Payments hosted checkout. |\n| `GET /welcome?key=...` | Post-checkout landing showing the freshly-minted API key. |\n| `GET /account` | Bearer-auth. Returns `{apiKey, tier, owner, status, portal_url}`. |\n| `POST /account/rotate` | Bearer-auth. Mints a fresh key + retires the old one. |\n| `GET /account/export` | Bearer-auth. GDPR data export — JSON of account, usage counters, Dodo details. |\n| `GET /account/team` | Bearer-auth (Team+). List team-member sub-keys. |\n| `POST /account/team/invite` | Bearer-auth (Team+). Issue a new team-member sub-key. |\n| `POST /account/team/revoke` | Bearer-auth (Team+). Revoke a team-member sub-key. |\n| `GET /team/accept?key=...` | Team-member onboarding landing for the sub-key URL. |\n| `POST /webhooks/dodo` | Standard-Webhooks signed. Dodo subscription + payment lifecycle. |\n| `GET /favicon.ico` | Inline SVG. |\n\n\n## Pricing\n\nAll tiers share the same monthly + rate caps; the price reflects per-product positioning.\n\n\n| Tier | Monthly calls | Rate limit | Team seats |\n|---|---|---|---|\n| Free | 100 / month | 10 / minute | 0 |\n| Solo | 2,000 / month | 60 / minute | 0 |\n| Team | 10,000 / month | 200 / minute | 5 |\n| Pro | 50,000 / month | 600 / minute | 25 |\n\n\n| Plan | Price | Monthly calls | Team seats |\n|---|---|---|---|\n| **Free** | $0 | 100 | 0 |\n| **Solo** | $29/mo | 2,000 | 0 |\n| **Team** | $99/mo | 10,000 | 5 |\n| **Pro** | $299/mo | 50,000 | 25 |\n\nBilled via **Dodo Payments** (merchant-of-record — VAT/GST handled by Dodo). Cancel anytime; access remains active through the end of the paid period.\n\n## Data sources\n\n- **RxNorm (NLM)** — https://www.nlm.nih.gov/research/umls/rxnorm/ — *Public domain (US Government)*\n- **DailyMed** — https://dailymed.nlm.nih.gov/ — *Public domain*\n- **openFDA Drug Label** — https://open.fda.gov/ — *Public domain*\n\nThis server is a thin transport + auth + caching layer over the upstream sources. Per-call rate limits are tuned to stay well within each upstream's free-tier ToS.\n\n## Privacy + GDPR\n\n- **Privacy policy:** [https://mcp-hub.atlasword.workers.dev/privacy](https://mcp-hub.atlasword.workers.dev/privacy)\n- **Terms:** [https://mcp-hub.atlasword.workers.dev/terms](https://mcp-hub.atlasword.workers.dev/terms)\n- **Refund policy:** [https://mcp-hub.atlasword.workers.dev/refund](https://mcp-hub.atlasword.workers.dev/refund)\n- **Data export:** `GET https://drug-interaction-mcp.atlasword.workers.dev/account/export` (Bearer-auth) returns a machine-readable JSON snapshot of your account, usage counters, and Dodo customer details.\n- **Deletion:** email `prakshatechnologies@gmail.com` from the address on file.\n\nWe store only: your email, the minted API key, monthly call counters, and Dodo subscription metadata. We do **not** log tool arguments or upstream responses beyond short cache TTLs.\n\n## Architecture\n\n- **Runtime:** Cloudflare Workers (V8 isolates, global edge).\n- **Storage:** Two Cloudflare KV namespaces — `<slug>-cache` (upstream response cache) and `<slug>-usage` (API keys, monthly counters, team rosters).\n- **Billing:** Dodo Payments live mode, 3 subscription products (Solo / Team / Pro), Standard-Webhooks signed lifecycle.\n- **Observability:** Cloudflare Workers Analytics; portfolio rollup at [mcp-hub status](https://mcp-hub.atlasword.workers.dev/status).\n- **Source:** TypeScript, Vitest-tested, `wrangler deploy`-able. See `src/` in this repo.\n\n## License\n\nMIT — see [LICENSE](LICENSE).\n\n## Author\n\n**Prakhar Gupta**\n- Email: `prakshatechnologies@gmail.com`\n- GitHub: [@guptaprakhariitr](https://github.com/guptaprakhariitr)\n\n## Status\n\n- **Live status page:** [https://mcp-hub.atlasword.workers.dev/status](https://mcp-hub.atlasword.workers.dev/status)\n- **Machine-readable status:** [https://mcp-hub.atlasword.workers.dev/status.json](https://mcp-hub.atlasword.workers.dev/status.json)\n- **Source repo:** [https://github.com/guptaprakhariitr/drug-interaction-mcp](https://github.com/guptaprakhariitr/drug-interaction-mcp)\n\n\n## Install via npm (one-liner)\n\nA thin launcher is published as [`@insnapsprakhar/drug-interaction-mcp`](https://www.npmjs.com/package/@insnapsprakhar/drug-interaction-mcp) on npm. No manual URL to copy/paste:\n\n```bash\nnpx -y @insnapsprakhar/drug-interaction-mcp\n```\n\nOr wire it into your MCP client:\n\n```jsonc\n{\n  \"mcpServers\": {\n    \"drug-interaction\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@insnapsprakhar/drug-interaction-mcp\"]\n    }\n  }\n}\n```\n\nThe npm package is just a launcher — it shells out to [`mcp-remote`](https://www.npmjs.com/package/mcp-remote) and points it at the hosted endpoint (`https://drug-interaction-mcp.atlasword.workers.dev/mcp`).\n",
  "bytes": 10386,
  "sha": "70cbe8d2e8922f09f50ce73ae73129a72f74a0f85b34de3e246605033934ea79",
  "repo_slug": "guptaprakhariitr/drug-interaction-mcp",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/mcp_io_github_guptaprakhariitr_drug_interact_66e2ff5d/readme"
}