marimo icon indicating copy to clipboard operation
marimo copied to clipboard

Allow MCP server to execute cells

Open indigoviolet opened this issue 2 months ago • 1 comments

Description

I would like to allow (for example) Claude Code to use a marimo notebook as a scratch pad for various computations, and show its work. To do this, it needs to be able to execute the cells that it creates.

Suggested solution

Allow the MCP server to execute a cell.

Are you willing to submit a PR?

  • [ ] Yes

Alternatives

No response

Additional context

No response

indigoviolet avatar Nov 08 '25 22:11 indigoviolet

@indigoviolet you can run marimo in watch mode --watch and then have Claude Code directly edit the notebook file:

https://docs.marimo.io/guides/editor_features/watching/?h=watcher_#watching-for-changes-to-your-notebook

Also, you can update your settings to run the saved cells as well:

[tool.marimo.runtime]
watcher_on_save = "autorun"

We opted for this since Claude is much better at reading/editing files than it is using tools to edit files. Does this work for you?

mscolnick avatar Nov 13 '25 01:11 mscolnick