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

@pharmatools/pubcrawl

v2.1.1

Published

MCP server for PubMed literature search and US/UK drug labelling — built by PharmaTools.AI

Readme

PubCrawl

An MCP server that gives LLM clients access to PubMed, FDA drug labelling, UK medicines data, and ClinicalTrials.gov. A peer-reviewed pub crawl through the literature — the label — and the trial.

Built by PharmaTools.AI.

Tools

Literature

| Tool | What it does | |------|-------------| | search_pubmed | Search PubMed with filters for date range, article type, and sort order. Returns PMIDs, titles, authors, journals, and DOIs. | | get_abstract | Get the full structured abstract for an article — broken into labeled sections (background, methods, results, conclusions) with keywords and MeSH terms. | | get_full_text | Retrieve the full text of open-access articles from PubMed Central, with parsed sections, figure/table captions, and reference counts. | | find_related | Find similar articles using PubMed's neighbor algorithm, ranked by relevance score. | | format_citation | Generate a formatted citation in APA, Vancouver, Harvard, or BibTeX style. | | trending_papers | Find recent papers on a topic, with optional filtering to high-impact journals (Nature, Science, Cell, NEJM, Lancet, JAMA, etc.). |

Drug Labelling

| Tool | What it does | |------|-------------| | get_uspi | Pull US Prescribing Information sections from DailyMed — indications, dosing, warnings, contraindications, and more. Parsed from FDA structured product labels. | | get_smpc | Retrieve UK Summary of Product Characteristics from the eMC — the UK equivalent of US prescribing information, with numbered SmPC sections. | | compare_labels | Side-by-side comparison of US (USPI) and UK (SmPC) labelling for the same drug. Spot regulatory differences in indications, warnings, and dosing. | | search_by_indication | Find drugs approved for a medical condition. Searches FDA labelling via OpenFDA, then cross-references UK availability on the eMC. |

Clinical Trials

| Tool | What it does | |------|-------------| | search_trials | Search ClinicalTrials.gov for clinical trials. Filter by condition, intervention, recruitment status, and phase. Returns NCT IDs, sponsors, enrollment, and links. | | get_trial | Get full details for a clinical trial by NCT ID — eligibility criteria, study design, arms, primary/secondary outcomes, locations, and associated PubMed IDs. |

Setup

Prerequisites

  • Node.js 20+
  • An MCP-compatible client (Claude Desktop, Cursor, etc.)

Install via npm

npm install -g @pharmatools/pubcrawl

Configure Claude Desktop

Add to your claude_desktop_config.json:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "pubcrawl": {
      "command": "pubcrawl"
    }
  }
}

Restart Claude Desktop. PubCrawl will appear under + → Connectors.

Install from source

git clone https://github.com/nickjlamb/pubcrawl.git
cd pubcrawl
npm install
npm run build

Then point the config at the built file:

{
  "mcpServers": {
    "pubcrawl": {
      "command": "node",
      "args": ["/path/to/pubcrawl/dist/index.js"]
    }
  }
}

NCBI API key (optional)

Without an API key, requests are rate-limited to 3/second. With one, you get 10/second.

  1. Create a free NCBI account at https://www.ncbi.nlm.nih.gov/account/
  2. Go to Account Settings → API Key Management
  3. Add the key to your config:
{
  "mcpServers": {
    "pubcrawl": {
      "command": "pubcrawl",
      "env": {
        "NCBI_API_KEY": "your_key_here"
      }
    }
  }
}

Example prompts

Once connected, just ask naturally:

  • "Search PubMed for recent clinical trials on semaglutide"
  • "Get the abstract for PMID 38127654"
  • "Find papers related to this one and format citations in APA"
  • "What are the trending papers on CRISPR gene therapy this month?"
  • "Get the full text of that paper from PMC"
  • "Get the FDA prescribing information for metformin — just the indications and warnings"
  • "Pull the UK SmPC for atorvastatin"
  • "Compare US and UK labelling for lisinopril"
  • "What drugs are approved for type 2 diabetes?"
  • "Find recruiting Phase 3 trials for pembrolizumab in breast cancer"
  • "Get details on clinical trial NCT03086486"

Development

npm run dev    # TypeScript watch mode
npm run build  # Compile to dist/
npm start      # Run the server

License

MIT