MCP server for Jupyter notebooks
Project description
mcp-server-jupyter
An MCP server for managing and interacting with Jupyter notebooks programmatically.
Components
Tools
The server provides five tools for notebook manipulation:
-
read_notebook_with_outputs: Read a notebook's content including cell outputs- Required:
notebook_path(string)
- Required:
-
read_notebook_source_only: Read notebook content without outputs- Required:
notebook_path(string) - Use when size limitations prevent reading full notebook with outputs
- Required:
-
read_output_of_cell: Read output of a specific cell- Required:
notebook_path(string)cell_id(string)
- Required:
-
add_cell: Add new cell to notebook- Required:
notebook_path(string)source(string)
- Optional:
cell_type(string): "code" or "markdown"position(integer): insertion index (-1 to append)
- Required:
-
edit_cell: Modify existing cell content- Required:
notebook_path(string)cell_id(string)source(string)
- Required:
Usage with Claude Desktop
Add this configuration to your Claude Desktop config file:
MacOS
// ~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"Jupyter-notebook-manager": {
"command": "uv",
"args": [
"run",
"--directory",
"/path/to/mcp-server-jupyter/src/mcp_server_jupyter",
"mcp-server-jupyter"
],
"env": {
"UV_PROJECT_ENVIRONMENT": "/path/to/venv_for_jupyter/.venv"
}
}
}
}
How to Use
- Start JupyterLab or Jupyter Notebook
When using uv to run Jupyter notebooks it's much easier to manage venv and package installations.
Please follow uv jupyter docummentation for more details.
uv venv --seed
uv run --with jupyter jupyter lab
NOTE: this environment should be used as UV_PROJECT_ENVIRONMENT env variable in MCP server.
-
Open or create a notebook in JupyterLab/Jupyter Notebook
-
Get the full path to your notebook:
- In JupyterLab: Right-click on the notebook in the file browser → "Copy Path"
- In Jupyter Notebook: Copy the path from the URL (modify to full system path)
-
In Claude Desktop chat:
- Always use the full path to the notebook when calling tools
- Example:
/Users/username/projects/my_notebook.ipynb
-
Important Notes:
- After any modifications through Claude (add_cell, edit_cell):
- Reload the notebook page in JupyterLab/Jupyter Notebook
- Current version does not support automatic reload
- Keep JupyterLab/Jupyter Notebook instance running while working with Claude
- After any modifications through Claude (add_cell, edit_cell):
License
This project is licensed under the MIT License. See the LICENSE file for details.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mcp_server_jupyter-0.1.1.tar.gz.
File metadata
- Download URL: mcp_server_jupyter-0.1.1.tar.gz
- Upload date:
- Size: 25.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1748903fb9534a63bffc212df2216267dc0ca0dd65259b98fbb3bb08415f7bd2
|
|
| MD5 |
99018956db51a41cbbea4d52c78d185f
|
|
| BLAKE2b-256 |
53a21b68e8f66abd79dc6e08b0f297872c6923a3e2b38441ab36fb2d0fc72550
|
Provenance
The following attestation bundles were made for mcp_server_jupyter-0.1.1.tar.gz:
Publisher:
main.yml on ihrpr/mcp-server-jupyter
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mcp_server_jupyter-0.1.1.tar.gz -
Subject digest:
1748903fb9534a63bffc212df2216267dc0ca0dd65259b98fbb3bb08415f7bd2 - Sigstore transparency entry: 165152453
- Sigstore integration time:
-
Permalink:
ihrpr/mcp-server-jupyter@5796591a04c915433baa8cbd3bf9f271e0609ca1 -
Branch / Tag:
refs/tags/0.1.1 - Owner: https://github.com/ihrpr
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
main.yml@5796591a04c915433baa8cbd3bf9f271e0609ca1 -
Trigger Event:
release
-
Statement type:
File details
Details for the file mcp_server_jupyter-0.1.1-py3-none-any.whl.
File metadata
- Download URL: mcp_server_jupyter-0.1.1-py3-none-any.whl
- Upload date:
- Size: 8.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f8e6b89867adf2ca8ab1c52b32783fa1aaa7ff33fe79bd8c7f7cc76c118121fc
|
|
| MD5 |
b95fc5ac1660ef7d4e08115c3c94423a
|
|
| BLAKE2b-256 |
4e4fb5fc74a191f09ab26340a73fe8ead0cf8105790d5c5539255f99b831ab1a
|
Provenance
The following attestation bundles were made for mcp_server_jupyter-0.1.1-py3-none-any.whl:
Publisher:
main.yml on ihrpr/mcp-server-jupyter
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mcp_server_jupyter-0.1.1-py3-none-any.whl -
Subject digest:
f8e6b89867adf2ca8ab1c52b32783fa1aaa7ff33fe79bd8c7f7cc76c118121fc - Sigstore transparency entry: 165152457
- Sigstore integration time:
-
Permalink:
ihrpr/mcp-server-jupyter@5796591a04c915433baa8cbd3bf9f271e0609ca1 -
Branch / Tag:
refs/tags/0.1.1 - Owner: https://github.com/ihrpr
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
main.yml@5796591a04c915433baa8cbd3bf9f271e0609ca1 -
Trigger Event:
release
-
Statement type: