MedMemory
This MCP is capable of analyzing medical documents and prescriptions and giving patient all the medical info it needs and answering their questions
README
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
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-setup
Then 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 |
|---|---|---|
ingest_health_document |
Parse any medical PDF or image into the DB | "Ingest this prescription: /path/to/rx.pdf" |
get_current_medications |
Return active medication list | "What medications am I on?" |
get_lab_trend |
Historical readings for any lab marker | "Show me my HbA1c trend" |
get_visit_history |
Doctor visits with specialty filter | "What did my cardiologist say?" |
get_vaccination_status |
Cross-reference WHO schedule, flag gaps | "Am I up to date on vaccines?" |
check_drug_interaction |
OpenFDA lookup against your med list | "Is Ibuprofen safe with my medications?" |
get_allergies |
Return recorded allergies | "What allergies do I have on record?" |
generate_health_summary |
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 dev
Project Structure
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。