pubmed-mcp

chrismannina/pubmed-mcp

3.3

If you are the rightful owner of pubmed-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

The PubMed MCP Server is a comprehensive tool for advanced literature search and management using the Model Context Protocol.

The PubMed MCP Server is designed to enhance the capabilities of researchers and academics by providing a robust platform for searching and managing PubMed literature. It leverages the Model Context Protocol (MCP) to offer advanced search functionalities, citation formatting, and research analysis tools. This server is particularly useful for those who need to perform complex searches with specific filters such as date ranges, article types, and MeSH terms. Additionally, it supports citation export in multiple formats, making it easier for users to manage their references. The server also includes features for analyzing research trends and comparing articles, which can be invaluable for academic research and publication. With built-in caching and rate limiting, the server ensures efficient and respectful use of the PubMed API.

Features

  • Advanced PubMed Search: Perform complex searches with filters like date ranges, article types, and MeSH terms.
  • Citation Export: Export citations in various formats including BibTeX, APA, and MLA.
  • Author Search: Find articles by specific authors and view co-author information.
  • Research Trends: Analyze publication trends over time to identify emerging topics.
  • Article Comparison: Compare multiple articles side by side for detailed analysis.

Usages

usage with local stdio

python
mcp.run(transport='stdio')

usage with remote sse

python
mcp.run(transport='sse', host="0.0.0.0", port=8000)

usage with remote streamable http

yaml
paths:
  /mcp:
    post:
      x-ms-agentic-protocol: mcp-streamable-1.0

usage with ide plugin

{
  "mcpServers": {
    "pubmed": {
      "command": "python",
      "args": ["-m", "src.main"]
    }
  }
}

usage with docker

bash
make docker-build
make docker-run PUBMED_API_KEY=your_key PUBMED_EMAIL=your_email

Tools

  1. search_pubmed

    Search PubMed with advanced filtering options.

  2. get_article_details

    Retrieve detailed information for specific PMIDs.

  3. search_by_author

    Search for articles by a specific author.

  4. export_citations

    Export citations in various formats.

  5. find_related_articles

    Find articles related to a specific PMID.