pubcrawl
A peer-reviewed pub crawl through the literature — MCP server for PubMed & biomedical literature search
claude mcp add --transport stdio nickjlamb-pubcrawl pubcrawl
How to use
PubCrawl is an MCP server that exposes a curated set of tools to access biomedical literature, drug labelling information, and ClinicalTrials data. It aggregates PubMed search and retrieval (citations, abstracts, full text where available), US and UK drug labeling, and ClinicalTrials.gov records, making it possible to query and format results for downstream LLM interactions. Tools include search_pubmed, get_abstract, get_full_text, find_related, format_citation, trending_papers, get_uspi, get_smpc, compare_labels, search_by_indication, search_trials, and get_trial. To use it, install the pubcrawl CLI or run it from your environment as configured, then issue structured prompts that target one of the tools (for example, asking for a PubMed search, retrieving an abstract, or comparing US and UK labelling). The server handles the underlying API calls and returns structured results, enabling your LLM client to present concise summaries, citations, and regulatory information with provenance where available.
How to install
Prerequisites:
- Node.js 20+ installed on your system
- Access to a terminal or shell
Option A: Install via npm (global CLI)
- Install the package globally so you can run the pubcrawl command from anywhere:
npm install -g @pharmatools/pubcrawl
- Run the server or connect to it from your MCP client by pointing to the pubcrawl command:
# Example: start the server (if the CLI supports running as a server)
pubcrawl
Option B: Install from source and build
- Clone the repository and install dependencies:
git clone https://github.com/nickjlamb/pubcrawl.git
cd pubcrawl
npm install
- Build the project to generate distributable artifacts:
npm run build
- Point your MCP config to the built file, for example:
{
"mcpServers": {
"pubcrawl": {
"command": "node",
"args": ["/path/to/pubcrawl/dist/index.js"]
}
}
}
Option C: Use via npx (on-demand, no global install)
- If you prefer not to install globally, you can run via npx:
npx -y @pharmatools/pubcrawl
Note: If you use an API key (for NCBI or other services), ensure you configure the environment variables as described in the README and pass them via your MCP configuration when starting the server.
Additional notes
Tips and considerations:
- If you plan to make a high volume of PubMed or ClinicalTrials requests, consider obtaining and configuring API keys (e.g., NCBI API Key) to increase rate limits.
- The PubCrawl tools return structured data (PMIDs, DOIs, trial IDs, etc.) suitable for prompting LLMs to generate formatted citations or summaries.
- Ensure your MCP client supports the specific tool invocation names (e.g., search_pubmed, get_abstract) and that the server endpoint is reachable from your environment.
- For UK Labelling, ensure access to eMC/SmPC data if you intend to compare USPI vs SmPC outputs; some data sources may require you to respect terms of use.
- If you encounter rate limits or connectivity issues, verify network access to external resources (PubMed, FDA, eMC, ClinicalTrials.gov) and check any API key configuration in your environment variables.
Related MCP Servers
obsidian -tools
Add Obsidian integrations like semantic search and custom Templater prompts to Claude or any MCP client.
Matryoshka
MCP server for token-efficient large document analysis via the use of REPL state
pluggedin-app
The Crossroads for AI Data Exchanges. A unified, self-hostable web interface for discovering, configuring, and managing Model Context Protocol (MCP) servers—bringing together AI tools, workspaces, prompts, and logs from multiple MCP sources (Claude, Cursor, etc.) under one roof.
pubmed
A Model Context Protocol (MCP) server enabling AI agents to intelligently search, retrieve, and analyze biomedical literature from PubMed via NCBI E-utilities. Includes a research agent scaffold. STDIO & HTTP
Agentic -Skill
Agentic-MCP, Progressive MCP client with three-layer lazy loading. Validates AgentSkills.io pattern for efficient token usage. Use MCP without pre-install & wasting full-loading
mongo
MCP server that provide tools to LLMs such as claude in cursor to interact with MongoDB