jupyter-mcp-server
Copilot instructions1.3k starsChanged 3 months agoBSD-3-ClauseView on GitHub
Always reference these instructions first and fallback to search or bash commands only when you encounter unexpected information that does not match the info here. Jupyter MCP Server is a Python-based Model Context Protocol (MCP) server implementation that enables real-time interaction with Jupyter Notebooks. The project uses a modern Python build system with hatch, and includes comprehensive testing, linting, and documentation. NETWORK TIMEOUT WARNING: pip install commands may fail with SSL certificate errors or read timeouts when connecting to PyPI.…
- Installs packages
Trending
More talk lately.about the whole repository
Who's talking about datalayer/jupyter-mcp-server
- @datalayer.ai“🚀 Jupyter MCP Server v1.0.3 is out! 🔒 Hardened management API: • localhost-only management routes • …”Bluesky · Jul 11, 2026 · 5 likes
- @datalayer.ai“Jupyter MCP Server 1.0.2 is out! 🎉 Now supports the default Jupyter stack—no more pinning older …”Bluesky · Apr 27, 2026 · 4 likes
- @datalayer.ai“Jupyter MCP Server 1.0.0 Reaches 1,000 GitHub ⭐ Right after the official 1.0.0 release, the Jupyter MCP …”Bluesky · Apr 15, 2026 · 4 likes
- anthropics/claude-code“[BUG] MCP ImageContent returned as text in tool results instead of native image blocks (10-20x token waste)”GitHub · Mar 5, 2026 · 4 reactions
- @datalayer.ai“✨ Introducing jupyter-mcp-server! A Model Context Server that brings #Jupyter tools to any #AI #LLM, …”Bluesky · Feb 13, 2025 · 4 likes
The biggest 5 of 26 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 26
Talked about on GitHub and Bluesky (26 times).
On GitHub · 16
- Mar 5, 2026[BUG] MCP ImageContent returned as text in tool results instead of native image blocks (10-20x token waste) — anthropics/claude-code4 reactions · 11 comments
- Oct 4, 2026claude-code-plugins.github.datalayer.jupyter-mcp-server: init at 2.2.3 — sudosubin/agents.nix0 reactions
- Oct 4, 2026claude-code-marketplaces.github.datalayer.jupyter-mcp-server: init at 2.2.3 — sudosubin/agents.nix0 reactions
- Sep 12, 2026Refine MCP capability surface for agent safety: preserve annotations, split notebook connect/create, add safe inspection tools — YmSaki/CoKernel0 reactions · 2 comments
- Aug 21, 2026feat: meta-broker — proxy jupyter-mcp-server tools through jupyterlab-mcp — maniaclab/af-jupyterlab-mcp0 reactions · 2 comments
11 more on GitHub
- Jun 6, 2026content(mcp): add Jupyter MCP Server — JSONbored/awesome-claude0 reactions · 3 comments
- Apr 25, 2026feat(mcp-jupyter): add interactive cell-by-cell execution from Datalayer architecture — jsboige/roo-extensions0 reactions · 10 comments
- Feb 26, 2026feat: MCP Code Sandbox — IBM/AssetOpsBench0 reactions · 8 comments
- Jan 30, 2026[STUDY] Évaluation migration Jupyter MCP: papermill maison vs datalayer/jupyter-mcp-server — jsboige/roo-extensions0 reactions · 1 comment
- Nov 25, 2025ℹ️ Display the JupyterLab cell index near each cells — datalayer/jupyter-mcp-tools0 reactions · 2 comments
- Oct 28, 2025feat: add `delete_many_cells` — datalayer/jupyter-nbmodel-client0 reactions · 2 comments
- Oct 16, 2025Agentic AI: MCP Connector Fails with "Unsupported JSON schema type 'JsonNullSchema'" for Nullable Parameters — camunda/connectors0 reactions · 2 comments
- Oct 15, 2025How is this different from DataLayer MCP? — jbeno/cursor-notebook-mcp0 reactions · 1 comment
- Sep 2, 2025Migrate remaining tools from OpenHands — OpenHands/software-agent-sdk0 reactions
- Jul 7, 2025Factor out stop fixes from jupyter-mcp-server — datalayer/jupyter-nbmodel-client0 reactions
- May 23, 2025add jupyter-mcp-server — modelcontextprotocol/servers0 reactions · 1 comment
On Bluesky · 10
- Jul 11, 2026🚀 Jupyter MCP Server v1.0.3 is out! 🔒 Hardened management API: • localhost-only management routes • Reject non-local browser origins •… — @datalayer.ai5 likes and reposts
- Apr 27, 2026Jupyter MCP Server 1.0.2 is out! 🎉 Now supports the default Jupyter stack—no more pinning older collaboration versions. Use the version… — @datalayer.ai4 likes and reposts
- Apr 15, 2026Jupyter MCP Server 1.0.0 Reaches 1,000 GitHub ⭐ Right after the official 1.0.0 release, the Jupyter MCP Server repository crossed the 1K… — @datalayer.ai4 likes and reposts
- Feb 13, 2025✨ Introducing jupyter-mcp-server! A Model Context Server that brings #Jupyter tools to any #AI #LLM, including Claude, Azure OpenAI, GitHub… — @datalayer.ai4 likes and reposts
- Sep 21, 2026It runs on Reactor, our open-source plugin platform (VS Code–style contribution points, Python and TypeScript), through reactor-mcp-server:… — @datalayer.ai1 likes and repost
5 more on Bluesky
- Aug 29, 2025I haven''t had a chance to give it a go, but I wonder if the Datalayer MCP server would help: github.com/datalayer/ju... — @dhirschfeld.bsky.social1 likes and repost
- Jul 22, 20253/ If you haven’t starred us yet, feel free to check out our github repo below and give us a ⭐ Any support helps others find the project.… — @datalayer.ai1 likes and repost
- May 13, 2025I wonder if the `jupyter-mcp-server` would help. github.com/datalayer/ju... I've yet to give it a go, but I've been meaning to try it out. — @dhirschfeld.bsky.social1 likes and repost
- Aug 19, 20255️⃣/ Our github code repo: github.com/datalayer/ju... — @datalayer.ai0 likes and reposts · 1 reply
- May 12, 20254/ Oh, and big news, we just released Jupyter MCP Server for editing and executing notebooks. See our repo here: 🔗… — @datalayer.ai0 likes and reposts · 1 reply
In this repositoryOne other file it gives its agents.
- code-reviewSkill
The file
We split this copilot-instructions.md into the rules it gives an agent
12 rules. About 0 are common, 7 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 39
Use Docker build which handles dependencies internally
- Distinctive: line 40
Document the network limitation in any testing notes
- Distinctive: line 74
VALIDATION REQUIREMENT: When testing is not possible due to network issues, verify at minimum:
- Very specific: line 219
Add tool definition in jupyter_mcp_server/server.py
- Very specific: line 220
Update models in jupyter_mcp_server/models.py if needed
- Very specific: line 221
Add tests in tests/test_mcp.py
- Very specific: line 222
Update documentation in docs/
- Very specific: line 227
Dev deps: Use [test,lint,typing] optional dependencies
- Distinctive: line 272
Document network failures: when they occur: "pip install fails due to network limitations"
- Distinctive: line 273
Use syntax validation: instead of full testing when pip installs fail
- Distinctive: line 276
Never cancel long-running commands: - document expected timing instead
- Distinctive: line 289
Always set timeouts to at least double these estimates to account for network variability.
≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
<!--
~ Copyright (c) 2024- Datalayer, Inc.
~
~ BSD 3-Clause License
-->Jupyter MCP Server
Always reference these instructions first and fallback to search or bash commands only when you encounter unexpected information that does not match the info here.
Jupyter MCP Server is a Python-based Model Context Protocol (MCP) server implementation that enables real-time interaction with Jupyter Notebooks. The project uses a modern Python build system with hatch, and includes comprehensive testing, linting, and documentation.
Working Effectively
Environment Setup
- Python Requirements: Python 3.10 or higher (tested with 3.9-3.13)
- Network Considerations: PyPI installs may fail due to SSL certificate issues or timeout limitations. This is a known environment constraint.
Build and Install (CRITICAL: Network Limitations)
# Standard installation (may fail with network issues)
pip install ".[test,lint,typing]"
# Alternative if pip install fails:
# 1. Install dependencies individually with longer timeouts
pip install --timeout=300 pytest
pip install --timeout=300 ruff
pip install --timeout=300 mypy
# 2. Or use Docker approach (preferred for consistency)
docker build -t jupyter-mcp-server .NETWORK TIMEOUT WARNING: pip install commands may fail with SSL certificate errors or read timeouts when connecting to PyPI. If installs fail:
- Try increasing timeout:
pip install --timeout=300 - Use Docker build which handles dependencies internally
- Document the network limitation in any testing notes
Core Development Commands
# Development installation (when network allows)
make dev
# Equivalent to: pip install ".[test,lint,typing]"
# Basic installation
make install
# Equivalent to: pip install .
# Build the package
make build
# Equivalent to: pip install build && python -m build .Testing (CRITICAL: Use Long Timeouts)
# Run tests using hatch (when available)
make test
# Equivalent to: hatch test
# Run tests directly with pytest (when network allows install)
pytest .
# NEVER CANCEL: Test suite timing expectations
# - Full test suite: Allow 15-20 minutes minimum
# - Network-dependent tests may take longer
# - Set timeout to 30+ minutes for safetyVALIDATION REQUIREMENT: When testing is not possible due to network issues, verify at minimum:
# Syntax validation (always works)
python -m py_compile jupyter_mcp_server/server.py
find . -name "*.py" -exec python -m py_compile {} \;
# Import validation
PYTHONPATH=. python -c "import jupyter_mcp_server; print('Import successful')"Linting and Code Quality (CRITICAL: Use Long Timeouts)
# Full linting pipeline (when network allows)
bash ./.github/workflows/lint.sh
# Individual linting commands:
pip install -e ".[lint,typing]"
mypy --install-types --non-interactive . # May take 10+ minutes, NEVER CANCEL
ruff check . # Quick, usually <1 minute
mdformat --check *.md # Quick, usually <1 minute
pipx run 'validate-pyproject[all]' pyproject.toml # 2-3 minutes
# TIMING WARNING: mypy type checking can take 10+ minutes on first run
# Set timeout to 20+ minutes for mypy operationsRunning the Application
Local Development Mode
# Start with streamable HTTP transport
make start
# Equivalent to:
jupyter-mcp-server start \
--transport streamable-http \
--document-url http://localhost:8888 \
--document-id notebook.ipynb \
--document-token MY_TOKEN \
--code-sandbox-url http://localhost:8888 \
--start-new-code-sandbox true \
--code-sandbox-token MY_TOKEN \
--port 4040JupyterLab Setup (Required for Testing)
# Start JupyterLab server for MCP integration
make jupyterlab
# Equivalent to:
jupyter lab \
--port 8888 \
--ip 0.0.0.0 \
--ServerApp.root_dir ./dev/content \
--IdentityProvider.token MY_TOKENDocker Deployment
# Build Docker image (NEVER CANCEL: Build takes 10-15 minutes)
make build-docker # Takes 10-15 minutes, set timeout to 20+ minutes
# Run with Docker
make start-docker
# Or manually:
docker run -i --rm \
-e DOCUMENT_URL=http://localhost:8888 \
-e DOCUMENT_ID=notebook.ipynb \
-e DOCUMENT_TOKEN=MY_TOKEN \
-e CODE_SANDBOX_URL=http://localhost:8888 \
-e START_NEW_CODE_SANDBOX=true \
-e CODE_SANDBOX_TOKEN=MY_TOKEN \
--network=host \
datalayer/jupyter-mcp-server:latestManual Validation Scenarios
When full testing is not possible due to network constraints, always verify:
Syntax and Import Validation:
# Validate all Python files compile find . -name "*.py" -exec python -m py_compile {} \; # Test local imports work PYTHONPATH=. python -c "import jupyter_mcp_server; print('SUCCESS')"Configuration Validation:
# Verify pyproject.toml is valid python -c "import tomllib; tomllib.load(open('pyproject.toml', 'rb'))" # Test module structure python -c "import jupyter_mcp_server.server, jupyter_mcp_server.models"Documentation Build (when Node.js available):
cd docs/ npm install # May have network issues npm run build # 3-5 minutes, set timeout to 10+ minutes
Project Structure and Navigation
Key Directories
jupyter_mcp_server/: Main Python packageserver.py: Core MCP server implementation with MCPServer integrationmodels.py: Pydantic data models for document and code sandbox handlingutils.py: Utility functions for output extraction and processingtests/: Unit tests (internal package tests)
tests/: Integration tests using pytest-asynciodocs/: Docusaurus-based documentation site (Node.js/React)dev/content/: Development Jupyter notebook files for testing.github/workflows/: CI/CD pipeline definitions
Important Files
pyproject.toml: Build configuration, dependencies, and tool settingsMakefile: Development workflow automationDockerfile: Container build definition.github/workflows/lint.sh: Linting pipeline scriptpytest.ini: Test configuration
Frequently Modified Areas
- Server Logic:
jupyter_mcp_server/server.py- Main MCP server implementation - Data Models:
jupyter_mcp_server/models.py- When adding new MCP tools or changing data structures - Tests:
tests/test_mcp.py- Integration tests for MCP functionality - Documentation:
docs/src/- When updating API documentation or user guides
Common Tasks and Gotchas
Adding New MCP Tools
- Add tool definition in
jupyter_mcp_server/server.py - Update models in
jupyter_mcp_server/models.pyif needed - Add tests in
tests/test_mcp.py - Update documentation in
docs/
Dependency Management
- Core deps: Defined in
pyproject.tomldependencies section - Dev deps: Use
[test,lint,typing]optional dependencies
CI/CD Pipeline Expectations
- Build Matrix: Tests run on Ubuntu, macOS, Windows with Python 3.9, 3.13
- Critical Timing: Full CI pipeline takes 20-30 minutes
- Required Checks: pytest, ruff, mypy, mdformat, pyproject validation
Environment Variables for Testing
# Required for MCP server operation
export DOCUMENT_URL="http://localhost:8888"
export DOCUMENT_TOKEN="MY_TOKEN"
export DOCUMENT_ID="notebook.ipynb"
export CODE_SANDBOX_URL="http://localhost:8888"
export CODE_SANDBOX_TOKEN="MY_TOKEN"Network Limitations and Workarounds
CRITICAL CONSTRAINT: This development environment has limited PyPI connectivity with SSL certificate issues and timeout problems.
Known Working Commands
# These always work (no network required):
python -m py_compile <file> # Syntax validation
PYTHONPATH=. python -c "import ..." # Import testing
python -c "import tomllib; ..." # Config validation
git operations # Version control
docker build (when base images cached)Commands That May Fail
pip install <anything> # Network timeouts/SSL issues
npm install # Network limitations
mypy --install-types # Downloads type stubs
hatch test # May need PyPI for dependenciesRequired Workarounds
- Document network failures when they occur: "pip install fails due to network limitations"
- Use syntax validation instead of full testing when pip installs fail
- Prefer Docker approach for consistent builds when possible
- Set generous timeouts (60+ minutes) for any network operations
- Never cancel long-running commands - document expected timing instead
Timing Expectations
NEVER CANCEL these operations - they are expected to take significant time:
- pip install ".[test,lint,typing]": 5-10 minutes (when network works)
- mypy --install-types --non-interactive: 10-15 minutes first run
- Docker build: 10-15 minutes
- Full test suite: 15-20 minutes
- Documentation build: 3-5 minutes
- CI pipeline: 20-30 minutes total
Always set timeouts to at least double these estimates to account for network variability.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

