Sage Book Server Package
Project description
Jupyter MCP Server
A basic description of your Jupyter MCP Server package.
Installation
pip install sage-book-server
Or using uv:
uv pip install sage-book-server
Running the Server
- Start Jupyter Lab:
jupyter lab --port 8888 --IdentityProvider.token MY_TOKEN --ip 0.0.0.0
- In a separate terminal, start the MCP server:
sage-book-server
- Add the following variables to your environment
# Claude Configuration
CLAUDE_API_KEY=""
CLAUDE_MODEL_ID="claude-3-7-sonnet-20250219"
CLAUDE_MODEL_URL="https://sage.alpinex.ai:8760" # use passthrough
# Gemini Configuration
GEMINI_API_KEY=""
GEMINI_MODEL_ID="gemini-2.5-pro-preview-03-25"
GEMINI_MODEL_URL="https://generativelanguage.googleapis.com"
# Server Configuration
MCP_SERVER_URL="http://localhost:8888"
MCP_SERVER_PORT="7888"
# override by docker
JUPYTER_SECRET_KEY="MY_TOKEN"
DATABASE_URL=""
NOTEBOOK_DIR="./"
Notes
- Replace
MY_TOKENwith your desired authentication token - The server will be accessible at
http://localhost:8888 - Make sure to keep all three processes running (Jupyter Lab and both MCP server/client instances)
MCP Server Setup with uv
-
Install
uv(if not already installed)curl -Ls https://astral.sh/uv/install.sh | bash
-
Navigate to your directory
cd /path/to/your/project
-
Create a
uv-managed virtual environment (Python 3.10)uv venv --python=3.10 .venv
-
Activate the environment
source .venv/bin/activate
-
Install all required packages
uv pip install -r requirements.txt
-
Run the MCP server
uv run sage-book-server
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
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 sage_book_server-0.1.2-py3-none-any.whl.
File metadata
- Download URL: sage_book_server-0.1.2-py3-none-any.whl
- Upload date:
- Size: 87.6 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f0c1c7aceced0087677fdd174a9ddaf9c2b85aa19e9150c4cbb187dcc4217072
|
|
| MD5 |
31497f96e293eb79017b75339852c1fb
|
|
| BLAKE2b-256 |
6c75d7061043088852025564859cdb8ba215023c540651e90b4c70d037dbb8a7
|