1. Conduid
  2. Data
  3. M3
MCP server · Data

M3

🏥🤖 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.

Unclaimed MIT last commit 7 months ago data
57Fair

Scored 21 hours ago · breakdown

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
uvx m3-mcp
pip
pip install m3-mcp
From source
git clone https://github.com/rafiattrach/m3

Tools (6)

execute_mimic_query🚀 Execute SQL queries to analyze MIMIC-IV data.
ParameterTypeDescription
sql_query *stringYour 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.
ParameterTypeDescription
limitintegerMaximum number of records to return (default: 10)
patient_idintegerSpecific patient ID to query (optional)
get_lab_results🧪 Get laboratory test results quickly.
ParameterTypeDescription
lab_itemstringLab item to search for in the value field (optional)
limitintegerMaximum number of records to return (default: 20)
patient_idintegerSpecific patient ID to query (optional)
get_race_distribution📊 Get race distribution from hospital admissions.
ParameterTypeDescription
limitintegerMaximum number of race categories to return (default: 10)
get_table_info📋 Explore a specific table's structure and see sample data.
ParameterTypeDescription
show_samplebooleanWhether to include sample rows (default: True, recommended)
table_name *stringExact 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

v0.4.0v0.4.0 · 19 Dec 2025What’s new DuckDB + Parquet backend – Local storage now uses DuckDB with Parquet instead of SQLite for faster, more scalable querying. Full MIMIC-IV support – Works with the full MIMIC-IV dataset (after you download and copy it into…
v0.3.0v0.3.0 - Docker Support & Improved Onboarding · 4 Nov 2025🐳 Docker Support Add official Docker images with `lite` (SQLite) and `bigquery` variants Standalone images with baked-in demo database for instant deployment Support for both local demo (100 patients) and full BigQuery (365k patients) 📚…
v0.2.0v0.2.0 - Modern Build System with UV + PDM Support · 11 Jul 2025🚀 v0.2.0: Modern Build System with UV + PDM Support 🎯 Major Infrastructure Modernization This release brings M3 into the modern Python packaging ecosystem, providing significantly faster installation and development workflows while…
v0.1.5v0.1.5 - Fix data download path · 3 Jul 2025Rename ´data/´ to ´m3_data/´ to avoid user directory conflicts
v0.1.4v0.1.4 · 8 Jun 2025Read-only filesystem errors when using `pip install m3-mcp` with Claude Desktop Changed: ✅ Use home directory for data storage (pip installs) ✅ Remove noisy logs on `m3 -v` or `m3 config` ✅ Lazy directory creation Install: `pip install…

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
Questions

About M3

How do I install M3?

Run uvx m3-mcp, then add the server to your MCP client's configuration.

Is M3 safe to use with an AI agent?

Its trust score is 57 out of 100 (fair). It passes 4 of the 5 static checks Conduid ran on the repository; it does not pass Scoped permissions. It has no ConduID identity yet, so agent calls to it are not receipted.

Is M3 still maintained?

The last commit was 7 months ago and 2 open issues. That's long enough that you should check whether the maintainer is responding to issues before depending on it.

What tools does M3 provide?

Conduid read 6 tools from the source: execute_mimic_query, get_database_schema, get_icu_stays, get_lab_results, get_race_distribution and get_table_info. 5 of them publish their parameters, listed under Tools above.

What license is M3 released under?

The repository declares the MIT license. That applies to the latest release, v0.4.0, as well.