Skip to main content
Glama
Medical Research MCP Suite

Medical Research MCP Suite

by ezhou89

๐Ÿฅ Medical Research MCP Suite

AI-Enhanced Medical Research API unifying ClinicalTrials.gov, PubMed, and FDA databases with intelligent cross-database analysis.

License: MIT Node.js Version TypeScript MCP Compatible

๐ŸŒŸ Features

Multi-API Integration

  • ๐Ÿ”ฌ ClinicalTrials.gov - 400,000+ clinical studies with real-time data

  • ๐Ÿ“š PubMed - 35M+ research papers and literature analysis

  • ๐Ÿ’Š FDA Database - 80,000+ drug products and safety data

๐Ÿ”ฅ AI-Enhanced Capabilities

  • Cross-Database Analysis - Unique insights from combined data sources

  • Risk Assessment - Algorithmic safety scoring and recommendations

  • Competitive Intelligence - Market landscape and pipeline analysis

  • Strategic Insights - Investment and research guidance

๐Ÿข Enterprise Architecture

  • Intelligent Caching - 1-hour clinical trials, 6-hour literature caching

  • Rate Limiting - Respectful API usage and quota management

  • Comprehensive Logging - Full audit trails with Winston

  • Type Safety - Full TypeScript implementation

  • Testing Suite - Jest with comprehensive coverage

Related MCP server: KnowS MCP Server

๐Ÿš€ Quick Start

Prerequisites

  • Node.js 18+

  • npm or yarn

Installation

git clone https://github.com/eugenezhou/medical-research-mcp-suite.git
cd medical-research-mcp-suite
npm install
cp .env.example .env
npm run build

Usage Options

1. MCP Server (Claude Desktop Integration)

npm run dev

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "medical-research": {
      "command": "node",
      "args": ["/path/to/medical-research-mcp-suite/dist/index.js"]
    }
  }
}

2. Web API Server

npm run web
# Visit http://localhost:3000

3. Test the System

npm test
./test-mcp.sh

๐Ÿ“Š API Examples

Comprehensive Drug Analysis (๐Ÿ”ฅ The Magic!)

// Cross-database analysis combining trials + literature + FDA data
const analysis = await comprehensiveAnalysis({
  drugName: "pembrolizumab",
  condition: "lung cancer", 
  analysisDepth: "comprehensive"
});

// Returns:
// - Risk assessment scoring
// - Market opportunity analysis  
// - Competitive landscape
// - Strategic recommendations
const trials = await searchTrials({
  condition: "diabetes",
  intervention: "metformin",
  pageSize: 20
});
// Returns real-time data from 400k+ studies

FDA Drug Safety Analysis

const safety = await drugSafetyProfile({
  drugName: "metformin",
  includeTrials: true,
  includeFDA: true
});
// Returns comprehensive safety analysis

๐Ÿ›  Available Tools

Single API Tools

  • ct_search_trials - Enhanced clinical trial search

  • ct_get_study - Detailed study information by NCT ID

  • pm_search_papers - PubMed literature discovery

  • fda_search_drugs - FDA drug database search

  • fda_adverse_events - Adverse event analysis

Cross-API Intelligence Tools (๐Ÿ”ฅ Unique Value)

  • research_comprehensive_analysis - Multi-database strategic analysis

  • research_drug_safety_profile - Safety analysis across all sources

  • research_competitive_landscape - Market intelligence and pipeline analysis

๐Ÿข Enterprise Value Proposition

What would take medical researchers HOURS โ†’ completed in SECONDS:

Traditional Approach

With MCP Suite

โฐ 4+ hours manual research

โšก 30 seconds automated

๐Ÿ“Š Single database queries

๐Ÿ”„ Cross-database correlation

๐Ÿ“ Manual data compilation

๐Ÿค– AI-enhanced insights

๐Ÿ’ญ Subjective risk assessment

๐Ÿ“ˆ Algorithmic scoring

๐Ÿ” Limited competitive view

๐ŸŒ Complete market landscape

ROI Calculation: Save 20+ research hours per analysis = $2,000+ in consultant time

๐Ÿ”ง Configuration

Environment Setup


# Performance tuning
CACHE_TTL=3600000
MAX_CONCURRENT_REQUESTS=10

Claude Desktop Integration

{
  "mcpServers": {
    "medical-research": {
      "command": "node",
      "args": ["/Users/eugenezhou/Code/medical-research-mcp-suite/dist/index.js"],
      "env": {
        "PUBMED_API_KEY": "your_key_here",
        "FDA_API_KEY": "your_key_here"
      }
    }
  }
}

๐Ÿ“ˆ Performance & Reliability

  • โšก Sub-second responses with intelligent caching

  • ๐Ÿ”„ 99.9% uptime with robust error handling

  • ๐Ÿ“Š Scalable architecture for enterprise deployment

  • ๐Ÿ›ก๏ธ Rate limiting prevents API quota exhaustion

  • ๐Ÿ” Comprehensive logging for debugging and monitoring

