search_pubmed
Search PubMed for medical and life sciences research articles.
Search PubMed with MeSH terms, Boolean operators and date ranges, pull abstracts, and get full text as structured XML when the article is open access.
LABSCO SUMMARY
Anyone can hand a model a search endpoint; what you get back is a naive keyword query. The systematic-review and PICO prompts push it to build the query a librarian would — MeSH terms, synonyms, date filters, a structured clinical question — which is the difference between a plausible reading list and a defensible one. Full text arrives as XML on purpose, so the model can tell a methods section from a discussion.
An MCP server over PubMed through NCBI's Entrez API, with three parts: search tools, abstract and metadata access via resource URIs, and prompts that help build a good query rather than a naive one.
Python, and pip install mcp-simple-pubmed (0.1.16), or a Smithery one-liner for Claude Desktop. PUBMED_EMAIL is required — NCBI asks for a contact address. PUBMED_API_KEY is optional and raises the rate limit from 3 requests per second to 10; the server implements no rate limiting of its own on the grounds that typical assistant use will not approach the cap. On macOS an SSL certificate verification failure is fixed by running the Certificates.command script that ships with a python.org install, then restarting the client. Licensed MIT.
One command plus credentials — pip install mcp-simple-pubmed, then supply credentials
USE CASES
Use the systematic review prompt to generate the MeSH terms, synonyms and date filters, then run it and refine.
Work through the PICO prompt so population, intervention, comparison and outcome each become search terms.
Fetch the full text for open-access articles; the XML keeps the section structure intact for the model.
Use the author search prompt, which handles the name formatting PubMed expects.
Listed in project code.
search_pubmedSearch PubMed for medical and life sciences research articles.
get_paper_fulltextGet full text of a PubMed article using its ID.
BEFORE YOU INSTALL
2 tools registered in the project's code.
Both documented setups run the server on your machine.
INSTALLATION
pip install mcp-simple-pubmed{
"mcpServers": {
"simple-pubmed": {
"command": "python",
"args": [
"-m",
"mcp_simple_pubmed"
],
"env": {
"PUBMED_EMAIL": "<YOUR_PUBMED_EMAIL>",
"PUBMED_API_KEY": "<YOUR_PUBMED_API_KEY>"
}
}
}
}{
"mcpServers": {
"simple-pubmed": {
"command": "C:\\Users\\<YOUR_USERNAME>\\AppData\\Local\\Programs\\Python\\Python311\\python.exe",
"args": [
"-m",
"mcp_simple_pubmed"
],
"env": {
"PUBMED_EMAIL": "<YOUR_PUBMED_EMAIL>",
"PUBMED_API_KEY": "<YOUR_PUBMED_API_KEY>"
}
}
}
}