bettyguo/mcp-jupyter
MCP server for Jupyter. Gives coding agents access to live kernel state (variables, dataframe summaries, plots, tracebacks) instead of just the .ipynb JSON.
006e3cfb81bamcp-jupyter-kernel0.0.1 in pyproject.tomlPaths from tool input into commands, SQL, files and URLs
How much power the tools give an agent over the machine
Hidden instructions and poisoning in text for the model
Known vulnerabilities in the packages the server uses
How the server reads credentials and where they can go
Whether the tools do only what their descriptions say
How far the analysis went
The scanner traces each tool from its input to the operations its code performs, and here it could not follow every path. Code Safety and Capability Exposure are shown as partly traced instead of a score: no finding there is not a clean result.
- In 15 places a tool's input is handed to a function whose name matches several definitions in the code; the scanner could not tell which one runs, so it stopped there
- Supply Chain: the dependency files state no exact versions the scanner could check, so it has no number
Top risks in plain words
- INFONo published risk: no tool declared to run commands, files, addresses or queries of the caller's choice, no known vulnerability in a production package, no advisory. Not every path through the code could be followed. Code findings appear here only after a person has verified them.
How to use it safely
Practical steps from what we found in this server. They lower the risk; they do not replace a review of the code.
- Keep confirmations on
Leave your MCP client's confirmation prompt on for tools that change files, run commands or send data.
What its tools can do on your machine
The server offers 10 tools. When an AI agent calls them, this is what their code can do on the machine where the server runs, as traced in the source. Tools that call code the scanner could not follow may do more.
None of the tools reaches any of these in the code the scanner could trace.
Where its requests and secrets go
Read from the names along each tool's calls, not from a run: what the code says, not every address it may reach at run time.
Not in this scan yet: the scan of this server predates this part of the profile. It appears here with the next scan.
Text it brings in from outside
Not in this scan yet: the scan of this server predates this part of the profile. It appears here with the next scan.
Tool annotations
Not in this scan yet: the scan of this server predates this part of the profile. It appears here with the next scan.
Tools, prompts and resources (10: 10 tools)
Open a row for its full description. Chips show what its code can reach, and which risky capability its own description declares.
cells.inserttool Insert a new cell after the given index. Use to add agent-authored code the user should keep. In server mode, refuses if the user has edited the notebook since
Insert a new cell after the given index. Use to add agent-authored code the user should keep. In server mode, refuses if the user has edited the notebook since you last read it — re-read with cells.read_recent and retry.
cells.read_recenttool Read the most recent N cells of a notebook (default 5). Use this to ground in current context before reasoning about a notebook. For a single specific cell, pas
Read the most recent N cells of a notebook (default 5). Use this to ground in current context before reasoning about a notebook. For a single specific cell, pass n=1.
debug.last_tracebacktool Return the most recent exception raised in the kernel with a formatted traceback. Returns null if no error has occurred since the kernel started or last reset.
Return the most recent exception raised in the kernel with a formatted traceback. Returns null if no error has occurred since the kernel started or last reset. Use this after execute.cell or execute.code returns status='error' to get the details.
execute.canceltool Interrupt the currently-running cell (SIGINT-equivalent). Use when execute.cell or execute.code timed out, or when the agent realizes it kicked off something th
Interrupt the currently-running cell (SIGINT-equivalent). Use when execute.cell or execute.code timed out, or when the agent realizes it kicked off something that shouldn't run to completion.
execute.celltool Execute the cell at the given index against the notebook's kernel. Outputs are persisted in the notebook AND returned. Default timeout 60s; hard max 1800s. For
Execute the cell at the given index against the notebook's kernel. Outputs are persisted in the notebook AND returned. Default timeout 60s; hard max 1800s. For quick one-off checks use execute.code instead — it doesn't store anything.
execute.codetool Run a one-off snippet against the kernel WITHOUT adding it to the notebook. Use for quick checks, intermediate computations, or things the user shouldn't have t
Run a one-off snippet against the kernel WITHOUT adding it to the notebook. Use for quick checks, intermediate computations, or things the user shouldn't have to read later. If the user should keep the cell, use cells.insert + execute.cell instead.
inspecttool
No description.
kernel.list_variablestool List user-defined variables in the kernel — names, types, sizes, shapes only. NEVER returns values. Use this to discover what's in the kernel before calling ins
List user-defined variables in the kernel — names, types, sizes, shapes only. NEVER returns values. Use this to discover what's in the kernel before calling inspect on something specific. Filters out builtins and IPython internals.
notebooks.list_opentool List notebooks currently open in the Jupyter session. Use this first to find the notebook_id you'll pass to other tools. In standalone mode returns a single ent
List notebooks currently open in the Jupyter session. Use this first to find the notebook_id you'll pass to other tools. In standalone mode returns a single entry for the attached notebook.
plots.capture_lasttool Return the most recently rendered plot as a base64 PNG. Works for matplotlib (inline backend), plotly (requires kaleido), and altair. Returns null if no plot ha
Return the most recently rendered plot as a base64 PNG. Works for matplotlib (inline backend), plotly (requires kaleido), and altair. Returns null if no plot has been rendered since kernel start or last reset.
Text the model reads (10)
Every tool, prompt and resource description as written in the code: the model sees all of it, the user usually does not.
cells.read_recent tool
Read the most recent N cells of a notebook (default 5). Use this to ground in current context before reasoning about a notebook. For a single specific cell, pass n=1.
cells.insert tool
Insert a new cell after the given index. Use to add agent-authored code the user should keep. In server mode, refuses if the user has edited the notebook since you last read it — re-read with cells.read_recent and retry.
debug.last_traceback tool
Return the most recent exception raised in the kernel with a formatted traceback. Returns null if no error has occurred since the kernel started or last reset. Use this after execute.cell or execute.code returns status='error' to get the details.
execute.cell tool
Execute the cell at the given index against the notebook's kernel. Outputs are persisted in the notebook AND returned. Default timeout 60s; hard max 1800s. For quick one-off checks use execute.code instead — it doesn't store anything.
execute.code tool
Run a one-off snippet against the kernel WITHOUT adding it to the notebook. Use for quick checks, intermediate computations, or things the user shouldn't have to read later. If the user should keep the cell, use cells.insert + execute.cell instead.
execute.cancel tool
Interrupt the currently-running cell (SIGINT-equivalent). Use when execute.cell or execute.code timed out, or when the agent realizes it kicked off something that shouldn't run to completion.
inspect tool
kernel.list_variables tool
List user-defined variables in the kernel — names, types, sizes, shapes only. NEVER returns values. Use this to discover what's in the kernel before calling inspect on something specific. Filters out builtins and IPython internals.
notebooks.list_open tool
List notebooks currently open in the Jupyter session. Use this first to find the notebook_id you'll pass to other tools. In standalone mode returns a single entry for the attached notebook.
plots.capture_last tool
Return the most recently rendered plot as a base64 PNG. Works for matplotlib (inline backend), plotly (requires kaleido), and altair. Returns null if no plot has been rendered since kernel start or last reset.
What we checked
The same checks run on every server. Each line below has one of these marks:
- 8 checks: command injection, argument injection, path traversal, server-side request forgery, SQL injection, code execution, unsafe deserialization, template injectionChecked on every scan. Results in this category are published only after a person has verified them.
- Runs programs the caller choosesNo tool runs a command or program the caller supplies — 10 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Executes caller-supplied codeNo tool evaluates code the caller supplies — 10 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Reads or writes any file pathNo tool works on a file path the caller supplies without a root check — 10 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Requests any addressNo tool sends a request to an address the caller supplies — 10 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Runs caller-supplied SQLNo tool executes a query the caller supplies — 10 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Tools that start processesNot seen in the traced code of 10 capabilities; 10 more call code the scanner could not follow, where it may happen
- Tools that touch filesNot seen in the traced code of 10 capabilities; 10 more call code the scanner could not follow, where it may happen
- Tools that call the networkNot seen in the traced code of 10 capabilities; 10 more call code the scanner could not follow, where it may happen
Where the code is: 10 handlers in 7 files at commit 006e3cfb81ba
src/mcp_jupyter_kernel/tools/cells.pycells.read_recent, cells.insertsrc/mcp_jupyter_kernel/tools/debug_.pydebug.last_tracebacksrc/mcp_jupyter_kernel/tools/execute_.pyexecute.cell, execute.code, execute.cancelsrc/mcp_jupyter_kernel/tools/inspect_.pyinspectsrc/mcp_jupyter_kernel/tools/kernel_.pykernel.list_variablessrc/mcp_jupyter_kernel/tools/notebooks.pynotebooks.list_opensrc/mcp_jupyter_kernel/tools/plots.pyplots.capture_last
- 5 checks: tool poisoning, instruction override, hidden content, exfiltration requests, metadata integrityChecked on every scan. Results in this category are published only after a person has verified them.
- Dependency manifests1 manifest: pyproject.toml
- Lockfiles checked against OSVNothing could be resolved to exact versions; 1 not resolved: pyproject.toml: dependency ranges declared here were not resolved against a lockfile and were not checked
- MCP SDK versionfastmcp >=0.2
- 3 checks: credential harvesting, undeclared credential access, credentials sent over the networkChecked on every scan. Results in this category are published only after a person has verified them.
- Tools that read credentialsNot seen in the traced code of 10 capabilities; 10 more call code the scanner could not follow, where it may happen
- Authentication declaredNot checked: needs the live server's tools/list (a remote server declares how clients authenticate)
- 3 checks: undeclared network access, undeclared file access, undeclared process executionChecked on every scan. Results in this category are published only after a person has verified them.
- Tool descriptions presentEvery tool has a description the model and the user can read (1 only in code no tool reaches)
- Statically known namesEvery tool's name could be read from the code
- Input schemasNot checked: needs the live server's tools/list (every tool declares an input schema)
- Destructive tools annotatedNot checked: needs the live server's tools/list (tools that write, delete or run commands carry destructivehint)
Dependencies with known vulnerabilities (0 in production)
Dependency ranges were not resolved against a lockfile, so the score is capped at 7.
No known vulnerabilities in the production dependencies that could be checked.
Past security advisories
Vulnerabilities published for this server itself, from the GitHub Advisory Database.
No security advisories have been published for this server in the GitHub Advisory Database.
How it runs
| Where it runs | On your machine, started by your MCP client from this repository or its package |
|---|---|
| Transport | not stated in the code the scanner read; most local servers talk over stdio |
| Sign-in | not checked needs the live server |
| MCP SDK | fastmcp >=0.2 |
| Servers in the code | 1 (mcp-jupyter-kernel) |
The project's own security
| Security policy | none no SECURITY.md in the repository: report issues privately through GitHub if it is enabled |
|---|---|
| Past advisories | none in the GitHub Advisory Database |
| Last push | 2026-05-13 |
| Signed releases | not checked yet |
Where it is published
| Listed in | 1 catalog (github_search) |
|---|---|
| License | BSD-3-Clause |
| Created | 2026-05-13 |
Attack map
How the server is built and where its risky tools lead: servers, their tools, what the tools' code can do, and the traced route from a declared risky tool's argument to the operation it reaches. Click a node for details.