medikeep-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
medikeep-mcp
A Model Context Protocol server for MediKeep, the self-hosted personal medical records manager. It lets Claude (or any MCP client) read and manage everything in your MediKeep instance, and ships with skills that teach the model how to use that information well: health summaries, lab trends, medication review, record entry, symptom/vitals tracking, family history and sharing, reports, and admin.
Every MediKeep API operation (584 in MediKeep 0.75) is available, generated from MediKeep's OpenAPI schema.
Two tool modes: a compact set of 8 tools (default, light on context), or one tool per operation.
Automatic login with username/password, TOTP two-factor support, and re-login when sessions expire.
File uploads and downloads (lab PDFs, attachments, imaging, exports, PDF reports).
Guardrails: read-only mode,
confirm: truerequired for deletes, tag allow/deny lists.Skills in Claude Code skill format, also served as MCP prompts and resources for other clients.
Install
Requires uv (or pip) and Python 3.11+.
Claude Code plugin (server + skills)
claude plugin marketplace add chrispyduck/medikeep-mcpclaude plugin install medikeep@medikeep-mcpThe plugin reads MEDIKEEP_URL, MEDIKEEP_USERNAME, MEDIKEEP_PASSWORD (and the
other settings below) from your environment.
Any MCP client (Claude Desktop, Cursor, ...)
{
"mcpServers": {
"medikeep": {
"command": "uvx",
"args": ["--from", "git+https://github.com/chrispyduck/medikeep-mcp", "medikeep-mcp"],
"env": {
"MEDIKEEP_URL": "https://medikeep.example.com",
"MEDIKEEP_USERNAME": "me",
"MEDIKEEP_PASSWORD": "..."
}
}
}
}Or with Claude Code directly:
claude mcp add medikeep -e MEDIKEEP_URL=http://localhost:8005 -e MEDIKEEP_USERNAME=me -e MEDIKEEP_PASSWORD=secret -- uvx --from git+https://github.com/chrispyduck/medikeep-mcp medikeep-mcpTo use the skills in Claude Code without the plugin, copy skills/* into
~/.claude/skills/. Other clients get the same content as MCP prompts
(medikeep-health-summary, ...), as resources (medikeep://skills/<name>), and via
the medikeep_guide tool.
medikeep-mcp --http --port 8765 serves streamable HTTP instead of stdio.
Related MCP server: healthCare
Configuration
Variable | Default | Purpose |
|
| MediKeep base URL |
| Account to act as | |
| Base32 TOTP secret if the account uses two-factor auth | |
| Pre-issued JWT instead of a password (expires with the session) | |
|
|
|
| Comma-separated API categories to allow / hide, e.g. | |
|
|
|
|
| Refuse all non-GET calls |
|
| DELETE calls need |
|
| Where downloaded files and exports are saved |
|
| Set |
|
| HTTP timeout (seconds) |
|
| Truncate very large responses |
Create a dedicated MediKeep user for the MCP if you want to limit what it can see, and share only the patients it should access with that user.
With two-factor auth on, MediKeep rejects a code that was already used, so a login that lands in the same 30-second window as a previous one waits for the next code.
Tools
Compact mode (default)
Tool | What it does |
| Signed-in user, active patient, accessible patients, server version |
| Snapshot of a patient across up to 18 sections in one call |
| Full-text search across records |
| Time series for one lab component |
| Browse/search all API operations by category or keyword |
| Parameters, body schema and response of an operation |
| Execute any operation (JSON bodies, multipart uploads, raw uploads, downloads) |
| Read the bundled skills/playbooks |
Example: medikeep_call {"operation": "create_medication", "body": {"medication_name": "Atorvastatin", "dosage": "20 mg", "frequency": "daily", "status": "active", "patient_id": 2}}.
Operations can also be referenced as "GET /api/v1/medications/12". A patient_id
path parameter defaults to the active patient.
Full mode
MEDIKEEP_TOOL_MODE=full additionally registers every operation as its own tool
(read_medications, create_lab_test_components_bulk, get_lab_test_component_trends, ...)
with a typed input schema and read-only/destructive annotations. That is ~590 tools
(~450 KB of schemas), so pair it with MEDIKEEP_INCLUDE_TAGS / MEDIKEEP_EXCLUDE_TAGS
unless your client handles large tool sets well.
Skills
Skill | Use it for |
| Data model, patient context, finding/calling operations, safety rules |
| Health summaries, visit prep, provider handoffs |
| Lab panels, components, trends, abnormal values, entering labs |
| Medication lists, reconciliation, allergy checks, changes, reminders |
| Adding records from notes/documents, linking, attachments, imports |
| Symptom episodes, vitals trends, injuries |
| Family history, multiple patients, sharing and invitations |
| PDF reports, exports, file downloads |
| Backups, users, trash, audit log, integrations, notifications, 2FA |
Development
uv sync --extra devuv run pytestThe tests check that every operation is cataloged, tool names are valid, and every operation name mentioned in the skills exists.
The bundled schema (src/medikeep_mcp/data/openapi.json) is MediKeep 0.75.0. To
refresh it after a MediKeep upgrade, start MediKeep with ENABLE_API_DOCS=true and run:
uv run python scripts/update_openapi.py --url http://localhost:8005Health data is sensitive: this server talks only to the MediKeep URL you configure, and the skills instruct the model not to invent values, to ask before changing records, and not to present analysis as medical advice.
License
Apache-2.0, matching MediKeep. Not affiliated with the MediKeep project.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Hosted MCP server for the Healthie EHR & telehealth API: patients, appointments, charting, tasks.
Hosted MCP server for Cliniko — patients, appointments, availability, and invoices for AI agents.
Household health records with source attribution. Read and add records with OAuth approval.
Hosted MCP server exposing US hospital procedure cost data to AI assistants
Related MCP Servers
AlicenseNot gradedqualityDmaintenanceEnterprise-grade MCP Server for FHIR-based EMRs. Enables AI agents to read, search, create, and update any FHIR R4 resource across major EHR systems like EPIC, Cerner, and OpenEMR.404 npm75MIT- AlicenseNot gradedqualityCmaintenanceEnables local-first personal health management with encrypted storage and scoped MCP tools for tracking vitals, medications, activities, emotions, sleep, encounters, and more.Apache 2.0
- AlicenseNot gradedqualityCmaintenanceEnables LLMs and MCP clients to interact with patient records, encounters, and practice information through tools for clinical, scheduling, messaging, and administrative workflows.MIT
- FlicenseNot gradedqualityAmaintenanceEnables LLM-based agents and MCP-compatible clients to query and manipulate clinical data on a FHIR-compliant backend through CRUD resource tools, document ingestion, semantic search, and terminology lookup.-