About M3
M3 is an MCP server published by rafiattrach in the Data category: 🏥🤖 Query MIMIC-IV medical data using natural language through Model Context Protocol (MCP). Transform healthcare research with AI-powered database interactions - supports both local MIMIC-IV SQLite demo dataset and full BigQuery datasets. Conduid read 6 tools from its source: execute_mimic_query, get_database_schema, get_icu_stays, get_lab_results, get_race_distribution and get_table_info. It is published to PyPI as m3-mcp and runs with uvx.
The repository has 80 stars and 18 forks, is licensed MIT, and its last commit was on 22 Apr 2026. The latest release is v0.4.0 (19 Dec 2025): What’s new DuckDB + Parquet backend – Local storage now uses DuckDB with Parquet instead of SQLite for faster, more scalable querying. It follows v0.3.0 (4 Nov 2025), and the 5 most recent releases go back to v0.1.4 (8 Jun 2025). It passes 4 of the 5 static checks Conduid ran on the repository; it does not pass Scoped permissions. Its topics include data.
Install
uvx m3-mcppip install m3-mcpgit clone https://github.com/rafiattrach/m3Tools (6)
execute_mimic_query🚀 Execute SQL queries to analyze MIMIC-IV data.| Parameter | Type | Description |
|---|---|---|
| sql_query * | string | Your SQL SELECT query (must be SELECT only) |
get_database_schema🔍 Discover what data is available in the MIMIC-IV database.get_icu_stays🏥 Get ICU stay information and length of stay data.| Parameter | Type | Description |
|---|---|---|
| limit | integer | Maximum number of records to return (default: 10) |
| patient_id | integer | Specific patient ID to query (optional) |
get_lab_results🧪 Get laboratory test results quickly.| Parameter | Type | Description |
|---|---|---|
| lab_item | string | Lab item to search for in the value field (optional) |
| limit | integer | Maximum number of records to return (default: 20) |
| patient_id | integer | Specific patient ID to query (optional) |
get_race_distribution📊 Get race distribution from hospital admissions.| Parameter | Type | Description |
|---|---|---|
| limit | integer | Maximum number of race categories to return (default: 10) |
get_table_info📋 Explore a specific table's structure and see sample data.| Parameter | Type | Description |
|---|---|---|
| show_sample | boolean | Whether to include sample rows (default: True, recommended) |
| table_name * | string | Exact table name from the schema (case-sensitive). Can be simple name or fully qualified BigQuery name. |
Security checks
Static checks derived from the repository 11 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 2.2K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by uv.lock and webapp/package-lock.json.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
1 check has not been run yet.
Releases
README
The repository's README runs to about 2.2K words, fetched a month ago. The original in the repository is authoritative.
Read full README