HomeCare Cohort MCP
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@HomeCare Cohort MCPIdentify high-risk patients and generate a care gap closure plan"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
HomeCare Cohort MCP (Step 1)
FastMCP server that powers the TopGun HomeCare demo Step 1 agents. It exposes tools to surface the high‑risk cohort and produce the Step 1b care gap closure plan from the synthetic OMOP-like dataset.
Prerequisites
macOS / Linux shell
Conda (recommended) or Python 3.11
Repo cloned at
/Users/mdnasir/Documents/proj/TopGun/code/homecare-cohort-mcp
Related MCP server: FHIR MCP Server
Environment Setup
conda create -n homecare-mcp python=3.11 -y
conda activate homecare-mcp
pip install -r requirements.txtBuild DuckDB Dataset
The synthetic CSVs live in ../synthetic_data. Rebuild the DuckDB file whenever the CSVs change:
cd /Users/mdnasir/Documents/proj/TopGun/code/homecare-cohort-mcp
python -c "from db import ensure_database; ensure_database(force_rebuild=True)"This creates/overwrites data/homecare.duckdb and materializes helper views (latest_sbp, latest_eye_exam, etc.).
Run the MCP Server Locally
cd /Users/mdnasir/Documents/proj/TopGun/code/homecare-cohort-mcp
uvicorn server:app --reload --port 8010The Streamable HTTP transport is available at http://127.0.0.1:8010/mcp.
Example Tool Calls
Using the MCP CLI (from the same conda env):
# Identify Step 1a cohort
mcp run server.py:mcp --call get_highrisk_cohort --data '{"limit": 6}'
# Build Step 1b care gap plan
mcp run server.py:mcp \
--call care_gap_closure_plan \
--data '{"patient_ids": ["PAT-00042", "PAT-00058"]}'Or use MCP Inspector (mcp dev server.py:mcp) to interactively inspect Markdown and structured JSON.
Smoke Test
python smoke_test.py
(Ensures both Step 1 tools execute and return non-empty results.)
Deployment Notes
Optional build step (if rebuilding DB on deploy):
python -c "from db import ensure_database; ensure_database()"Configure
MCP_ALLOWED_HOSTS/MCP_ALLOWED_ORIGINSand future API keys (CMS, HDI, Medical Research).
Repository Structure
homecare-cohort-mcp/
├── api/index.py # Vercel entrypoint
├── data/homecare.duckdb # Generated DuckDB file (ignored by default)
├── db.py # DuckDB loader + helper views
├── requirements.txt
├── server.py # FastMCP server with Step 1 tools
├── smoke_test.py # Regression script
└── vercel.jsonThis server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityCmaintenanceA clean-room SHARP-on-MCP compliant FHIR R4 MCP server that enables AI agents to interact with any FHIR R4 endpoint using SHARP context headers, without server-side OAuth. It provides clinical tools, lab results, imaging, and interactive MCP-UI dashboards.Last updatedMIT
- Flicense-qualityDmaintenanceA comprehensive MCP server that bridges AI applications with FHIR healthcare data systems, enabling patient data access, clinical data retrieval, and data quality assessment.Last updated4
- Alicense-qualityDmaintenanceAn MCP server that brings AI-powered search and conversation to your FHIR clinical documents.Last updated1MIT
- Alicense-qualityDmaintenanceClinical decision-support MCP server that lets AI agents reason over live FHIR patient data for medication review, appointment scheduling, and care gap identification.Last updated9,544MIT
Related MCP Connectors
Hosted MCP server exposing US hospital procedure cost data to AI assistants
Hosted MCP for denial, prior auth, reimbursement, workflow validation, batch scoring, and feedback.
Analyze biomarker panels with an MD-led clinical engine. Guideline-cited. Synthetic data only.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/nasir0md/homecare-cohort-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server