MedMemory
MedMemory is a privacy-first personal health record MCP server that lets you securely store, manage, and query medical data locally using AES-256 encryption and natural language through Claude.
Ingest Medical Documents (
ingest_health_documents): Upload PDFs, images, or handwritten prescriptions; AI (including Gemini Vision) automatically extracts medications, lab results, diagnoses, and allergies into your encrypted local SQLite database.View Current Medications (
get_current_medications): Retrieve all active medications and prescriptions, with completed courses filtered out automatically.Track Lab Trends (
get_lab_trend): View historical readings for any lab marker (e.g., HbA1c, cholesterol) over time to analyze progress.Check Drug Interactions (
check_drug_interaction): Verify whether a new drug is safe alongside your current medications using real-time OpenFDA API data.View Vaccination Status (
get_vaccination_status): See your vaccination history cross-referenced against WHO schedules to flag overdue or missing vaccines.Browse Visit History (
get_visit_history): Review past doctor visits, optionally filtered by medical specialty (e.g., cardiology, dermatology).View Allergies (
get_allergies): Retrieve all recorded allergies and substances to avoid before starting new treatments.Generate Health Summary (
generate_health_summary): Produce a comprehensive, printable one-page health report — ideal for sharing with a new doctor or specialist.
All data is stored locally with no cloud storage, ensuring full privacy.
MedMemory MCP
Privacy-first personal health record MCP server — store medical documents locally with AES-256 encryption and query with Claude.
MedMemory lets you ingest prescriptions, lab reports, and discharge summaries into an encrypted local database, then ask Claude questions about your health history in natural language. Your data never leaves your machine.
Demo
Related MCP server: Intelligent Medical Assistant
Features
8 MCP tools — medications, lab trends, drug interactions, vaccination status, visit history, allergies, health summary, document ingestion
Privacy-first — AES-256 encrypted SQLite database, nothing sent to cloud storage
Gemini Vision — reads handwritten prescriptions and scanned PDFs natively
Drug interaction checker — real-time OpenFDA API lookup against your current medication list
WHO vaccination schedule — cross-references your records and flags overdue vaccines
Companion web UI — 6-page Next.js dashboard at medmemory-ui.vercel.app
Works with Claude Desktop and Cursor
Quick Start
pip install medmemory-mcp
medmemory-setupThen add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"medmemory": {
"command": "medmemory-server"
}
}
}Restart Claude Desktop. MedMemory is ready.
Try the Hosted Demo
No installation needed — connect to the Railway demo server with synthetic patient data:
{
"mcpServers": {
"medmemory-demo": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://web-production-ba446.up.railway.app/sse"]
}
}
}Tools
Tool | Description | Example prompt |
| Parse any medical PDF or image into the DB | "Ingest this prescription: /path/to/rx.pdf" |
| Return active medication list | "What medications am I on?" |
| Historical readings for any lab marker | "Show me my HbA1c trend" |
| Doctor visits with specialty filter | "What did my cardiologist say?" |
| Cross-reference WHO schedule, flag gaps | "Am I up to date on vaccines?" |
| OpenFDA lookup against your med list | "Is Ibuprofen safe with my medications?" |
| Return recorded allergies | "What allergies do I have on record?" |
| Printable one-pager for new doctors | "Generate my health summary" |
Privacy Architecture
What | Where it goes |
Your health records | Local encrypted SQLite only |
Encryption key | Your machine only, never transmitted |
Document text during ingestion | Gemini API (transient, not stored) |
Drug name during interaction check | OpenFDA API only |
Tool call results | Anthropic (same as any Claude conversation) |
Verify the encryption yourself:
xxd ~/medmemory.db | head -3
# Should show random bytes — not "SQLite format 3"See PRIVACY.md for full details.
Web UI
Live at medmemory-ui.vercel.app
6 pages: Dashboard · Upload · Medications · Lab Results · Timeline · Health Summary
Development
# Clone and install
git clone https://github.com/priyanshugoel24/medmemory-mcp
cd medmemory-mcp
uv sync
# Set up environment
cp .env.example .env
# Add GEMINI_API_KEY, OPENFDA_API_KEY, MEDMEMORY_DB_KEY
# Seed test data
uv run seed_data.py
# Run MCP server in dev mode
uv run mcp dev medmemory/server.py
# Run FastAPI bridge
uv run uvicorn medmemory.api:app --reload --port 8000
# Run Next.js UI
cd ui && npm run devProject Structure
Available Tools
8 toolscheck_drug_interactionA
Check if a newly prescribed drug interacts with current medications.
Use this when the user:
has been prescribed a new medication and wants to check safety
asks 'is X safe to take with my current medications'
wants to know about drug interactions before starting a new drug
Args: new_drug: Name of the newly prescribed drug to check (generic or brand name)
Inputs: new_drug (required).
generate_health_summaryA
Generate a complete health summary suitable for sharing with a new doctor.
Use this when the user asks for :
a health summary or medical summary
a document to bring to a new doctor or a specialist
an overview of their complete health records
a printable health report
a summary of everything in their health record
No inputs needed - pulls all data from the health record automatically.
Inputs: no named parameters.
get_allergiesA
Returns all recorded allergies for the patient.
Call this when the user asks about:
known allergies or drug allergies
whether they are allergic to anything
what medications or substances to avoid Always call this before performing a drug interaction check so allergy context is available.
Inputs: no named parameters. Returns: result
get_current_medicationsA
Returns all currently active medications for the patient.
Use this when the user asks what medications they are taking, what drugs they are currently on, or what their current prescriptions are. Filters out completed medication courses automatically.
Inputs: no named parameters. Returns: result
get_lab_trendB
Returns a list of all readings for that marker, oldest first.
Use this when the user asks about trends, progress, changes over time, historical readings or whether something is getting better or worse for a specific lab marker.
Inputs: marker_name (required). Returns: result
get_vaccination_statusA
Returns all recorded vaccinations and flags overdue or missing ones.
Use this when the user asks about:
their vaccination history or immunisation records
whether they are up to date on vaccines
what vaccines they are missing or overdue for
travel vaccine recommendations
Inputs: no named parameters.
get_visit_historyB
Use this tool when asked about:
Doctor visits, appointments, consultations
what a specific specialist said
medical history by speciality
preparing for a new doctor appointment
Inputs: speciality. Returns: result
ingest_health_documentsA
Ingest a health document (PDF or image) into the MedMemory database.
Use this when the user wants to add a prescription, lab report, or any medical document to their health record. Extracts medications, lab results, diagnoses, and allergies automatically using AI.
Args: file_path: Absolute path to the PDF or image file to ingest.
Inputs: file_path (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Each tool has a clearly distinct purpose: drug interaction checking, health summary generation, allergies, medications, lab trends, vaccinations, visit history, and document ingestion. No two tools overlap in functionality, making it easy for an agent to select the correct one.
All tool names follow a consistent verb_noun pattern in snake_case (e.g., get_allergies, generate_health_summary, ingest_health_documents). The verbs are appropriately descriptive and uniform, with no mixing of styles.
With 8 tools, the server is well-scoped for a personal health record assistant. Each tool provides a distinct value, and the count is neither too thin nor overwhelming for the domain.
The tool set covers core health record operations: retrieving medications, allergies, vaccinations, lab trends, and visit history, plus drug interaction checks and document ingestion. Missing are update or delete capabilities, but these are likely out of scope for a retrieval-focused assistant.
Maintenance
Related MCP Connectors
AI-powered medical document management for cancer patients. Google Drive, Gmail, Calendar via MCP.
An AI concierge that turns static forms into adaptive AI conversations. From any MCP client.
Query your own PDFs and documents from any MCP client. Every answer cites the page it came from.
Hosted MCP server exposing US hospital procedure cost data to AI assistants
Related MCP Servers
- AlicenseBqualityCmaintenanceAn MCP server that provides comprehensive medical information by querying multiple authoritative medical APIs including FDA, WHO, PubMed, Google Scholar, and RxNorm.1174 npm122MIT
- FlicenseNot gradedqualityDmaintenanceAn MCP server and web application that enables natural language medical queries and patient data analysis powered by Gemini AI. It allows users to track and analyze patient biometrics, including vitals, sleep patterns, and laboratory results, through a comprehensive set of automated medical tools.-
- AlicenseNot gradedqualityDmaintenanceAn MCP server that brings AI-powered search and conversation to your FHIR clinical documents.1MIT
- FlicenseNot gradedqualityDmaintenanceAn MCP server that analyzes patient symptoms using AI, suggests potential diagnoses, and retrieves relevant medical literature from PubMed.-