marimoFrom the builder
Turning Python notebooks into AI-Accessible Systems
A marimo engineer explains the new --mcp flag, which turns a notebook opened with marimo edit into an MCP server that exposes read-only tools to IDEs and local LLM agents. The tools cover active notebooks, cell maps and runtime data, tables and variables, database schemas and errors. The author says the hard parts were serving each call a consistent snapshot without stalling the reactive engine and designing safe, unambiguous tool schemas.
The newly released --mcp flag turns any notebook into a Model Context Protocol (MCP) server , exposing structured tools that let AI systems inspect, diagnose and reason about notebooks in a standard way.
Saved . A shortened excerpt from the official blog; the original publisher retains authorship.