Molab Notebooks

v0.1.0
io.github.p1neapplechoco/marimo-molab-mcp Checked 3 days ago Published 5 days ago

Manage Molab notebooks, request GPUs, and pair agents with live marimo kernels.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

molab_open

Open the Molab dashboard or a notebook URL. Complete sign-in in the browser window.

ParameterTypeDescription
url

molab_tabs

List tabs, including editor popups, in the dedicated Molab browser.

molab_list_notebooks

List saved notebooks in the signed-in workspace, including those without a running editor. Pass a dashboard tab or omit tab_id. Optionally filter by name with query. Use the returned IDs with molab_init_notebook or molab_terminate_notebook.

ParameterTypeDescription
query
tab_id

molab_snapshot

Read visible controls and frames. Refresh after navigation or changes to a menu.

ParameterTypeDescription
tab_id *string

molab_action

Interact with a visible Molab control, editor, file dialog or canvas using its frame and target.

ParameterTypeDescription
action *
tab_id *string

molab_screenshot

Capture the notebook UI for visual controls and coordinate-based actions.

ParameterTypeDescription
tab_id *string

molab_close_tab

Close the selected browser tab. This may disconnect its live editor session.

ParameterTypeDescription
tab_id *string

molab_attach_gpu

Select GPU compute and apply the Molab restart. Inspect notebook_gpu_status after pairing.

ParameterTypeDescription
tab_id *string

molab_pair_agent

Obtain the editor's Pair credential. Returns a private connection file and its local ID.

ParameterTypeDescription
tab_id *string

molab_terminate_notebook

Stop the target notebook's cloud runtime. Its in-memory state will be lost. Select an open notebook tab or pass its nb_ ID or Molab URL. The saved notebook can be initialized again with molab_init_notebook.

ParameterTypeDescription
notebook
tab_id

molab_init_notebook

Start an existing notebook by Molab URL, nb_ ID or notebook tab, or create one from the dashboard. With notebook set, only that existing notebook may be started or paired. GPU and Pair are enabled by default. GPU selection can restart the kernel. On partial completion reuse the returned tab_id and the indicated next tool.

ParameterTypeDescription
gpuboolean
notebook
pairboolean
tab_id

notebook_sessions

List active sessions accessible through this Pair connection.

ParameterTypeDescription
connection_id

notebook_execute

Run Python in the live scratchpad. Use notebook_cell to persist code in the notebook.

ParameterTypeDescription
code *string
connection_id
session_id

notebook_cells

Inspect cells, current source and state before editing.

ParameterTypeDescription
connection_id
session_id

notebook_cell

Create, edit, run or delete a cell. Pass expected_code to guard edits against stale reads.

ParameterTypeDescription
action *string
cell_id
code
connection_id
expected_code
runboolean
session_id

notebook_widget

Change a named marimo UI widget's value through the running notebook.

ParameterTypeDescription
name *string
value *
connection_id
session_id

notebook_package

List requirements, add a package requirement, or remove a dependency in the notebook.

ParameterTypeDescription
action *string
connection_id
requirement
session_id

notebook_gpu_status

Ask the live kernel for GPU device names and memory using nvidia-smi.

ParameterTypeDescription
connection_id
session_id