Skip to main content

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

  1. Start Jupyter Lab:
jupyter lab --port 8888 --IdentityProvider.token MY_TOKEN --ip 0.0.0.0
  1. In a separate terminal, start the MCP server:
sage-book-server
  1. 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_TOKEN with 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

  1. Install uv (if not already installed)

    curl -Ls https://astral.sh/uv/install.sh | bash
    
  2. Navigate to your directory

    cd /path/to/your/project
    
  3. Create a uv-managed virtual environment (Python 3.10)

    uv venv --python=3.10 .venv
    
  4. Activate the environment

    source .venv/bin/activate
    
  5. Install all required packages

    uv pip install -r requirements.txt
    
  6. Run the MCP server

    uv run sage-book-server
    

Project details


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

If you're not sure about the file name format, learn more about wheel file names.

sage_book_server-0.1.1-py3-none-any.whl (48.4 MB view details)

Uploaded Python 3

File details

Details for the file sage_book_server-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for sage_book_server-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fc94748e8dd831049561f3bca4855ef9129ba8ddd0fd2ff7642c2f7dcd0128cf
MD5 d0c211cc7f7fe1146b375d2276019032
BLAKE2b-256 0f095067f8e12c9ca89d9f5ed54d5f5d24cee7e01ccb7eef79fccdb6ee8e2c30

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page