Jupyter ai agents
MCP server by datalayer Verified · gh:datalayer
Jupyter AI Agents adds an AI chat panel to JupyterLab that can work with notebooks, execute code and manage files through the Jupyter MCP Server. It is aimed at people who use Jupyter notebooks and want an AI assistant inside them.
Install Jupyter ai agents
Built from the published package, never by AI.
claude mcp add jupyter-ai-agents -- npx -y @datalayer/jupyter-ai-agentsRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"jupyter-ai-agents": {
"args": [
"-y",
"@datalayer/jupyter-ai-agents"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"jupyter-ai-agents": {
"args": [
"-y",
"@datalayer/jupyter-ai-agents"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"jupyter-ai-agents": {
"args": [
"-y",
"@datalayer/jupyter-ai-agents"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add jupyter-ai-agents -- npx -y @datalayer/jupyter-ai-agents{
"mcpServers": {
"jupyter-ai-agents": {
"args": [
"-y",
"@datalayer/jupyter-ai-agents"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add jupyter-ai-agents npx -y @datalayer/jupyter-ai-agentsGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the jupyter-ai-agents block.
About
Jupyter AI Agents is an AI chat interface and CLI for JupyterLab, published by Datalayer. The chat panel is built with Pydantic AI and Vercel AI Elements. By default, the Jupyter MCP Server runs as a Jupyter server extension, so the agent can interact with notebooks, execute code, manage files and perform other Jupyter operations. The agent can add code cells, insert markdown cells, execute code and modify a whole notebook based on user instructions or notebook events.
Changes appear in real time through Jupyter Real Time Collaboration. The agent can also run separately from the Jupyter server, using the Jupyter NbModel Client and Jupyter Kernel Client. The CLI offers prompt, explain-error and REPL commands. It suits users who want an AI assistant working directly inside their JupyterLab notebooks.
Written from the project's README and checked against it.
Tools it gives your assistant
Notebook interactionLets the agent add code cells, insert markdown cells and modify notebooks.Code executionLets the agent execute code in notebook cells.File managementLets the agent manage files and other Jupyter operations through the Jupyter MCP Server.Prompt agent (CLI)Creates and executes code in a notebook from a user instruction.Explain error agent (CLI)Analyzes and fixes errors in notebook cells.REPL mode (CLI)Interactive session with direct access to Jupyter MCP tools.Package installationREPL mode can install Python packages.
What you need
- Python with pip
- JupyterLab 4.4.1 with the jupyter-collaboration 4.0.2 extension
- An Anthropic API key for the chat interface
- API key for another supported model provider, if used in the CLI
Try asking
- Create a matplotlib example in my open notebook.
- Execute the cell and show me the first 5 rows of the data.
- Explain the error in cell 5 and fix it.
Good to know
- The chat interface currently supports Anthropic Claude Sonnet 4.0 only.
- Extended access to tools from other MCP servers is planned, not yet available.
- A specific pycrdt version is required to work around library limitations.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to Jupyter ai agents
All alternatives →Turns GitHub repositories into architecture diagrams, written explanations, Mermaid source and narrated explainer videos. Built for developers who want to understand a codebase, and for AI agents that need to read one.
Mocks, records, and chaos-tests HTTP(S) dependencies for development and testing. One port serves many protocols, including gRPC, WebSockets, and LLM chat APIs. Built for developers and testers who need stand-in services during tests.
Provides MCP server and CLI tools that let AI coding agents build, test and manage iOS and macOS projects with Xcode and simulators. It is aimed at developers working on Apple platform apps.
Creates editable draw.io diagrams in AI chat from Mermaid, PlantUML, CSV or draw.io XML. Built for people who want diagrams from text prompts that stay editable in draw.io.
Indexes your code, git history, tests and decisions on your machine so AI coding agents can query the index instead of re-reading files. Built for developers who want fewer files opened and clearer answers about change risk and code health.
Gives your AI assistant hosted codebase intelligence for repos indexed on repowise.dev. Use it to ask how code works, what a change may break, and which tests to run.
Compare with GitDiagram, mockserver or XcodeBuildMCP
Jupyter ai agents: common questions
Which AI model does the chat support?
The source says the chat currently supports Anthropic Claude Sonnet 4.0. The CLI supports several providers, including OpenAI, Google, Groq and Mistral.
Does it need JupyterLab Collaboration?
Yes. The source says changes are seen in real time through Jupyter Real Time Collaboration, and it asks users to install JupyterLab with the Collaboration extension.
Can the agent run outside the Jupyter server?
The source says the agent can run separately from the Jupyter server. Communication then uses RTC through the Jupyter NbModel Client and Jupyter Kernel Client.
How do I install Jupyter ai agents?
In Claude Code run claude mcp add jupyter-ai-agents -- npx -y @datalayer/jupyter-ai-agents. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Jupyter ai agents the official server?
Jupyter ai agents is published by gh:datalayer from its verified domain in the official MCP Registry.
Is Jupyter ai agents free?
The code is published under the BSD-3-Clause licence. The service it connects to may have its own pricing.
Is Jupyter ai agents safe to use?
It scores 80 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to Jupyter ai agents?
Similar MCP servers: GitDiagram, mockserver, XcodeBuildMCP, draw.io.
Does Jupyter ai agents work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
