You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -16,11 +16,11 @@ Transform medical data analysis with AI! Ask questions about MIMIC-IV data in pl
16
16
17
17
## Features
18
18
19
-
-**Natural Language Queries**: Ask questions about MIMIC-IV data in plain English
20
-
-**Local SQLite**: Fast queries on demo database (free, no setup)
21
-
-**BigQuery Support**: Access full MIMIC-IV dataset on Google Cloud
22
-
-**Enterprise Security**: OAuth2 authentication with JWT tokens and rate limiting
23
-
-**SQL Injection Protection**: Read-only queries with comprehensive validation
19
+
-🔍 **Natural Language Queries**: Ask questions about MIMIC-IV data in plain English
20
+
-🏠 **Local DuckDB + Parquet**: Fast local queries for demo and full dataset using Parquet files with DuckDB views
21
+
-☁️ **BigQuery Support**: Access full MIMIC-IV dataset on Google Cloud
22
+
-🔒 **Enterprise Security**: OAuth2 authentication with JWT tokens and rate limiting
23
+
-🛡️ **SQL Injection Protection**: Read-only queries with comprehensive validation
24
24
25
25
## 🚀 Quick Start
26
26
@@ -47,7 +47,7 @@ uv --version
47
47
48
48
### BigQuery Setup (Optional - Full Dataset)
49
49
50
-
**Skip this if using SQLite demo database.**
50
+
**Skip this if using DuckDB demo database.**
51
51
52
52
1.**Install Google Cloud SDK:**
53
53
- macOS: `brew install google-cloud-sdk`
@@ -59,35 +59,32 @@ uv --version
59
59
```
60
60
*Opens your browser - choose the Google account with BigQuery access to MIMIC-IV.*
61
61
62
-
### MCP Client Configuration
63
-
64
-
Paste one of the following into your MCP client config, then restart your client.
62
+
### M3 Initialization
65
63
66
64
**Supported clients:**[Claude Desktop](https://www.claude.com/download), [Cursor](https://cursor.com/download), [Goose](https://block.github.io/goose/), and [more](https://github.com/punkpeye/awesome-mcp-clients).
67
65
68
66
<table>
69
67
<tr>
70
68
<tdwidth="50%">
71
69
72
-
**SQLite (Demo Database)**
70
+
**DuckDB (Demo or Full Dataset)**
73
71
74
-
Free, local, no setup required.
75
72
76
-
```json
77
-
{
78
-
"mcpServers": {
79
-
"m3": {
80
-
"command": "uvx",
81
-
"args": ["m3-mcp"],
82
-
"env": {
83
-
"M3_BACKEND": "sqlite"
84
-
}
85
-
}
86
-
}
87
-
}
73
+
To create a m3 directory and navigate into it run:
74
+
```shell
75
+
mkdir m3 &&cd m3
76
+
```
77
+
If you want to use the full dataset, download it manually from [PhysioNet](https://physionet.org/content/mimiciv/3.1/) and place it into `m3/m3_data/raw`. For using the demo set you can continue and run:
78
+
79
+
```shell
80
+
uv init && uv add m3-mcp && \
81
+
uv run m3 init DATASET_NAME && uv run m3 config --quick
88
82
```
83
+
Replace `DATASET_NAME` with `mimic-iv-demo` or `mimic-iv-full` and copy & paste the output of this command into your client config JSON file.
89
84
90
-
*Demo database (136MB, 100 patients, 275 admissions) downloads automatically on first query.*
85
+
*Demo dataset (16MB raw download size) downloads automatically on first query.*
86
+
87
+
*Full dataset (10.6GB raw download size) needs to be downloaded manually.*
91
88
92
89
</td>
93
90
<tdwidth="50%">
@@ -96,6 +93,8 @@ Free, local, no setup required.
96
93
97
94
Requires GCP credentials and PhysioNet access.
98
95
96
+
Paste this into your client config JSON file:
97
+
99
98
```json
100
99
{
101
100
"mcpServers": {
@@ -126,13 +125,13 @@ Requires GCP credentials and PhysioNet access.
126
125
127
126
## Backend Comparison
128
127
129
-
| Feature |SQLite (Demo) | BigQuery (Full) |
130
-
|---------|---------------|-----------------|
131
-
|**Cost**| Free | BigQuery usage fees |
132
-
|**Setup**| Zero config | GCP credentials required |
0 commit comments