marimo icon indicating copy to clipboard operation
marimo copied to clipboard

MCP server to the code base

Open ari62 opened this issue 1 month ago • 1 comments

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

ari62 avatar Oct 30 '25 23:10 ari62

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:

  1. looking at our https://docs.marimo.io/CLAUDE.md for something to put into your cursor files
  2. i would also look at context7 for marimo docs

mscolnick avatar Nov 05 '25 18:11 mscolnick