🔍 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.
To install pubmed Server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli@latest install @JackKuo666/pubmed-mcp-server --client claude --config "{}"
Paste the following into Settings → Cursor Settings → MCP → Add new server:
npx -y @smithery/cli@latest run @JackKuo666/pubmed-mcp-server --client cursor --config "{}"
npx -y @smithery/cli@latest install @JackKuo666/pubmed-mcp-server --client windsurf --config "{}"
npx -y @smithery/cli@latest install @JackKuo666/pubmed-mcp-server --client cline --config "{}"
Clone the repository:
shell
git clone https://github.com/JackKuo666/PubMed-MCP-Server.git
cd PubMed-MCP-Server
Install the required dependencies:
shell
pip install -r requirements.txt
Start the MCP server:
python pubmed_server.py
Add this configuration to your claude_desktop_config.json
:
{
"mcpServers": {
"pubmed": {
"command": "python",
"args": ["-m", "pubmed-mcp-server"]
}
}
}
{
"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": []
}
}
}
{
"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": []
}
}
}
The PubMed MCP Server provides the following tools:
search_pubmed_key_words
: Search for articles on PubMed using keywords.search_pubmed_advanced
: Perform an advanced search for articles on PubMed with multiple parameters.get_pubmed_article_metadata
: Fetch metadata for a PubMed article using its PMID.download_pubmed_pdf
: Attempt to download the full-text PDF for a PubMed article.deep_paper_analysis
: Perform a comprehensive analysis of a PubMed article.You can ask the AI assistant to search for papers using queries like:
Can you search PubMed for recent papers about CRISPR?
Once you have a PMID, you can ask for more details:
Can you show me the metadata for the paper with PMID 12345678?
You can request a deep analysis of a paper:
Can you perform a deep analysis of the paper with PMID 12345678?
pubmed_server.py
: The main MCP server implementation using FastMCPpubmed_web_search.py
: Contains the logic for searching PubMed and retrieving article informationContributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License.
This tool is for research purposes only. Please respect PubMed's terms of service and use this tool responsibly.
🔍 Enable AI assistants to search, access, and analyze PubMed articles through a simple MCP interface.
No releases published
No packages published