Skip to content

Commit 57acdb3

Browse files
committed
refactor(docs): add tutorials overview & mimic/Jupyter tutorial
1 parent a5e3893 commit 57acdb3

5 files changed

Lines changed: 128 additions & 2 deletions

File tree

docs/stylesheets/extra.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,4 +128,3 @@
128128
border-color: var(--md-primary-fg-color, #6200ee);
129129
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
130130
}
131-

docs/stylesheets/extra_mkdocs.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@
1515

1616
.md-typeset h1 {
1717
margin: 0 0 0.1em;
18-
}
18+
}

docs/tutorials/index.md

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# 📚 Tutorials Hub
2+
# 📚 Tutorials Hub
3+
4+
Hey there, let's explore the **MCPStack Tutorials**!
5+
6+
Here you’ll find guided, hands-on walkthroughs showing how to build, run, and extend pipelines.
7+
8+
<div class="grid cards" markdown>
9+
10+
- :fontawesome-solid-triangle-circle-square:{ .lg .middle } __Build your first pipeline__
11+
{: data-tutorials-card data-filter="pipeline getting started intro"}
12+
13+
---
14+
15+
Learn how to create your first pipeline from scratch.
16+
17+
[:octicons-arrow-right-24: Start Tutorial](first-pipeline.md)
18+
19+
- :material-content-save:{ .lg .middle } __Saving & Loading Pipelines__
20+
{: data-tutorials-card data-filter="save load persist pipelines"}
21+
22+
---
23+
24+
How to persist and reload pipelines for reproducibility.
25+
26+
[:octicons-arrow-right-24: Start Tutorial](save-load.md)
27+
28+
- :material-wrench:{ .lg .middle } __Writing your first Tool__
29+
{: data-tutorials-card data-filter="custom tool development"}
30+
31+
---
32+
33+
Build and register your own MCP tool.
34+
35+
[:octicons-arrow-right-24: Start Tutorial](first-tool.md)
36+
37+
- :material-tune:{ .lg .middle } __Creating a Preset__
38+
{: data-tutorials-card data-filter="preset pipelines reproducibility"}
39+
40+
---
41+
42+
Package pre-wired pipelines for reuse.
43+
44+
[:octicons-arrow-right-24: Start Tutorial](first-preset.md)
45+
46+
- :material-table:{ .lg .middle } __MIMIC + Jupyter Pipeline__
47+
{: data-tutorials-card data-filter="MIMIC Jupyter conversational AI reproducible analysis"}
48+
49+
---
50+
51+
NEW! A walkthrough of stacking the **MIMIC MCP** with the **Jupyter MCP**
52+
53+
[:octicons-arrow-right-24: Watch & Learn](mimic-jupyter.md)
54+
55+
</div>
56+
57+
!!! tip
58+
This page will expand as more tutorials are added — contributions welcome!

docs/tutorials/mimic-jupyter.md

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
# 🧪 Tutorial: MIMIC + Jupyter Pipeline
2+
# 🧪 Tutorial: MIMIC + Jupyter Pipeline
3+
4+
This tutorial shows how to **stack two MCPs**:
5+
6+
- **MIMIC** (conversational AI on the MIMIC-IV clinical database)
7+
- **Jupyter** (reproducible notebook analysis)
8+
9+
You’ll learn how to:
10+
11+
1. Build a pipeline with both tools
12+
2. Ask natural language questions over MIMIC-IV
13+
3. Export results into a Jupyter Notebook for reproducible Python analysis
14+
15+
---
16+
17+
## 🎥 Video Walkthrough
18+
19+
<iframe width="860" height="515" src="https://www.youtube.com/embed/uTjIbN0GSHU?si=4rwoYmX32y9Cs6vs" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
20+
21+
---
22+
23+
## 🔧 Step 1 — Build with Pipeline W/ MIMIC Default
24+
25+
MIMIC Default is basically using the default MIMIC-IV demo database.
26+
27+
```bash
28+
uv run mcpstack pipeline mimic --new-pipeline my_pipeline.json
29+
```
30+
31+
## 🔧 Step 2 — Create a Jupyter `ToolConfig`
32+
33+
Basically, Jupyter MCP works with some sort of connections between the LLM and the Jupyter instance. This is via a
34+
URL and a TOKEN. Hence, the need for a `ToolConfig`.
35+
36+
```bash
37+
uv run mcpstack tools jupyter configure \
38+
--token YOUR_JUPYTER_TOKEN
39+
40+
# This create a `jupyter_config.json` file
41+
```
42+
43+
## 🔧 Step 3 — Add To The Tool To The Pipeline
44+
45+
```bash
46+
uv run mcpstack pipeline mimic --to-pipeline my_pipeline.json --tool-config jupyter_config.json
47+
```
48+
49+
## 🔧 Step 4 — Compose & Run the Pipeline On Claude Desktop
50+
51+
```bash
52+
uv run mcpstack build --pipeline my_pipeline.json --config-type claude
53+
```
54+
55+
Now you can ask the LLM to operate the MIMIC tool and export results into Jupyter.
56+
57+
## 📣 Prompt Used During The Demo Video
58+
59+
```text
60+
Hey there! May you extract 50 patients from MIMIC-IV and do a quick reproducible analysis of the data with pandas
61+
for me please?
62+
63+
If you need to add packages, `!uv add <package_name>`.
64+
```
65+
66+
!!! tip
67+
Try chaining additional tools (e.g., scikit-longitudinal) to build research-ready clinical workflows.

mkdocs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,10 +161,12 @@ nav:
161161
- MCP Hosts & Config Generators: guides/concepts/mcp-hosts-and-configs.md
162162
- MCPs Marketplace: mcp_marketplace.md
163163
- Tutorials:
164+
- Overview: tutorials/index.md
164165
- Build your first pipeline: tutorials/first-pipeline.md
165166
- Saving & Loading Pipelines: tutorials/save-load.md
166167
- Writing your first Tool: tutorials/first-tool.md
167168
- Creating a Preset: tutorials/first-preset.md
169+
- MIMIC + Jupyter Pipeline: tutorials/mimic-jupyter.md
168170
- API Reference:
169171
- MCPStack Core:
170172
- MCPStackCore: API/mcpstackcore.md

0 commit comments

Comments
 (0)