How to Connect Claude to PubMed Using MCP (Step-by-Step Guide for Life Scientists)
Published Oct 30, 2026
1. Introduction: Why Life Scientists Need MCP for Literature Search
- The Problem: Manually searching PubMed, downloading PDFs, verifying DOIs, and compiling reference lists drains hours of valuable research time. Meanwhile, standard AI chatbots suffer from static training cutoffs and cannot query live global repositories.
- The Solution: Model Context Protocol (MCP) acts as a secure bridge between your AI assistant and live scientific databases, turning Claude into an automated literature review co-pilot.
This guide uses the open-source PubMed MCP server listed in the BenchNBots directory.
2. What You Will Achieve in This Tutorial
By the end of this guide, you will:
- Connect Claude Desktop to a live PubMed search server.
- Run automated multi-paper search queries directly inside your chat window.
- Automatically generate clean comparison tables and BibTeX citations built from real PubMed records.
3. Prerequisites: What Is Needed
Before getting started, make sure you have:
- The Claude Desktop App installed on macOS or Windows (Option A also works on claude.ai in your browser).
- 5 minutes of setup time.
- For Option B only: Node.js version 24 or later installed on your computer (downloadable for free from nodejs.org).
4. Which Setup Option Should You Choose?
There are two ways to connect Claude to PubMed. Both give Claude the same PubMed tools.
| Option A: Connector (recommended) | Option B: Config file (advanced) | |
|---|---|---|
| What you do | Add one URL in Claude's connector settings | Edit a JSON file and restart Claude |
| Install needed | None | Node.js 24 or later |
| Where the PubMed server runs | A public server hosted by the server's developer | On your own computer |
| Works on | Claude Desktop and claude.ai | Claude Desktop only |
| Setup time | About 2 minutes | About 5 minutes |
Choose Option A if you want the quickest setup. Choose Option B if you'd rather your searches don't pass through a third-party server, or your organisation doesn't allow custom connectors.
5. Option A: Add PubMed as a Connector (No Install)
Prefer to watch? This 56-second video with voiceover shows every step below, from opening Customize to Claude's first PubMed answer.
Step 1: Open Your Connectors
In Claude Desktop (or on claude.ai), click Customize in the sidebar and select the Connectors tab.

Step 2: Add a Custom Connector
Click + Add, then Add custom connector.

Fill in the form and click Continue:
- Name:
PubMed - MCP server URL:
https://pubmed.caseyjhand.com/mcp

Step 3: Keep "No sign-in" and Click Add
Claude detects that this server needs no account and selects No sign-in for you. Leave it as it is and click Add. No API key is needed.

Step 4: Connect to PubMed
Click Connect on the new PubMed connector page.

You'll see Connected to PubMed and a list of the server's 12 read-only tools. They are set to Needs approval, so Claude asks before each PubMed search.

Step 5: Turn PubMed On in a Chat
Start a new chat, click + below the message box, open Connectors, and make sure PubMed is switched on. Then go to Run Your First Test Prompt.

6. Option B: Run the PubMed Server on Your Computer (Advanced)
Step 1: Open Your Claude Desktop Configuration File
Claude uses a local configuration file to manage MCP plugins. The easiest way to open it on any computer is in Claude Desktop: go to Settings → Developer → Edit Config. This creates the file if it doesn't exist yet.
- For macOS users: If you use VS Code, you can also open your terminal and paste this command to open the file:
code ~/Library/Application\ Support/Claude/claude_desktop_config.json
- For Windows users: Press
Win + R, paste%APPDATA%\Claude, and openclaude_desktop_config.jsonin any text editor (like Notepad).
Step 2: Add the PubMed MCP Plugin Configuration
Copy and paste the following snippet into your configuration file:
{
"mcpServers": {
"pubmed": {
"command": "npx",
"args": [
"-y",
"@cyanheads/pubmed-mcp-server"
]
}
}
}
If your file already has an "mcpServers" section, add the "pubmed" entry inside it instead of pasting a second one.
Save and close the file.
Step 3: Restart Claude Desktop
Completely quit the Claude Desktop app (ensure it is closed from your system tray or menu bar) and reopen it. This allows Claude to load your new PubMed plugin.
7. Run Your First Test Prompt
Whichever option you chose, paste this exact prompt into a new chat to test your setup:
"Search PubMed for recent peer-reviewed papers published in the last 12 months examining AI-driven workflow execution in biotech R&D. Retrieve 5 papers, extract their core objectives and findings, and format the results into a clean markdown table with verified PMIDs."
Claude will ask before using each PubMed tool, showing exactly what it is about to search for. Click Allow once each time, or Always allow if you don't want to be asked again.

8. Expected Outcomes
When working correctly, Claude will trigger a background search tool, query live PubMed databases, bypass static training limitations, and output a structured markdown comparison table with real, clickable PubMed identifiers (PMIDs) that you can verify instantly.

The PMIDs come straight from PubMed, but Claude still writes the summaries, so check key findings against the abstract before you cite them.
9. Troubleshooting & FAQs
Q: I can't find "Add custom connector" (Option A).
Fix: On Team and Enterprise plans, only organisation owners can add custom connectors, so ask your admin to add it. If connectors are turned off for your organisation, use Option B instead.
Q: Claude says "Tool execution failed" or cannot find the tool (Option B).
Fix: Ensure Node.js 24 or later is installed on your system (run node --version to check) and that your configuration file has valid JSON formatting (check for missing commas or brackets).
Q: Searches fail with "too many requests" errors (Option B).
Fix: Without a key, NCBI allows 3 requests per second. Add a free NCBI API key as an "env": { "NCBI_API_KEY": "your-key" } entry under "pubmed" to raise the limit to 10.
Q: Are my literature searches private?
A: With Option A, your search terms go to the connector's hosted server, run by the server's developer, which then queries NCBI's public PubMed API. With Option B, the server runs on your computer and sends your search terms straight to NCBI over a secure connection. Either way, your prompts and the search results are also processed by Claude, like any other conversation. Avoid putting confidential details, such as unpublished data or patient information, into search queries.
10. Quick Quiz: Test Your Knowledge
- True or False: MCP allows Claude to search live databases instead of relying solely on its static training memory. (Answer: True)
- Which setup option needs no software installed on your computer? (Answer: Option A, adding PubMed as a custom connector.)
- What file format does Claude Desktop use to configure local MCP servers? (Answer: JSON)
- What is the primary benefit of using a PubMed MCP over standard web chatting? (Answer: Access to real-time research papers, with citations taken from live PubMed records instead of the model's memory.)