Command Palette

Search for a command to run...

UnylyUnyly
Весь каталог

Local Spark

БесплатноНе проверен

Provides a stateful local Spark session for running PySpark and SQL cells, enabling local data exploration before deploying to Microsoft Fabric.

GitHubEmbed

Описание

Provides a stateful local Spark session for running PySpark and SQL cells, enabling local data exploration before deploying to Microsoft Fabric.

README

An MCP server that gives an agent a stateful local Spark session to work in — a Jupyter-notebook-shaped surface with the UI stripped away. The agent runs PySpark "cells" against a long-lived session (state persists across calls), runs SQL and gets rows back, and manages the runtime through tools.

The purpose is local exploration in service of authoring PySpark notebooks that will run on Microsoft Fabric: figure things out locally against the same OneLake Delta data, then hand the honed code to the user as a notebook to run on Fabric with a reasonably similar outcome — no cloud compute burned while exploring.

Status

Milestones A, B.1, B.2 complete and validated live. See CLAUDE.md for the architecture and the locked design decisions.

Running it (via uvx, from GitHub)

No clone or build needed — uvx installs and runs it in an ephemeral environment. Register it as an MCP server in Claude Code (.mcp.json):

{
  "mcpServers": {
    "local-spark": {
      "command": "uvx",
      "args": ["--from", "git+https://github.com/methodify/local-spark-mcp", "local-spark-mcp"],
      "env": { "LOCAL_SPARK_WORKSPACE_NAME": "Data Warehouse" }
    }
  }
}

Prerequisites on the host:

  • Java 17 for Spark 3.5 (the server prefers a vfox-managed JDK 17, else JAVA_HOME; or set runtime.java_home / LOCAL_SPARK_JAVA_HOME). System Java 21 will not work.
  • az login — OneLake/Fabric auth is ambient via DefaultAzureCredential.

The prebuilt OneLake token-provider jar ships inside the package, so Fabric mode works out of the box (no sbt needed). First run downloads PySpark/Delta jars and is slow; subsequent runs reuse the cached environment. Use --refresh to pick up a new commit: uvx --refresh --from git+https://github.com/methodify/local-spark-mcp local-spark-mcp.

Configuration

Configuration lives in a local-spark.toml file in the working directory (see local-spark.example.toml), discovered by walking up from where the server is launched. Environment variables (LOCAL_SPARK_*) override individual settings — convenient in the MCP env block above when you don't want a file. With no workspace configured the server runs local-only (no Fabric). Auth is ambient via az login, so nothing in the config is secret.

from github.com/methodify/local-spark-mcp

Установить Local Spark в Claude Desktop, Claude Code, Cursor

Рекомендуется · одна команда, все IDE
unyly install local-spark-mcp

Ставит в Claude Desktop, Claude Code, Cursor и VS Code — сам разбирается с npx, uvx и сборкой из исходников.

Впервые? Поставь CLI: curl -fsSL https://unyly.org/install | sh

Или настроить вручную

Выполни в терминале:

claude mcp add local-spark-mcp -- uvx --from git+https://github.com/methodify/local-spark-mcp local-spark-mcp

FAQ

Local Spark MCP бесплатный?

Да, Local Spark MCP бесплатный — установка в пару кликов через Unyly без оплаты.

Нужен ли API-ключ для Local Spark?

Нет, Local Spark работает без API-ключей и переменных окружения.

Local Spark — hosted или self-hosted?

Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.

Как установить Local Spark в Claude Desktop, Claude Code или Cursor?

Открой Local Spark на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.

Похожие MCP

Compare Local Spark with

Не уверен что выбрать?

Найди свой стек за 60 секунд

Автор?

Embed-бейдж для README

Похожее

Все в категории data