Allow MCP server to execute cells
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 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?