Note: This repository is for organizing work on MCP support that will be contributed back to the mainline marimo project via pull request. We will import the marimo tree and work on it in a git worktree on a feature branch.
Development: The actual marimo codebase and implementation work can be found in the ./marimo/ worktree directory on the marimo/feature/mcp branch. See CLAUDE.md for repository structure and development workflow details.
This proposal outlines the integration of Model Context Protocol (MCP) support directly into marimo, enabling AI assistants and external tools to programmatically control marimo notebooks. By implementing both an HTTP-based MCP server (leveraging marimo's existing ASGI infrastructure) and a CLI-based MCP interface, we will unlock powerful AI-assisted workflows while maintaining marimo's core reactive principles.
ASGI Context: ASGI (Asynchronous Server Gateway Interface) is Python's standard for asynchronous web applications. marimo already uses ASGI to serve notebooks as web applications, making it a natural foundation for adding MCP server capabilities without introducing new dependencies.
- Enable AI assistants (focus on Claude Code) to create, modify, and execute marimo notebooks programmatically
- Provide seamless integration for both interactive (HTTP server) and batch (CLI) workflows
- Maintain marimo's reactive execution model while exposing it to external control
- Developer Experience: Seamless AI assistance without leaving the marimo environment
- Ecosystem Growth: First reactive notebook with native MCP support
- Enterprise Ready: Secure, auditable AI-notebook interactions
- Community Innovation: Enable new AI-powered notebook workflows
- Leverage existing ASGI infrastructure to minimize new dependencies
- Maintain backward compatibility with current marimo APIs
- Design for extensibility to support future MCP specification updates
- Ensure security through proper authentication and authorization
- Provide comprehensive documentation and examples
- Full MCP protocol compliance for all implemented features
- No performance degradation for non-MCP notebook usage
- Successful integration with major AI platforms (Claude Desktop, Continue, etc.)
- Positive community feedback and adoption
- Clear documentation enabling third-party tool development
- Community RFC to gather feedback on proposed features
- Prototype implementation of core MCP server
- Integration with marimo's existing test suite
- Documentation and example creation
- Beta testing with selected community members
- Pull request submission with comprehensive testing
This native MCP integration will position marimo as the leading AI-native notebook platform, enabling workflows that aren't possible with traditional notebooks while maintaining the reactive execution model that makes marimo unique.