PubMed-MCP-Server
π Enable AI assistants to search, access, and analyze PubMed articles through a simple MCP interface.
Safety scan
A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.
Badge for your README
Markdown
[](/listings/jackkuo666--pubmed-mcp-server)HTML
<a href="/listings/jackkuo666--pubmed-mcp-server"><img src="/api/listings/jackkuo666--pubmed-mcp-server/badge.svg" alt="findsafeskills safety rating" /></a>Install
Install instructions from the README
As written by the repo's author. findsafeskills has not verified these steps.
Prerequisites
- Python 3.10+ - FastMCP library
Installation
Installing via Smithery
To install pubmed-mcp-server for Claude Desktop automatically via [Smithery](https://smithery.ai/server/@JackKuo666/pubmed-mcp-server):
claude
npx -y @smithery/cli install @JackKuo666/pubmed-mcp-server --client claude
Cursor
Paste the following into Settings β Cursor Settings β MCP β Add new server: - Mac/Linux
npx -y @smithery/cli@latest run @JackKuo666/pubmed-mcp-server --client cursor --config "{}" Windsurf
npx -y @smithery/cli@latest install @JackKuo666/pubmed-mcp-server --client windsurf --config "{}"CLine
npx -y @smithery/cli@latest install @JackKuo666/pubmed-mcp-server --client cline --config "{}"1. Clone the repository:
git clone https://github.com/JackKuo666/PubMed-MCP-Server.git cd PubMed-MCP-Server
2. Install the required dependencies:
pip install -r requirements.txt
What was scanned
The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.
README.md Β· README Β· 181 lines
View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)
- [](https://mseep.ai/app/jackkuo666-pubmed-mcp-server)
- # PubMed MCP Server
- [](https://smithery.ai/server/@JackKuo666/pubmed-mcp-server)
- π 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 β
- ## π Quick Start
- ### Prerequisites
- - Python 3.10+
- - FastMCP library
- ### Installation
- ### Installing via Smithery
- To install pubmed-mcp-server for Claude Desktop automatically via [Smithery](https://smithery.ai/server/@JackKuo666/pubmed-mcp-server):
- #### claude
- ```bash
- npx -y @smithery/cli install @JackKuo666/pubmed-mcp-server --client claude
- ```
- #### Cursor
- Paste the following into Settings β Cursor Settings β MCP β Add new server:
- - Mac/Linux
- ```s
- npx -y @smithery/cli@latest run @JackKuo666/pubmed-mcp-server --client cursor --config "{}"
- ```
- #### Windsurf
- ```sh
- npx -y @smithery/cli@latest install @JackKuo666/pubmed-mcp-server --client windsurf --config "{}"
- ```
- ### CLine
- ```sh
- npx -y @smithery/cli@latest install @JackKuo666/pubmed-mcp-server --client cline --config "{}"
- ```
- 1. Clone the repository:
- ```
- git clone https://github.com/JackKuo666/PubMed-MCP-Server.git
- cd PubMed-MCP-Server
- ```
- 2. Install the required dependencies:
- ```
- pip install -r requirements.txt
- ```
- ## π Usage
- Start the MCP server:
- ```bash
- python pubmed_server.py
- ```
- ## Usage with Claude Desktop
- Add this configuration to your `claude_desktop_config.json`:
- (Mac OS)
- ```json
- {
- "mcpServers": {
- "pubmed": {
- "command": "python",
- "args": ["-m", "pubmed-mcp-server"]
- }
- }
- }
- ```
- (Windows version):
- ```json
- {
- "mcpServers": {
- "pubmed": {
- "command": "C:\\Users\\YOUR\\PATH\\miniconda3\\envs\\mcp_server\\python.exe",
- "args": [
- "D:\\code\\YOUR\\PATH\\PubMed-MCP-Server\\pubmed_server.py"
- ],
- "env": {},
- "disabled": false,
- "autoApprove": []
- }
- }
- }
- ```
- Using with Cline
- ```json
- {
- "mcpServers": {
- "pubmed": {
- "command": "bash",
- "args": [
- "-c",
- "source /home/YOUR/PATH/mcp-server-pubmed/.venv/bin/activate && python /home/YOUR/PATH/pubmed-mcp-server.py"
- ],
- "env": {},
- "disabled": false,
- "autoApprove": []
- }
- }
- }
- ```
- ## π 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:
- ```
- Can you search PubMed for recent papers about CRISPR?
- ```
- ### Getting Paper Details
- Once you have a PMID, you can ask for more details:
- ```
- Can you show me the metadata for the paper with PMID 12345678?
- ```
- ### Analyzing Papers
- You can request a deep analysis of a paper:
- ```
- 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.
Ratings and comments
Sign in to rate this skill.
Sign inFree to use. If itβs helped, pass it on.