About lineex-pubmed-mcp-smithery
lineex-pubmed-mcp-smithery is an MCP server for researchers searching and retrieving PubMed literature. It adds MeSH lookup, publication counts, detailed paper records, and structured PICO searches with synonyms.
Key features
- 01Search by keywords and journal
- 02Sort results by relevance or date
- 03Look up related MeSH terms
- 04Count publications for multiple terms
- 05Retrieve paper details by PMID
- 06Run synonym-aware PICO searches
Use cases
- 01Find papers for a focused medical topic
- 02Compare publication counts across terms
- 03Build PICO searches for evidence reviews
MCP support
It exposes PubMed search, MeSH lookup, publication counts, paper details, and PICO search tools to MCP clients.
Configuration
Remote servers need no local install. Pick your client, then copy the config or install in one click.
https://server.smithery.ai/@lineex/pubmed-mcp-smithery/mcpclaude mcp add --transport http ai-smithery-lineex-pubmed-mcp-smithery https://server.smithery.ai/@lineex/pubmed-mcp-smithery/mcp{"mcpServers":{"ai-smithery-lineex-pubmed-mcp-smithery":{"type":"http","url":"https://server.smithery.ai/@lineex/pubmed-mcp-smithery/mcp"}}}Open in Cursor{"servers":{"ai-smithery-lineex-pubmed-mcp-smithery":{"type":"http","url":"https://server.smithery.ai/@lineex/pubmed-mcp-smithery/mcp"}}}Open in VS Code{"mcpServers":{"ai-smithery-lineex-pubmed-mcp-smithery":{"type":"http","url":"https://server.smithery.ai/@lineex/pubmed-mcp-smithery/mcp"}}}{"mcpServers":{"ai-smithery-lineex-pubmed-mcp-smithery":{"serverUrl":"https://server.smithery.ai/@lineex/pubmed-mcp-smithery/mcp"}}}Run commands in a terminal; paste JSON into the client’s MCP config and restart. Servers that need sign-in will prompt on first connect.
https://server.smithery.ai/@lineex/pubmed-mcp-smithery/mcpAuth requiredTools
Details
From the project READMEPubMed Enhanced Search MCP Server
A Model Content Protocol server that provides enhanced tools to search and retrieve academic papers from PubMed database, with additional features such as MeSH term lookup, publication count statistics, and PICO-based evidence search.
Features
- Search PubMed by keywords with optional journal filter
- Support for sorting results by relevance or date (newest/oldest first)
- Get MeSH (Medical Subject Headings) terms related to a search word
- Get publication counts for multiple search terms (useful for comparing prevalence)
- Retrieve detailed paper information including abstract, DOI, authors, and keywords
- Perform structured PICO-based searches with support for synonyms and combination queries
Installing
Prerequisites
- Python 3.6+
- pip
Installation
-
Clone this repository:
git clone https://github.com/leescot/pubmed-mcp-smithery cd pubmed-mcp-smithery -
Install dependencies:
pip install fastmcp requests
Usage
Running locally
Start the server:
python pubmed_enhanced_mcp_server.py
For development mode with auto-reloading:
mcp dev pubmed_enhanced_mcp_server.py
Adding to Claude Desktop
Edit your Claude Desktop configuration file (CLAUDE_DIRECTORY/claude_desktop_config.json) to add the server:
"pubmed-enhanced": {
"command": "python",
"args": [
"/path/pubmed-mcp-smithery/pubmed_enhanced_mcp_server.py"
]
}
MCP Functions
The server provides these main functions:
-
search_pubmed- Search PubMed for articles matching keywords with optional journal filtering# Example results = await search_pubmed( keywords=["diabetes", "insulin resistance"], journal="Nature Medicine", num_results=5, sort_by="date_desc" ) -
get_mesh_terms- Look up MeSH terms related to a medical concept# Example mesh_terms = await get_mesh_terms("diabetes") -
get_pubmed_count- Get the count of publications for multiple search terms# Example counts = await get_pubmed_count(["diabetes", "obesity", "hypertension"]) -
format_paper_details- Get detailed information about specific papers by PMID# Example paper_details = await format_paper_details(["12345678", "87654321"]) -
pico_search- Perform structured PICO (Population, Intervention, Comparison, Outcome) searches with synonyms# Example pico_results = await pico_search( p_terms=["diabetes", "type 2 diabetes", "T2DM"], i_terms=["metformin", "glucophage"], c_terms=["sulfonylurea", "glipizide"], o_terms=["HbA1c reduction", "glycemic control"] )
PICO Search Functionality
The PICO search tool helps researchers conduct evidence-based literature searches by:
- Allowing multiple synonym terms for each PICO element
- Combining terms within each element using OR operators
- Performing AND combinations between elements (P AND I, P AND I AND C, etc.)
- Returning both search queries and publication counts for each combination
This approach helps refine research questions and identify the most relevant literature.
Rate Limiting
The server implements automatic retry mechanism with backoff delays to handle potential rate limiting by NCBI's E-utilities service.
License
This project is licensed under the BSD 3-Clause License - see the LICENSE file for details.
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.