mcp-simple-pubmed
MCP server for searching and querying PubMed medical papers/research database
GitHub Stars
126
User Rating
Not Rated
Favorites
0
Views
23
Forks
24
Issues
3
Installation
Difficulty
IntermediateEstimated Time
10-20 minutes
Requirements
Python 3.6以上Installation
Installation
Prerequisites
Please specify required software and versions:Python: 3.6 or higher
Installation Steps
1. Clone Repository
bash
git clone https://github.com/andybrandt/mcp-simple-pubmed.git
cd mcp-simple-pubmed
2. Install Dependencies
bash
pip install mcp-simple-pubmed
Troubleshooting
Common Issues
Issue: Server won't start Solution: Check Python version and reinstall dependencies. Issue: Invalid API key Solution: Verify your API key on the NCBI website.Configuration
Configuration
Basic Configuration
Environment Variables
You need to set the following environment variables:bash
export PUBMED_EMAIL="your-email@example.com"
export PUBMED_API_KEY="your-api-key" # Optional
Configuration Example
Basic Configuration
json
{
"mcpServers": {
"simple-pubmed": {
"command": "python",
"args": ["-m", "mcp_simple_pubmed"],
"env": {
"PUBMED_EMAIL": "your-email@example.com"
}
}
}
}
Examples
Examples
Basic Usage
Programmatic Usage
python
import requests
def call_pubmed_tool(tool_name, params):
response = requests.post(
'http://localhost:3000/mcp/call',
json={
'tool': tool_name,
'parameters': params
}
)
return response.json()
Usage example
result = call_pubmed_tool('search', {
'query': 'COVID-19',
'options': {'format': 'json'}
})
print(result)
Use Cases
Using an AI assistant to search for specific research papers from PubMed.
Medical researchers accessing the latest research findings through PubMed.
Educational institutions providing students with open access papers.
Data scientists retrieving data from PubMed for medical data analysis.
Additional Resources
Author Information
13
Followers
18
Repositories
0
Gists
0
Total Contributions
Related MCPs
LangBot
13398
🤩 Easy-to-use global IM bot platform designed for the LLM era / 简单易用的大模型即时通信机器人开发平台 ⚡️ Bots for QQ / QQ频道 / Discord / WeChat(微信)/ Telegram / 飞书 / 钉钉 / Slack 🧩 Integrated with ChatGPT(GPT)、DeepSeek、Dify、n8n、Claude、Google Gemini、xAI、PPIO、Ollama、阿里云百炼、SiliconFlow、Qwen、Moonshot(Kimi K2)、SillyTraven、MCP、WeClone etc. LLM & Agent & RAG