Provides comprehensive access to PubMed database for biomedical literature search, retrieval of full abstracts and texts, citation analysis, query optimization with MeSH terms, and batch processing of multiple articles with export capabilities in RIS format.
Enables cloud deployment of the MCP server on Render.com platform with automatic deployment configuration and remote access capabilities via SSE/HTTP transport.
PubMed MCP Server - Remote Edition
A comprehensive Model Context Protocol (MCP) server for PubMed database access, optimized for deployment on render.com and other cloud platforms. This server provides advanced biomedical literature search, retrieval, and analysis capabilities through both local (stdio) and remote (SSE/HTTP) transports.
π Features
π§ Tools
search_pubmed: Search PubMed with comprehensive summaries and metadataget_full_abstract: Retrieve complete abstracts by PMIDget_full_text: Extract full text from PMC open access articlesexport_ris: Export citations in RIS format for reference managersget_citation_counts: Analyze citation metrics using NCBI elink APIoptimize_search_query: Transform natural language to optimized PubMed queries with MeSH termsfind_similar_articles: Find similar articles using NCBI's similarity algorithmbatch_process: Process multiple PMIDs with multiple operations efficiently
π Deployment Modes
Local Mode: Traditional stdio transport for Claude Desktop
Remote Mode: SSE/HTTP transport for cloud deployment (render.com, etc.)
π Prerequisites
Node.js v18.x or higher
npm or yarn package manager
(Optional) render.com account for cloud deployment
π― Installation & Usage
Option 1: Deploy to Render.com (Recommended for Remote Access)
Fork or clone this repository
Connect to Render.com
Sign up at render.com
Click "New +" β "Web Service"
Connect your GitHub repository
Configure Environment Variables in Render dashboard:
NODE_ENV=production MCP_TRANSPORT=sse PORT=8000 HOST=0.0.0.0 LOG_LEVEL=info NCBI_EMAIL=your-email@example.comDeploy
Render will automatically detect
render.yamland deployYour service URL will be:
https://pubmed-mcp-server.onrender.com
Add to Claude Desktop
Add to your Claude Desktop configuration:
Windows: %APPDATA%\Claude\claude_desktop_config.json
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Option 2: Local Installation
Clone and install
Configure for Local Mode
Add to Claude Desktop configuration:
Option 3: Development Mode
βοΈ Configuration
Environment Variables
Variable | Description | Default | Required |
| Environment mode |
| No |
| Transport mode (
or
) |
| No |
| Server port (remote mode only) |
| No |
| Server host (remote mode only) |
| No |
| Logging level (
,
,
,
) |
| No |
| Email for NCBI API (required by NCBI) |
| Yes |
| Maximum search results |
| No |
| API timeout in milliseconds |
| No |
Transport Modes
Stdio Mode (Local)
Traditional MCP transport for local Claude Desktop
Activated by default or when
MCP_TRANSPORT=stdioCommunication via stdin/stdout
SSE Mode (Remote)
HTTP/SSE transport for remote deployment
Activated when
MCP_TRANSPORT=sseor--remoteflagProvides HTTP endpoints:
/sse- SSE connection endpoint/health- Health check endpoint/message- Client-to-server messaging
π Example Usage
1. Query Optimization
2. Literature Search
3. Citation Analysis
4. Batch Processing
π API Limits
Operation | Limit | Notes |
Search results | 100 articles | Per query |
Full abstracts | 20 PMIDs | Per request |
Full text | 10 PMC articles | Per request |
Citation analysis | 20 PMIDs | Per request |
RIS export | 50 PMIDs | Per batch |
Similar articles | 50 articles | Per PMID (default: 10) |
Batch processing | 50 PMIDs | Per batch, 5 concurrent ops |
API delays | 200-600ms | Between requests |
π‘οΈ Rate Limiting & Best Practices
NCBI Guidelines Compliance
Always provide a valid email address in
NCBI_EMAILRespect API rate limits (3 requests/second without API key)
Use delays between requests (automatically handled)
Error Handling
Network connectivity issues
Invalid PMIDs or queries
API timeouts
Missing full text content
Performance Optimization
Use batch processing for multiple articles
Cache results when possible
Use query optimization for better search results
ποΈ Project Structure
π§ Development
Build
Run Locally (stdio)
Run as Remote Server (SSE)
Clean Build
π Deployment
Render.com
The repository includes a render.yaml file for automatic deployment:
Push your code to GitHub
Connect repository to Render
Render automatically deploys using
render.yamlUpdate environment variables in Render dashboard
Other Platforms
For deployment to other platforms (Heroku, AWS, DigitalOcean, etc.):
Set
MCP_TRANSPORT=sseenvironment variableSet
PORTto platform-required valueRun
npm run build && npm run start:remote
π MeSH Term Optimization
The server includes extensive medical term mappings:
COVID-19 & Vaccines: covid, coronavirus, vaccination
Cardiovascular: heart attack, myocardial infarction
Cancer: tumor, oncology, carcinoma
Mental Health: depression, anxiety
Study Types: clinical trial, meta-analysis, RCT
Treatment Types: therapy, surgery, medication
π€ Contributing
Fork the repository
Create a feature branch
Make your changes
Test thoroughly (both local and remote modes)
Submit a pull request
π Version History
v1.0.2 (Current)
β¨ Added remote/SSE transport support
π Render.com deployment configuration
π§ Environment variable configuration
π Health check endpoint
β‘ Dual mode support (stdio/SSE)
v1.0.1
π Similar articles feature
π Citation analysis improvements
v1.0.0
π Initial release
π Core PubMed functionality
π License
MIT License - see LICENSE file for details
πββοΈ Support
For issues or questions:
Check existing GitHub issues
Create a new issue with detailed description
Include error messages and reproduction steps
π Related Resources
π― Quick Start Checklist
Clone repository
Install dependencies (
npm install)Build project (
npm run build)Set
NCBI_EMAILenvironment variableChoose deployment mode (local or remote)
Configure Claude Desktop
Test with a simple search query
β‘ Performance Tips
Use query optimization for better search results
Batch process when analyzing multiple articles
Cache results to avoid redundant API calls
Monitor rate limits to prevent API throttling
Use specific PMIDs when possible for faster retrieval
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
Enables comprehensive biomedical literature research through PubMed database access with advanced search, full-text retrieval, citation analysis, and batch processing capabilities. Supports both local deployment and cloud hosting for seamless integration with AI assistants.
- π Features
- π Prerequisites
- π― Installation & Usage
- βοΈ Configuration
- π Example Usage
- π API Limits
- π‘οΈ Rate Limiting & Best Practices
- ποΈ Project Structure
- π§ Development
- π Deployment
- π MeSH Term Optimization
- π€ Contributing
- π Version History
- π License
- πββοΈ Support
- π Related Resources
- π― Quick Start Checklist
- β‘ Performance Tips