streamable-httpupdated 5mo ago
Your medical records are scattered across Gmail, Google Drive, and Calendar. Oncofiles reads everything, organizes it, and makes it available through AI โ so you can ask about your health naturally in Claude or ChatGPT.
What can you do with Oncofiles?
oncofiles
Your medical records are scattered across Gmail, Google Drive, and Calendar. Oncofiles reads everything, organizes it, and makes it available through AI โ so you can ask about your health naturally in Claude or ChatGPT.
oncofiles.com | Demo Dashboard | Privacy Policy
What is this?
Oncofiles is an MCP server built for cancer patients and their caregivers. It connects to your Google Drive, Gmail, and Calendar, reads all your medical documents (lab results, CT scans, pathology reports, prescriptions), and makes them accessible through any AI chat โ Claude, ChatGPT, or any MCP client.
Built from real need: Created by a caregiver managing his wife's cancer treatment. Hundreds of documents, dozens of doctors, constantly changing lab results. Oncofiles organizes the chaos so you can focus on treatment, not on finding papers.
Sister project: Oncoteam โ an AI agent that analyzes your Oncofiles data: tracks lab trends, searches clinical trials, and prepares questions for your oncologist.
Your data, your control: Everything stays in your Google Drive. No third-party data processing. Disconnect anytime โ your files are always yours.
Multi-Patient Support (v4.0+)
Oncofiles supports multiple patients on a single instance. Each patient gets:
- Full data isolation โ documents, labs, treatment events, emails, and calendar entries are scoped to the patient
- Separate bearer tokens โ each patient (or caregiver) gets their own
onco_*token - Per-patient OAuth โ Google Drive, Gmail, and Calendar are authorized per patient
- Dashboard patient selector โ switch between patients in the web dashboard
Onboarding a new patient
- Dashboard wizard: Open the dashboard, click "+ New Patient", and follow the 4-step wizard
- API:
POST /api/patientswith{patient_id, display_name}โ returns a bearer token - Connect GDrive: Visit
/oauth/authorize/drive?patient_id=Xto authorize document sync - Trigger first sync:
POST /api/sync-triggerwith{patient_id}to import documents
Features
- 76 MCP tools across 14 modules for comprehensive medical data management
- 14 document categories โ labs, pathology, imaging, genetics, surgery, consultation, prescriptions, and more
- Lab value tracking โ store values, track trends, pre-cycle safety checks for chemo protocols
- Google Drive sync โ bidirectional sync with automatic OCR companion files
- Gmail & Calendar scanning โ medical emails and appointments are auto-detected and classified
- Clinical research โ search PubMed and ClinicalTrials.gov, log research decisions
- Treatment timeline โ track chemo cycles, surgeries, and other treatment events
- Document versioning โ track document revisions with full history
- AI-powered metadata โ automatic summaries, tags, and structured data extraction
- Audit logging โ every tool call is logged for accountability
Architecture
โโโโโโโโโโโโโโโโโโโ MCP Protocol โโโโโโโโโโโโโโโโ
โ Claude / GPT โโโโโโโโโโโโโโโโโโโโโโโบ โ Oncofiles โ
โ (AI Assistant) โ streamable-http โ MCP Server โ
โโโโโโโโโโโโโโโโโโโ โโโโโโโโฌโโโโโโโโ
โ
โโโโโโโโโโโโโโโผโโโโโโโโโโโโโโ
โ โ โ
โโโโโโโผโโโโโโ โโโโโโผโโโโโ โโโโโโโผโโโโโโ
โ SQLite / โ โ Google โ โ Anthropic โ
โ Turso โ โ Drive โ โ Files API โ
โโโโโโโโโโโโโ โโโโโโโโโโโ โโโโโโโโโโโโโ
Stack: Python 3.12+ ยท FastMCP 3.1 ยท Pydantic ยท SQLite/Turso ยท Railway
Quick start
# Clone and install
git clone https://github.com/peter-fusek/oncofiles.git
cd oncofiles
uv sync --extra dev
# Run locally (stdio mode for Claude Desktop)
uv run oncofiles-mcp
# Run tests
uv run pytest
# Lint
uv run ruff check
Environment variables
# Required
DATABASE_PATH=data/oncofiles.db
# Optional โ cloud database
TURSO_DATABASE_URL=libsql://...
TURSO_AUTH_TOKEN=...
# Optional โ Google Drive sync
GOOGLE_DRIVE_FOLDER_ID=...
GOOGLE_OAUTH_CLIENT_ID=...
GOOGLE_OAUTH_CLIENT_SECRET=...
# Optional โ remote access
MCP_TRANSPORT=streamable-http # default: stdio
MCP_HOST=0.0.0.0
MCP_PORT=8080
MCP_BEARER_TOKEN=...
Connect to Claude Desktop
Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"oncofiles": {
"command": "uv",
"args": ["run", "oncofiles-mcp"],
"cwd": "/path/to/oncofiles"
}
}
}
Connect to ChatGPT
Oncofiles works with ChatGPT's MCP integration (Developer Mode). Point ChatGPT to your instance's /mcp endpoint with a bearer token.
Deploy to Railway
The included Dockerfile is ready for Railway deployment:
- Push to GitHub
- Connect repo in Railway
- Set environment variables
- Railway auto-deploys on push
Live instance: oncofiles.com
Project structure
src/oncofiles/
โโโ server.py # FastMCP server, auth, routes, scheduler
โโโ database/ # Mixin-based DB layer (SQLite/Turso)
โโโ tools/ # 14 tool modules (76 tools)
โ โโโ documents.py # CRUD, search, view, versioning
โ โโโ lab_trends.py # Lab values, trends, safety checks
โ โโโ clinical.py # Treatment events, research log
โ โโโ research.py # PubMed, ClinicalTrials.gov search
โ โโโ ...
โโโ sync.py # Bidirectional Google Drive sync
โโโ gmail_sync.py # Medical email detection and import
โโโ calendar_sync.py # Calendar event classification
โโโ enhance.py # AI metadata extraction (Haiku)
โโโ patient_middleware.py # Per-patient token โ context resolution
โโโ patient_context.py # Patient clinical profile
โโโ models.py # Pydantic models
MCP Registry
Listed on the MCP Registry as io.github.peter-fusek/oncofiles.
Contributing
See CONTRIBUTING.md for guidelines.
License
Who's Behind This
The People
Peter Fusek โ CEO & Founder
Serial entrepreneur and AI strategist. 4 years at Tatra banka. Co-founded marketlocator (exit to Deutsche Telekom). Advisor to VรB Bank CEO. 18+ years building technology products.
Built Oncofiles from personal need โ managing his wife's cancer treatment across hundreds of documents, dozens of doctors, and constantly changing lab results.
LinkedIn ยท peter.fusek@instarea.com
Peter ฤapkoviฤ โ CTO & Co-founder
Senior IT architect with 20+ years in enterprise banking (VรB). Expert in .NET, Python, SQL, and systems architecture. Led architecture across all Instarea products.
Architecture, development, operations โ everything under one roof.
The Company
Instarea โ 18 years, 23 products shipped. From telecom analytics and enterprise clients (Callinspector) to mobile-first fintech (InventButton), big data exits (marketlocator โ Deutsche Telekom), IoT platforms, and AI-first products (PulseShape, ReplicaCity, HomeGrif).
Oncofiles and Oncoteam are Instarea's latest โ built with the same engineering discipline that delivered enterprise-grade products for banking, telecom, and data industries.
10+ verified, synchronized team members available across front-end, back-end, integration, data science, UX/UI, marketing, and cloud ops.
"We take it personally, with our own faces, like family and at work."
Install
Add Oncofiles to your client. Pick the one you use.
claude mcp add --transport http oncofiles https://oncofiles.com/mcpcodex mcp add oncofiles --url https://oncofiles.com/mcp{
"mcpServers": {
"oncofiles": {
"url": "https://oncofiles.com/mcp"
}
}
}Add to `~/.cursor/mcp.json`, or `.cursor/mcp.json` for a single project.
{
"servers": {
"oncofiles": {
"type": "http",
"url": "https://oncofiles.com/mcp"
}
}
}Add to `.vscode/mcp.json` in your workspace.
{
"mcpServers": {
"oncofiles": {
"url": "https://oncofiles.com/mcp"
}
}
}Add to `claude_desktop_config.json`, then restart Claude Desktop.
{
"mcpServers": {
"oncofiles": {
"serverUrl": "https://oncofiles.com/mcp"
}
}
}Add to `~/.codeium/windsurf/mcp_config.json`.
Score
39 / 100
Incomplete
- Documentation25/25
- Maintenance13/25
- Trust6/20
- Capability0/15
- Install experience12/15
- Documents what it does and how to connect
- Has a resolvable package or endpoint
- Exposes at least one tool, prompt or resource
- README has substantive content
- Includes a code example
- Documents its configuration
- Mentions credentials or security posture
- Last commit 156 days ago
- Has a release history
- Repository is not archived
- No licence detected
- Namespace verified in the official MCP registry
- Claimed by its owner
- Published under an organisation
- 0 tool(s) documented
- Provides prompt templates
- Provides resources
- 6 documented install method(s)
- Published to a package registry
- Offers a hosted endpoint โ no local install
Version history
| Versions | Published |
|---|---|
| 4.9.0Latest | Mar 29, 2026 |
| 4.4.0 | Mar 24, 2026 |