PubMed MCP
Enables searching and retrieving academic article metadata from PubMed through a simple HTTP interface. Provides curated article summaries including titles, authors, publication dates, and DOIs for research and academic content discovery.
README
PubMed MCP
PubMed MCP exposes the PubMed E-Utilities search workflow over HTTP so it can be consumed by clients that implement the Model Context Protocol (MCP) or any other REST-capable integration. It provides a single endpoint for querying PubMed and returns curated article metadata in a consistent JSON shape.
Features
- 🔎 Search PubMed with a single HTTP request.
- 📄 Retrieves article summaries (title, journal, publication date, authors, DOI, and canonical URL).
- 🛠️ Configurable via environment variables, including an optional NCBI API key for higher rate limits.
- 🧪 Tested with mocked responses to ensure resilient parsing of PubMed responses.
Getting started
1. Install dependencies
Create and activate a Python 3.10+ environment, then install the dependencies:
pip install -e .
# For development and testing extras
pip install -e .[dev]
2. (Optional) Configure an API key
Set PUBMED_API_KEY or NCBI_API_KEY with your NCBI E-Utilities API key to unlock higher throughput.
export PUBMED_API_KEY="your-api-key"
3. Launch the HTTP server
Run the FastAPI app with Uvicorn:
uvicorn pubmed_mcp.server:app --host 0.0.0.0 --port 8000
# or
python -m pubmed_mcp.main
You can now query the service:
curl "http://localhost:8000/articles/search?q=heart+disease&limit=5"
4. Run the test suite
pytest
API
GET /health– Returns{ "status": "ok" }for readiness checks.GET /articles/search– Required query parameterq; optionallimit(default10, max50). Returns a JSON payload containing the original query, the applied limit, and a list of article summaries.
Development notes
- The
PubMedClienthandles eSearch and eSummary requests and merges them into a list ofArticleSummarydataclasses. - The FastAPI app caches a single client instance and gracefully closes it during shutdown.
- Tests use
respxto simulate PubMed responses, keeping the suite fast and deterministic.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.