Labsco
JackKuo666 logo

PubMed MCP Server

β˜… 122

from JackKuo666

A server for searching, retrieving, and analyzing articles from the PubMed database.

πŸ”₯πŸ”₯πŸ”₯βœ“ VerifiedFreeAdvanced setup

MseeP.ai Security Assessment Badge

PubMed MCP Server

smithery badge

πŸ” Enable AI assistants to search, access, and analyze PubMed articles through a simple MCP interface.

The PubMed MCP Server provides a bridge between AI assistants and PubMed's vast repository of biomedical literature through the Model Context Protocol (MCP). It allows AI models to search for scientific articles, access their metadata, and perform deep analysis in a programmatic way.

🀝 Contribute β€’ πŸ“ Report Bug

✨ Core Features

  • πŸ”Ž Paper Search: Query PubMed articles with keywords or advanced search βœ…
  • πŸš€ Efficient Retrieval: Fast access to paper metadata βœ…
  • πŸ“Š Metadata Access: Retrieve detailed metadata for specific papers βœ…
  • πŸ“Š Research Support: Facilitate biomedical sciences research and analysis βœ…
  • πŸ“„ Paper Access: Attempt to download full-text PDF content βœ…
  • 🧠 Deep Analysis: Perform comprehensive analysis of papers βœ…
  • πŸ“ Research Prompts: A set of specialized prompts for paper analysis βœ…

πŸ›  MCP Tools

The PubMed MCP Server provides the following tools:

  1. search_pubmed_key_words: Search for articles on PubMed using keywords.
  2. search_pubmed_advanced: Perform an advanced search for articles on PubMed with multiple parameters.
  3. get_pubmed_article_metadata: Fetch metadata for a PubMed article using its PMID.
  4. download_pubmed_pdf: Attempt to download the full-text PDF for a PubMed article.
  5. deep_paper_analysis: Perform a comprehensive analysis of a PubMed article.

Searching Papers

You can ask the AI assistant to search for papers using queries like:

Copy & paste β€” that's it
Can you search PubMed for recent papers about CRISPR?

Getting Paper Details

Once you have a PMID, you can ask for more details:

Copy & paste β€” that's it
Can you show me the metadata for the paper with PMID 12345678?

Analyzing Papers

You can request a deep analysis of a paper:

Copy & paste β€” that's it
Can you perform a deep analysis of the paper with PMID 12345678?

πŸ“ Project Structure

  • pubmed_server.py: The main MCP server implementation using FastMCP
  • pubmed_web_search.py: Contains the logic for searching PubMed and retrieving article information

πŸ”§ Dependencies

  • Python 3.10+
  • FastMCP
  • asyncio
  • logging
  • requests
  • beautifulsoup4

🀝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

πŸ“„ License

This project is licensed under the MIT License.

⚠️ Disclaimer

This tool is for research purposes only. Please respect PubMed's terms of service and use this tool responsibly.