๐Ÿงช Testing

# Run full test suite
npm test

# Test individual components
npm run test:clinical-trials
npm run test:pubmed  
npm run test:fda

# Integration testing
npm run test:integration

# Quick MCP test
./test-mcp.sh

๐Ÿš€ Deployment

npm install -g @railway/cli
railway login
railway init
railway up

Docker

docker build -t medical-research-api .
docker run -p 3000:3000 medical-research-api

Manual Deployment

Works on any Node.js hosting platform:

  • Render

  • DigitalOcean App Platform

  • AWS ECS/Fargate

  • Google Cloud Run

๐Ÿ“š Documentation

๐Ÿค Contributing

  1. Fork the repository

  2. Create your feature branch (git checkout -b feature/amazing-feature)

  3. Commit your changes (git commit -m 'Add amazing feature')

  4. Push to the branch (git push origin feature/amazing-feature)

  5. Open a Pull Request

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

๐Ÿ›ฃ๏ธ Roadmap

Near Term (1-3 months)

  • WHO International Clinical Trials Registry integration

  • European Medicines Agency (EMA) database support

  • Advanced NLP for literature analysis

  • Real-time safety signal detection

Medium Term (3-6 months)

  • Machine learning models for trial success prediction

  • Integration with electronic health records

  • Patient recruitment optimization tools

  • Regulatory timeline prediction

Long Term (6+ months)

  • Global regulatory database integration

  • AI-powered drug discovery insights

  • Personalized medicine recommendations

  • Integration with pharmaceutical R&D workflows

Available Tools

13 tools
ct_get_studyC

Get detailed study information by NCT ID with AI analysis

Inputs: nctId (required).

ct_search_trialsC

Search ClinicalTrials.gov for studies with AI-enhanced results

Inputs: condition, intervention, phase, status, +1 more.

fda_adverse_eventsC

Get adverse event reports for a drug with analysis

Inputs: drugName (required), dateRange.

fda_search_drugsC

Search FDA drug database with safety analysis

Inputs: drugName, activeIngredient, approvalStatus.

pm_search_papersC

Search PubMed for research papers with enhanced analysis

Inputs: query (required), maxResults, publicationTypes, dateRange.

research_clinical_detailsC

Detailed clinical trials analysis for specific drug/condition

Inputs: drugName (required), condition (required), focusPhase, includeCompleted, +1 more.

research_competitive_landscapeC

Analyze competitive landscape across all databases

Inputs: targetCondition (required), competitorDrugs, includeGlobal.

research_comprehensive_analysisC

Comprehensive analysis combining clinical trials, literature, and safety data

Inputs: drugName (required), condition (required), analysisDepth, reportFormat, +2 more.

research_drug_safety_profileC

Complete drug safety analysis across clinical trials and FDA reports

Inputs: drugName (required), includeTrials, includeFDA, timeframe.

research_executive_summaryC

Generate executive summary for drug/condition analysis (context-friendly)

Inputs: drugName (required), condition (required), maxTokens.

research_literature_detailsC

Detailed literature analysis for specific drug/condition

Inputs: drugName (required), condition (required), timeframe, publicationTypes, +1 more.

research_market_detailsC

Detailed market and competitive analysis for specific drug/condition

Inputs: drugName (required), condition (required), includeCompetitors, marketScope, +1 more.

research_safety_detailsC

Detailed safety and FDA analysis for specific drug

Inputs: drugName (required), includeAdverseEvents, includeApprovals, maxTokens.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelogโ€ฆ

    TDQS

    B3.2/5.0

    Scored across 13 tools

    Disambiguation3/5

    Tools have overlapping purposes, especially among the 'research_' prefixed ones (e.g., research_clinical_details, research_safety_details, research_drug_safety_profile, research_comprehensive_analysis), which could cause confusion about which to use for specific analyses. However, descriptions provide some differentiation, such as focusing on clinical trials, safety, or combined data.

    Naming Consistency4/5

    Most tools follow a consistent pattern with prefixes like 'ct_', 'fda_', 'pm_', and 'research_' followed by descriptive names, though there are minor deviations (e.g., 'ct_get_study' vs. 'ct_search_trials' uses different verbs, and 'research_executive_summary' is more abstract). Overall, naming is readable and mostly predictable.

    Tool Count5/5

    With 13 tools, the count is well-scoped for a medical research suite, covering multiple databases (ClinicalTrials.gov, FDA, PubMed) and various analysis types (search, details, safety, summaries). Each tool appears to serve a distinct purpose within the domain, justifying its inclusion.

    Completeness5/5

    The tool set provides comprehensive coverage for medical research, including search and detailed analysis across clinical trials, literature, safety data, and market insights. It supports full workflows from data retrieval (e.g., ct_search_trials) to integrated analyses (e.g., research_comprehensive_analysis), with no obvious gaps for the stated purpose.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers