This MCP server enhances AI-assisted medical learning by integrating with Claude Desktop to fetch and process educational resources from PubMed, NCBI Bookshelf, and user-provided documents, serving as a bridge between Claude and medical knowledge sources.
git clone https://github.com/ryoureddy/medadapt-content-server.git
cd medadapt-content-server
python -m venv .venv
source .venv/bin/activate # On Windows, use: .venv\Scripts\activate
pip install -r requirements.txt
.env
file based on .env.example
If you prefer a faster setup:
git clone https://github.com/ryoureddy/medadapt-content-server.git
cd medadapt-content-server
pip install -r requirements.txt
python content_server.py
python content_server.py
claude_desktop_config.json
file located in:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"medadapt": {
"command": "/path/to/python",
"args": [
"/path/to/medadapt-content-server/content_server.py"
],
"env": {
"DB_PATH": "/path/to/medadapt-content-server/medadapt_content.db"
}
}
}
}
Replace /path/to/python
with your actual Python path (e.g., /opt/anaconda3/bin/python
or C:\Python311\python.exe
) and /path/to/medadapt-content-server/
with the absolute path to your cloned repository.
python populate_topics.py
To verify everything is working:
python test_server.py
User prompt to Claude:
I'd like to learn about the cardiac cycle. Can you provide a big picture overview and help me understand the key concepts?
User prompt to Claude:
I need to find recent research articles about COVID-19 treatment options. Can you help me find relevant resources?
User prompt to Claude:
I'm a second-year medical student studying neurology. Can you create a learning plan for understanding stroke pathophysiology?
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 articlesDatabase Connection Error
sqlite3.OperationalError: unable to open database file
DB_PATH
environment variable is set correctly in your Claude Desktop configuration, pointing to an absolute path where the application has write permissions.File Path Error
No such file or directory
errorsAPI Rate Limiting
.env
fileClaude Desktop Connection
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"cursor-rules-mcp": {
"command": "npx",
"args": [
"-y",
"cursor-rules-mcp"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.