Rehabilitation Monitoring MCP Server
The Rehabilitation Monitoring MCP Server enables comprehensive rehabilitation patient monitoring, risk assessment, reporting, and research retrieval through a standardized MCP interface.
Patient Data & Information
Retrieve individual patient information using a patient ID, drawing from CSV datasets covering patient records, therapy sessions, wearable sensor measurements, and medication adherence logs.
Risk Assessment
Calculate rehabilitation risk scores for individual patients or the entire cohort, with a configurable lookback window (1–365 days).
Identify patients with declining rehabilitation outcomes over a specified time period.
Reporting & Alerts
Generate detailed markdown rehabilitation reports for a single patient or the whole cohort, optionally enriched with external research content via Firecrawl.
Create and persist alerts when risk scores or decline indicators cross configurable thresholds.
Research Retrieval
Search for rehabilitation research papers and summaries from external sources using the Firecrawl API, with customizable queries and result limits.
Guided Prompts
Use built-in prompts to summarize patient progress, create monitoring reports, explain risk classifications, and recommend follow-up actions.
Configuration
Supports overriding the default data directory and configuring Firecrawl API keys via environment variables.
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., "@Rehabilitation Monitoring MCP ServerCalculate risk scores for all patients"
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.
Rehabilitation Monitoring MCP Server
An MCP (Model Context Protocol) server for rehabilitation monitoring built with the Python SDK. The server exposes rehabilitation datasets, monitoring tools, reporting workflows, and research retrieval capabilities through a standardized MCP interface.
Development Approach
This project was developed using an LLM-assisted development workflow inspired by the MCP tutorial on building MCP servers with LLMs. Functionality was designed, implemented, tested, and refined iteratively through prompt-driven development, MCP tool testing, and human review.
The project evolved from basic rehabilitation-monitoring tools into more advanced workflows, including risk assessment, decline detection, intervention planning, alert generation, and an agentic rehabilitation workflow for reviewing and updating patient plans.
Reference:
Related MCP server: openemr-mcp
User Interface
The project includes a Gradio-based clinical dashboard (app.py) that provides a graphical interface for interacting with the rehabilitation-monitoring workflows.
Available dashboard views:
Cohort Overview
Patient Information
Risk Assessment
Declining Outcomes
Review Workflow
Alerts
Intervention Plans
AI Assistant
The dashboard is implemented on top of the existing MCP server functionality and does not modify the underlying MCP workflows. The dashboard also includes a rule-based AI Assistant that allows users to ask natural-language rehabilitation-monitoring questions. The assistant dynamically selects and combines information from existing MCP tools to provide patient-level and cohort-level summaries, risk explanations, rehabilitation concerns, intervention recommendations, alert information, and monitoring insights.
AI Agent Documentation
The repository includes an AGENTS.md file that provides project-specific guidance for AI coding agents such as Goose, Claude Code, GitHub Copilot, Codex, and Cursor.
The document describes:
project goals
repository structure
MCP tools and workflows
development workflow
testing instructions
coding conventions
risk-classification logic
persistence behaviour
project-specific constraints
AI-assisted development guidelines
The AGENTS.md file serves as the primary reference for AI agents working on the rehabilitation-monitoring MCP server.
What it provides
Tools
get_patient_informationcalculate_patient_risk_scoresidentify_declining_rehabilitation_outcomesgenerate_rehabilitation_reportscreate_patient_alertscreate_intervention_planreview_and_update_patient_plansearch_rehabilitation_research
Prompts
generate_patient_progress_summariescreate_rehabilitation_monitoring_reportsexplain_risk_classificationsrecommend_follow_up_actions
Resources
rehab://data/patients.csvrehab://data/therapy_sessions.csvrehab://data/wearable_measurements.csvrehab://data/medication_adherence.csvrehab://alerts
Data directory
By default the server reads CSV files from ./data. You can override that with REHAB_DATA_DIR.
Expected filenames:
patients.csvtherapy_sessions.csvwearable_measurements.csvmedication_adherence.csv
Firecrawl research search
The research search tool uses the Firecrawl API. Set:
FIRECRAWL_API_KEYoptionally
FIRECRAWL_API_URLif you use a different endpoint
The tool uses Firecrawl to retrieve rehabilitation-related research papers and summaries from external sources.
Example MCP Usage
Examples:
Calculate patient risk scores
Generate rehabilitation reports
Identify declining rehabilitation outcomes
Create patient alerts
Retrieve rehabilitation-related research
Example prompts:
Use the rehab-monitor MCP server to calculate patient risk scores.
Use the rehab-monitor MCP server to generate a rehabilitation report for patient P001.
Use the rehab-monitor MCP server to search rehabilitation research related to stroke recovery.
Example dashboard workflows:
Review a patient rehabilitation plan.
Monitor rehabilitation alerts.
Review intervention plans.
Monitor rehabilitation risk levels across the patient cohort.
Ask natural-language rehabilitation-monitoring questions through the AI Assistant.
Sample Data
The repository includes synthetic rehabilitation monitoring datasets containing:
patient records
therapy session data
wearable sensor measurements
medication adherence records
These datasets are intended for MCP development and testing purposes only and do not contain real patient information.
Run
Run the MCP Server
uv run rehab-monitorOr run the server module directly:
uv run python -m rehab_monitor.serverRun the Gradio Dashboard
uv run python app.pyThe dashboard will be available at:
http://127.0.0.1:7860The Gradio dashboard uses the existing MCP tools and workflows without modifying the underlying server logic.
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-qualityDmaintenanceAn MCP server that provides healthcare tools for interacting with FHIR data and medical resources on EMRs like Cerner and Epic1MIT
- AlicenseAqualityCmaintenanceAn MCP server that connects AI assistants to OpenEMR instances to manage patient records, clinical trends, and medication safety. It provides 17 tools for tasks such as patient search, drug interaction checks, and generating comprehensive health trajectories and visit preparations.17MIT
- 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.4
- AlicenseAqualityCmaintenanceMCP server for healthcare claims workflow scoring, validation, and feedback, supporting denial risk, prior authorization, and reimbursement assessment.8MIT
Related MCP Connectors
MCP server for Altmetric APIs - track research attention across news, policy, social media, and more
MCP server for generating rough-draft project plans from natural-language prompts.
MCP server providing access to the Scorecard API to evaluate and optimize LLM systems.
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/miiakorhonen/rehab-monitor-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server