PubMed MCP Server
@codingaslu
About PubMed MCP Server
This repository contains an MCP server that searches PubMed for article abstracts using BioPython's Entrez module. It leverages the FastMCP framework to provide asynchronous search capabilities for PubMed.
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"pubmed-mcp-server-codingaslu": {
"command": "uv",
"args": [
"run",
"main.py"
]
}
}
}Tools
No tools detected
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is PubMed MCP Server?
The PubMed MCP Server is a Model Context Protocol (MCP) server that searches PubMed for article abstracts using BioPython's Entrez module and the FastMCP framework. It provides asynchronous search capabilities for researchers and developers who need to retrieve PubMed data through MCP‑compatible clients.
How to use PubMed MCP Server?
Clone the repository, install dependencies with uv add -r requirements.txt, set a valid email address in main.py (Entrez.email), then start the server with uv run main.py. Configure your MCP client with the path to uv and the server directory as specified in the config.json example. Use the search_pubmed tool with parameters query (default "endocarditis") and max_results (default 10).
Key features of PubMed MCP Server
- Searches PubMed for articles by query term.
- Retrieves abstracts of returned articles.
- Asynchronous execution via
asyncio.to_thread. - Built on the FastMCP framework.
- Configurable maximum number of results.
- Simple Python‑based setup with uv.
Use cases of PubMed MCP Server
- Automating literature reviews by programmatically fetching PubMed abstracts.
- Integrating PubMed search results into AI‑powered research assistants.
- Building MCP‑enabled tools that require live biomedical literature data.
- Batch‑retrieving abstracts for multiple search queries in parallel.
FAQ from PubMed MCP Server
What does the PubMed MCP Server do?
It allows MCP‑compatible clients to search PubMed and retrieve article abstracts asynchronously using a single tool (search_pubmed).
What are the required dependencies?
Python 3.8 or higher, the mcp[cli] package, and BioPython. Dependencies are managed via uv and a requirements.txt file.
How do I configure the Entrez email?
You must set a valid email address in main.py by assigning it to Entrez.email. This is required by NCBI’s Entrez usage policy.
What are the default search parameters?
The search tool uses a default query of "endocarditis" and a default max_results of 10. Both can be overridden when calling the tool.
Does the server have any data storage or authentication?
No. The server does not store data locally; it queries PubMed’s public API. No authentication is required beyond the valid email address.
Frequently asked questions
What does the PubMed MCP Server do?
It allows MCP‑compatible clients to search PubMed and retrieve article abstracts asynchronously using a single tool (`search_pubmed`).
What are the required dependencies?
Python 3.8 or higher, the `mcp[cli]` package, and BioPython. Dependencies are managed via `uv` and a `requirements.txt` file.
How do I configure the Entrez email?
You must set a valid email address in `main.py` by assigning it to `Entrez.email`. This is required by NCBI’s Entrez usage policy.
What are the default search parameters?
The search tool uses a default query of `"endocarditis"` and a default `max_results` of 10. Both can be overridden when calling the tool.
Does the server have any data storage or authentication?
No. The server does not store data locally; it queries PubMed’s public API. No authentication is required beyond the valid email address.
Basic information
More Data & Analytics MCP servers
Bright Data MCP
brightdata-comA powerful Model Context Protocol (MCP) server that provides an all-in-one solution for public web access.
MCP Server for Data Exploration
reading-plus-aidbt MCP Server
dbt-labsA MCP (Model Context Protocol) server for interacting with dbt.
ArXiv MCP Server
blazickjpA Model Context Protocol server for searching and analyzing arXiv papers

Octolens
OctolensGive your AI agents every brand mention across the internet — 15+ platforms, AI-filtered, one structured feed.
Comments