home / mcp / pubmed mcp server

PubMed MCP Server

MCP server for searching and querying PubMed medical papers/research database

Installation
Add the following to your MCP client configuration file.

Configuration

View docs
{
  "mcpServers": {
    "andybrandt-mcp-simple-pubmed": {
      "command": "python",
      "args": [
        "-m",
        "mcp_simple_pubmed"
      ],
      "env": {
        "PUBMED_EMAIL": "[email protected]",
        "PUBMED_API_KEY": "your-api-key"
      }
    }
  }
}

You can access PubMed articles through an MCP server that exposes PubMed data via the Entrez API. This server lets you search PubMed, retrieve abstracts, and download full text when available for open access articles. It also includes prompts to help you construct effective PubMed queries for systematic reviews, PICO questions, and author searches.

How to use

Connect to the MCP server from your MCP client and use the provided tools to search PubMed, fetch abstracts, and download open access full text when available. You can also leverage the built-in prompts to generate optimized PubMed queries for common literature search scenarios.

How to install

Prerequisites you need before installing: - Python 3.x installed on your system - An active internet connection for package install and PubMed API access Install via the manual method: 1. Open a terminal or command prompt 2. Run the installation command below to install the MCP package from PyPI.

```bash```

pip install mcp-simple-pubmed

Install via Smithery

If you prefer to install automatically for Claude Desktop using Smithery, run the following command.

```bash```

npx -y @smithery/cli install mcp-simple-pubmed --client claude

Available tools

Search PubMed

Search the PubMed database using keywords, MeSH terms, author names, date ranges, and Boolean operators.

Get Full Text

Download full text when available for open access PubMed Central articles.

Access Abstracts

Retrieve article abstracts and metadata via resource URIs.