# Oncofiles

Pulls medical documents out of Google Drive, Gmail and Calendar and hands them to an AI assistant. Useful when a treatment history is spread across inboxes and folders.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 5
- Author: peter-fusek
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/peter-fusek/oncofiles
- Updated: 2026-08-07
- HTML: https://affpapa.org/en/nevibecode/mcp/oncofiles

## What it does

Oncofiles is an MCP server written in Python 3.12+ on FastMCP. It reads lab results, CT scans, pathology reports and prescriptions from your Google Drive, and picks up medical emails and appointments from Gmail and Calendar. The 14 modules hold 76 tools: document CRUD with versioning, lab value tracking, pre-cycle safety checks for chemo protocols, PubMed and ClinicalTrials.gov search, a treatment timeline.

Your files stay in your own Google Drive. One instance can serve several patients — each gets isolated documents, its own `onco_*` bearer token and its own Google authorization. Drive sync runs both ways and OCR companion files appear alongside documents automatically.

\`DATABASE_PATH` is required; the server will not start without it. Google Drive, Gmail and Calendar each need an OAuth client, and remote access means setting `MCP_TRANSPORT=streamable-http` plus a bearer token. A `Dockerfile` ships in the repo for Railway deployment.

## Requirements
- Needs: Python and uv (commands run via uvx)
- Remote server: `https://oncofiles.com/mcp`

## Install

### Claude Code (native platform)

**Platform CLI: remote server**
```bash
claude mcp add --transport http oncofiles https://oncofiles.com/mcp
```

### Codex

**Platform CLI: remote server**
```bash
codex mcp add oncofiles --url https://oncofiles.com/mcp
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "oncofiles": {
            "url": "https://oncofiles.com/mcp"
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "oncofiles": {
            "type": "http",
            "url": "https://oncofiles.com/mcp"
        }
    }
}
```

### Gemini CLI

**Platform CLI: remote server**
```bash
gemini mcp add -t http oncofiles https://oncofiles.com/mcp
```

## When to use it
- find one lab result buried in hundreds of emails and PDFs
- chart how blood values moved across a treatment course
- run a safety check before the next chemo cycle
- turn a treatment history into questions for the oncologist
- sort medical emails and appointments into categories

## Example prompts
- Show every blood test from the last three months and compare them to the previous cycle
- Find emails from my oncologist in Gmail and add them to the patient documents
- What should I ask my doctor at next week's appointment?

## Similar
- [recipe-email-drive-link](https://affpapa.org/en/nevibecode/skills/recipe-email-drive-link.md) — skill · 31500 installs
- [recipe-save-email-attachments](https://affpapa.org/en/nevibecode/skills/recipe-save-email-attachments.md) — skill · 31100 installs
- [gmail-workflows](https://affpapa.org/en/nevibecode/skills/gmail-workflows.md) — skill · 5000 installs
- [gog-cli](https://affpapa.org/en/nevibecode/skills/gog-cli.md) — skill · 807 installs
- [Google Workspace](https://affpapa.org/en/nevibecode/mcp/google-workspace.md) — MCP server · ★ 192
- [google-multi-account](https://affpapa.org/en/nevibecode/plugins/google-multi-account.md) — plugin · ★ 5

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
