IPython
Provides large language models with a stateful IPython kernel per session, ensuring isolated execution environments for iterative code development.
ipython-mcp serves as a dedicated server for large language models, such as Claude, offering a persistent Python REPL environment for each session. Unlike traditional code runners, it maintains variables, imports, and the working directory across `execute` calls, enabling iterative development and data analysis akin to a Jupyter notebook. Sessions are isolated, allowing different tasks to run in distinct Python environments with their own installed packages. This lightweight solution avoids Jupyter server dependencies while providing robust, timeout-safe code execution where kernel state is preserved even if a cell runs long.