MedAdapt Content Server
local-only server
The server can only run on the client’s local machine because it depends on local resources.
Integrations
Supports configuration through environment variables, including NCBI API keys for improved PubMed access rates.
Fetches and processes medical educational resources from PubMed, enabling search, retrieval, and analysis of medical research articles.
Uses SQLite database to store and manage medical content, topic mappings, and user documents.
MedAdapt Content Server
A specialized Model Context Protocol (MCP) server for Claude Desktop that enhances AI-assisted medical learning by fetching and processing educational resources from PubMed, NCBI Bookshelf, and user-provided documents.
Overview
The MedAdapt Content Server integrates with Claude Desktop to provide tools for searching, retrieving, and analyzing medical education content. It serves as a bridge between Claude and medical knowledge sources, allowing for enhanced AI-assisted learning experiences.
Quick Start
Features
- Content Search: Search for medical educational content across multiple sources
- Resource Retrieval: Fetch complete articles, book chapters, and user documents
- Topic Overviews: Generate comprehensive overviews of medical topics
- Learning Resources: Suggest appropriate learning resources based on topic and student level
- Learning Plans: Create structured learning plans with objectives and resources
- Content Analysis: Extract key points, methodologies, and findings from medical resources
- User Content: Import and analyze user-provided documents
Installation
Standard Installation
- Clone the repository:
- Create a virtual environment (optional but recommended):
- Install dependencies:
- Configure (optional):
- Get an NCBI API key for improved rate limits: https://ncbiinsights.ncbi.nlm.nih.gov/2017/11/02/new-api-keys-for-the-e-utilities/
- Create a
.env
file based on.env.example
Usage
Running the Server
Integration with Claude Desktop
- Open Claude Desktop
- Go to Settings → Model Context Protocol → Add Server
- Configure with the following JSON in your
claude_desktop_config.json
file located in:- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json
- Windows:
%APPDATA%\Claude\claude_desktop_config.json
- macOS:
Replace /path/to/python
with your actual Python path (e.g., /opt/anaconda3/bin/python
or C:\Python311\python.exe
).
Replace /path/to/medadapt-content-server/
with the absolute path to your cloned repository.
Important: The
DB_PATH
environment variable ensures the database file is created and accessed with an absolute path, preventing common file access errors.
Populating Initial Topic Mappings
Testing
Run tests to verify everything is working:
Example Usage with Claude
Scenario 1: Learning About a Medical Topic
User prompt to Claude:
Scenario 2: Finding Specific Resources
User prompt to Claude:
Scenario 3: Creating a Learning Plan
User prompt to Claude:
Available Tools
The server provides the following tools to Claude:
search_medical_content
: Search for medical content with filtersget_resource_content
: Retrieve complete content for a specific resourceget_topic_overview
: Generate comprehensive overview of a medical topicsuggest_learning_resources
: Get personalized resource recommendationsimport_user_document
: Upload user-provided learning materialsgenerate_learning_plan
: Create structured learning plan with objectivesextract_article_key_points
: Extract key findings from medical articles
Troubleshooting
Common Issues and Solutions
- Database Connection Error
- Symptom:
sqlite3.OperationalError: unable to open database file
- Solution: Make sure the
DB_PATH
environment variable is set correctly in your Claude Desktop configuration, pointing to an absolute path where the application has write permissions.
- Symptom:
- File Path Error
- Symptom:
No such file or directory
errors - Solution: Ensure all paths in the Claude Desktop configuration are absolute paths without extra quotes or escape characters.
- Symptom:
- API Rate Limiting
- Symptom: Slow or failed responses from PubMed or NCBI Bookshelf
- Solution: Get an NCBI API key and add it to your
.env
file
- Claude Desktop Connection
- Symptom: Claude cannot connect to the MCP server
- Solution: Verify the server is running in a terminal window and properly configured in Claude Desktop
Project Structure
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgments
- NCBI for providing access to PubMed and Bookshelf APIs
- Anthropic for Claude and the MCP integration capability
This server cannot be installed
A specialized Model Context Protocol server that enhances AI-assisted medical learning by connecting Claude Desktop to PubMed, NCBI Bookshelf, and user documents for searching, retrieving, and analyzing medical education content.