marimo
marimo copied to clipboard
MCP server to the code base
Description
Hello, I see Marimo allows you to attach an MCP server to a currently editing notebook, for example: https://docs.marimo.io/guides/editor_features/mcp/
Please consider adding a feature where there is a consistent entrypoint into an mcp which provide help for AI tools to use Marimo, for example vectorbt allows you to connect to its mcp server like:
"mcpServers": { "VectorBT PRO": { "command": "/absolute/path/to/python", "args": [ "-m", "vectorbtpro.mcp_server" ] } } }
The vectorbt mcp server i think allows tools like cursor to search discord messages and documentation and the code base itself so cursor knows how to interact with the library. When working with cursor, cursor often produces incorrect marimo code. Any tips on making cursor produce correct marimo code would also be great (correct in terms of global vs private variables, how parameters are used, how returned values are used, etc. Cursor is just making normal python code with some marimo annotations). For example a .cursorconfig.json or .cursorrules file pre-set up to work with marimo.
Suggested solution
in the description...
Are you willing to submit a PR?
- [ ] Yes
Alternatives
No response
Additional context
No response
hey @ari62, correct me if im wrong, but you are looking to for an MCP over stdio? are you just looking for docs or are you looking for an MCP that can "see" the notebook state and outputs.
if you are looking for documentation and correct marimo code, i would recommend:
- looking at our https://docs.marimo.io/CLAUDE.md for something to put into your cursor files
- i would also look at context7 for marimo docs