PubMed MCP

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.

Category
Visit Server

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 parameter q; optional limit (default 10, max 50). Returns a JSON payload containing the original query, the applied limit, and a list of article summaries.

Development notes

  • The PubMedClient handles eSearch and eSummary requests and merges them into a list of ArticleSummary dataclasses.
  • The FastAPI app caches a single client instance and gracefully closes it during shutdown.
  • Tests use respx to simulate PubMed responses, keeping the suite fast and deterministic.

Recommended Servers

playwright-mcp

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.

Official
Featured
TypeScript
Magic Component Platform (MCP)

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.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

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.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

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.

Official
Featured
TypeScript
Kagi MCP Server

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.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

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.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured