pubmed-mcp-server
0
PubMed MCP Server is a FastAPI-based service that provides an interface to access PubMed databases, enabling article search and metadata retrieval. A key feature is the capability to download PDF files of PMC articles, making it a useful tool for research purposes.
Overview
PubMed MCP Server is a service based on fastapi-mcp that provides access interfaces to the PubMed database. This service allows users to search PubMed articles, retrieve article metadata, and download PDFs of PMC articles.
Features
- Search Articles: Search for articles in the PubMed database using keywords.
- Retrieve Metadata: Obtain detailed information of articles with a specific PubMed ID, including title, abstract, authors, and keywords.
- Download PDF: Download PDFs of PMC articles locally.
Installation and Configuration
- Clone the repository and navigate into the directory.
- Create and activate a virtual environment using
uv
. - Configure using a
.env
file to set the download path for PDFs.
Usage
Run the server, which will be available at http://localhost:8977, and configure the endpoint in an MCP client with SSE mode.
Project Structure
- Includes directories such as
app/
for API definition,core/
for core functionalities, andservice/
for service layers such as search and file download.