@@ -22,29 +22,61 @@ Transform medical data analysis with AI! Ask questions about MIMIC-IV data in pl
22
22
23
23
> 💡 ** Need more options?** Run ` m3 --help ` to see all available commands and options.
24
24
25
- ### Prerequisites
25
+ ### 📦 Installation
26
26
27
+ Choose your preferred installation method:
28
+
29
+ #### Option A: Install from PyPI (Recommended)
30
+
31
+ ** Step 1: Create Virtual Environment**
27
32
``` bash
28
33
# Create virtual environment (recommended)
29
34
python -m venv .venv
30
35
source .venv/bin/activate # Windows: .venv\Scripts\activate
31
36
```
32
37
33
- ### Option 1: Local Demo (Recommended for Beginners)
38
+ ** Step 2: Install M3**
39
+ ``` bash
40
+ # Install M3
41
+ pip install m3-mcp
42
+ ```
34
43
35
- ** Perfect for learning and development - completely free! **
44
+ #### Option B: Install from Source
36
45
37
- 1 . ** Install M3** :
38
- ``` bash
39
- pip install -e .
40
- ```
46
+ ** Step 1: Clone and Navigate**
47
+ ``` bash
48
+ # Clone the repository
49
+ git clone https://github.com/rafiattrach/m3.git
50
+ cd m3
51
+ ```
52
+
53
+ ** Step 2: Create Virtual Environment**
54
+ ``` bash
55
+ # Create virtual environment
56
+ python -m venv .venv
57
+ source .venv/bin/activate # Windows: .venv\Scripts\activate
58
+ ```
59
+
60
+ ** Step 3: Install M3**
61
+ ``` bash
62
+ # Install M3
63
+ pip install .
64
+ ```
41
65
42
- 2 . ** Download demo database** :
66
+ ### 🗄️ Database Configuration
67
+
68
+ After installation, choose your data source:
69
+
70
+ #### Option A: Local Demo Database (Recommended for Beginners)
71
+
72
+ ** Perfect for learning and development - completely free!**
73
+
74
+ 1 . ** Download demo database** :
43
75
``` bash
44
76
m3 init mimic-iv-demo
45
77
```
46
78
47
- 3 . ** Setup MCP Client** :
79
+ 2 . ** Setup MCP Client** :
48
80
``` bash
49
81
m3 config
50
82
```
@@ -54,42 +86,42 @@ source .venv/bin/activate # Windows: .venv\Scripts\activate
54
86
m3 config claude
55
87
```
56
88
57
- 4 . ** Restart your MCP client** and ask:
89
+ 3 . ** Restart your MCP client** and ask:
58
90
59
91
- "What tools do you have for MIMIC-IV data?"
60
92
- "Show me patient demographics from the ICU"
61
93
62
- ### Option 2 : BigQuery (Full Dataset)
94
+ #### Option B : BigQuery (Full Dataset)
63
95
64
96
** For researchers needing complete MIMIC-IV data**
65
97
66
- #### Prerequisites
98
+ ##### Prerequisites
67
99
- Google Cloud account and project with billing enabled
68
100
- Access to MIMIC-IV on BigQuery (requires PhysioNet credentialing)
69
101
70
- #### Setup Steps
102
+ ##### Setup Steps
71
103
72
104
1 . ** Install Google Cloud CLI** :
105
+
106
+ ** macOS (with Homebrew):**
73
107
``` bash
74
- # macOS (with Homebrew)
75
108
brew install google-cloud-sdk
109
+ ```
76
110
77
- # Windows: Download from https://cloud.google.com/sdk/docs/install
78
- # Linux
111
+ ** Windows:** Download from https://cloud.google.com/sdk/docs/install
112
+
113
+ ** Linux:**
114
+ ``` bash
79
115
curl https://sdk.cloud.google.com | bash
80
116
```
81
117
82
118
2 . ** Authenticate** :
83
119
``` bash
84
120
gcloud auth application-default login
85
121
```
122
+ * This will open your browser - choose the Google account that has access to your BigQuery project with MIMIC-IV data.*
86
123
87
- 3 . ** Install M3** :
88
- ``` bash
89
- pip install -e .
90
- ```
91
-
92
- 4 . ** Setup MCP Client for BigQuery** :
124
+ 3 . ** Setup MCP Client for BigQuery** :
93
125
``` bash
94
126
m3 config
95
127
```
@@ -99,7 +131,7 @@ source .venv/bin/activate # Windows: .venv\Scripts\activate
99
131
m3 config claude --backend bigquery --project-id YOUR_PROJECT_ID
100
132
```
101
133
102
- 5 . ** Test BigQuery Access** - Restart your MCP client and ask:
134
+ 4 . ** Test BigQuery Access** - Restart your MCP client and ask:
103
135
```
104
136
Use the get_race_distribution function to show me the top 5 races in MIMIC-IV admissions.
105
137
```
@@ -262,12 +294,25 @@ gcloud auth list
262
294
263
295
### Development Setup
264
296
297
+ ** Step 1: Clone and Navigate**
265
298
``` bash
266
- git clone https://github.com/rafiattrach/m3 # HTTPS as an example
299
+ # Clone the repository
300
+ git clone https://github.com/rafiattrach/m3.git
267
301
cd m3
302
+ ```
303
+
304
+ ** Step 2: Create and Activate Virtual Environment**
305
+ ``` bash
306
+ # Create virtual environment
268
307
python -m venv .venv
269
308
source .venv/bin/activate # Windows: .venv\Scripts\activate
309
+ ```
310
+
311
+ ** Step 3: Install Development Dependencies**
312
+ ``` bash
313
+ # Install in development mode with dev dependencies
270
314
pip install -e " .[dev]"
315
+ # Install pre-commit hooks
271
316
pre-commit install
272
317
```
273
318
0 commit comments