Alephgrid

dev.alephgrid由 alephgrid.dev 發布v0.1.0更新於 Nov 1, 2026

Read-only MCP access to Alephgrid workbooks: schema cards, reads, SQL, saved queries, receipts.

已驗證Streamable HTTP可網頁執行資料庫資料與分析

概覽

AI 產生的概覽

為 Alephgrid 活頁簿提供唯讀 MCP 存取,讓助理檢視結構、讀取資料表與工作表、執行唯讀 SQL 和已儲存查詢。

可以做什麼
  • 透過結構卡片與目錄搜尋檢視活頁簿結構
  • 讀取資料表與工作表中的資料列,包括篩選後的檢視
  • 對活頁簿自身的資料表執行唯讀 SQL
  • 執行已儲存的查詢與分析,並為每項結果產生內容雜湊回執
  • 依連線檢視代理活動紀錄
適用情境
適合讓助理在不修改資料的前提下探查或查詢大型 Alephgrid 活頁簿(CSV、Parquet、JSON 或 XLSX 資料),例如以大表回答問題或重複使用已儲存的查詢與分析。
執行需求
需要可透過 Streamable HTTP 存取的遠端 Alephgrid 伺服器(/mcp 端點),以及在 Alephgrid 中依空間或活頁簿建立的 bearer 權杖,透過 Authorization 標頭送出。權杖僅顯示一次,以 agc_ 開頭。
安裝前請注意
連線權杖屬於機密,持有者可讀取其授權範圍內的資料。存取為唯讀,但資料會從 Alephgrid 伺服器傳向助理,請確認該空間或活頁簿所暴露的內容。產品仍處於預先發布階段。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Alephgrid,將其新增到工作區。
  2. 連接 Authorization token 憑證。它們會被私密儲存,絕不會在公開頁面上展示。
  3. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

[Alephgrid]

An open-source spreadsheet for data that doesn't fit in a spreadsheet.
Hundreds of millions of rows, real spreadsheet formulas, SQL when you want it.
Runs on your laptop or your own server. Your data never leaves it.

[Website: alephgrid.dev] [License: Apache-2.0] [Status: pre-release] [Built with Rust and TypeScript]

[A sheet totalling a 20,000-row orders table with SUMIFS, formatted as currency and percentages, with a column chart of revenue by region and a selection showing the fill handle]

Open a CSV or Parquet file with hundreds of millions of rows, then scroll, sort, filter, edit and add calculated columns in your browser. Next to those big tables, build ordinary sheets with formatting, charts and Excel formulas such as XLOOKUP and SUMIFS, and point those formulas straight at the big tables. Everything runs on a DuckDB file on your machine. There are no seats, tiers or paywalls: export, sign-in, teams and every other feature are free.

bash
alephgrid flights.parquet          # opens http://127.0.0.1:7878 with the file loadedalephgrid --demo-rows 100000000    # or try it on 100M generated rows

Status: pre-release. The first release (v0.1.0) is being prepared. Build from source or with Docker today; published binaries and images come with the release. See what is shipped and what is not.

Why Alephgrid

  • Big tables stay fast. Opening a workbook reads nothing into memory. The grid asks only for the rows on screen, so scrolling to row 900,000,000 is a range read. Sorts build a permutation, not a copy; calculated columns are computed only for the rows you look at.
  • A real spreadsheet next to them. Sheets use Excel syntax and an Excel-compatible engine (IronCalc), with formatting, merged cells, frozen panes, charts, colour rules, comments and XLSX import and export.
  • Spreadsheet formulas over big tables. =XLOOKUP(A2, customers[id], customers[region]) and =SUMIFS(orders[amount], orders[region], A2) in a sheet cell run as one query over the whole table, not one lookup per row. See table formulas.
  • No SQL required, SQL available. Filters, pivots, joins and charts work without writing SQL; the SQL workspace stays closed until you open it, and a server can turn it off.
  • Yours to run. One binary with the UI embedded, data in a plain directory, Apache-2.0. Teams get spaces, roles, single sign-on, audit, quotas and backups in the same binary.
  • Agents through MCP. Give an AI agent read access to a workbook's tables, sheets and saved queries over the Model Context Protocol, with a receipt for every result.

Features

ImportCSV/TSV (auto-detected), Parquet, JSON/JSONL, gzip as tables; XLSX as editable sheets. Drag and drop or CLI. Streamed, reviewed in a side pane with column types and samples
TablesVirtual canvas grid for any number of rows; typed edits, insert and delete rows; add, rename and delete columns; calculated columns (=[fare_usd] / [distance_mi]); multi-column sort and filters over the whole table; header value filters with counts; saved views
SheetsExcel formulas, cross-sheet references, named ranges, dynamic arrays, LET / LAMBDA; formula autocomplete and argument help; undo/redo
EditingKeyboard first: arrows, Shift and Mod selection, F2, Mod+A (the filled block, then the sheet), copy, cut, paste with formulas translated, paste special (values, formulas, formats, transpose), fill down and right, and a fill handle that continues series (1, 2 → 3, 4; Week 1 → Week 2) or repeats patterns. See keyboard
Formatting and layoutBold, italic, underline, strikethrough, sizes, colours, borders, alignment, wrap, number formats, merged cells; frozen rows and columns, sizes, hide and unhide, zoom 50–200%; kept through XLSX
Sheet dataFind and replace (one sheet or all), sort and filter a range, colour rules and scales, allowed-value lists, charts (column, bar, line, area, scatter, pie) previewed before they are saved, comments with replies
AnalysisLive sum, average and count of the selection; the Analyze pane for summaries, pivots, joins, charts and column profiles without SQL; deduplicate, split, trim and convert types with previews
SQLSchema browser, autocomplete, $parameters, cancellable previews, saved and live queries with versions, tables from queries, complete exports; reads the workbook's own tables only
FunctionsDefine reusable functions as sheet formulas, SQL expressions or sandboxed Python; test them, publish versions, pin and roll back. See functions
ExportCSV, Parquet or JSON lines for any table or filtered view; XLSX for sheets, with a report of anything XLSX cannot hold
CollaborationSeveral people on one workbook see each other's edits live; history and revision restore
TeamsOrganizations, spaces, owner/editor/viewer roles (also from identity-provider groups), invitations, service tokens, password or OpenID Connect sign-in, quotas, audit log, backups and an administration screen. See teams
ComputeEach open workbook gets its own share of memory and threads, sleeps when idle and wakes when opened; larger sizes (--profile) for heavy workbooks. See compute
Agents (MCP)Read-only agent connections per space or workbook over Streamable HTTP (/mcp) or stdio (alephgrid mcp): schema cards, catalog search, reads, read-only SQL, saved queries and analyses, content-hashed receipts, activity per connection

The full inventory, including what is partial or not planned, is in docs/SPREADSHEET_FEATURES.md.

Quick start

Install a release

From v0.1.0 (being prepared; see releasing):

bash
npx alephgrid flights.parquet                         # npm, or: pnpm dlx / yarn dlx / bunx alephgriddocker run -p 7878:7878 -v alephgrid-data:/data ghcr.io/alephgrid/alephgrid

or download alephgrid-VERSION-TARGET.tar.gz for Linux (x86_64, arm64) or macOS (Apple silicon, Intel) from GitHub Releases and check it against SHA256SUMS. On Windows, use Docker or WSL.

From source

Requires Rust 1.88+ and Node 20+.

bash
git clone https://github.com/alephgrid/alephgrid && cd alephgrid(cd web && npm install && npm run build)       # build the UI (embedded into the binary)cargo build --release./target/release/alephgrid --demo-rows 10000000

The first build compiles DuckDB from source, which takes several minutes.

Docker (for a team)

bash
docker compose up -ddocker compose logs alephgrid | grep "setup code"   # the one-time code that creates the adminopen http://localhost:7878/setup

With --auth accounts, people sign in with a password or single sign-on (OpenID Connect), and spaces grant them roles; see docs/TEAMS.md. Without it (the default on your own machine), there is no sign-in and the server only listens on 127.0.0.1. Running it for others, backups, upgrades and restores are covered in docs/OPERATIONS.md.

Options

FlagEnvDefault
--data-dirALEPHGRID_DATA_DIR./alephgrid-data
--host / --portALEPHGRID_HOST / ALEPHGRID_PORT127.0.0.1 / 7878
--auth local|accountsALEPHGRID_AUTHlocal: no sign-in, loopback only
--public-urlALEPHGRID_PUBLIC_URLhow people reach the server (needed for SSO; https makes cookies Secure)
--oidc-issuer, --oidc-client-idALEPHGRID_OIDC_* (secret: ALEPHGRID_OIDC_CLIENT_SECRET)no single sign-on
--session-hoursALEPHGRID_SESSION_HOURS12
--space-storage, --space-workbooks, --space-jobs, --space-open-workbooksALEPHGRID_SPACE_*no limits (admins can set them per space)
--memory-limitALEPHGRID_MEMORY_LIMITDuckDB default (80% of RAM, spills to disk)
--threadsALEPHGRID_THREADSall cores
--disk-reserveALEPHGRID_DISK_RESERVE32MiB kept back so the server can still restart when the disk fills (operations)
--idle-timeoutseconds without activity before a workbook's compute sleeps
--profile name=MEM:THREADS[:dedicated]extra compute sizes admins can grant to spaces
--disable-sqlALEPHGRID_DISABLE_SQLSQL allowed; when set, every operation that runs user-written SQL is refused
--demo-rows Ngenerate a demo workbook
alephgrid mcp --url URL --token agc_…ALEPHGRID_URL, ALEPHGRID_AGENT_TOKENconnect an MCP client over stdio to a running server (docs/MCP.md)

alephgrid --help lists every option.

Formulas

In sheets, formulas use Excel syntax: =SUM(B2:B9), =XLOOKUP(...), =Budget!B4*2. A sheet formula can read a whole table by name:

=SUMIFS(orders[amount], orders[region], $A2, orders[month], $B$1)=XLOOKUP(A2, customers[id], customers[region], "none")

Fill or drag it like any formula; each copy reads its own row. The formula catalog lists supported functions with tested examples, and known gaps are documented with reproducible inputs.

In tables, calculated columns refer to columns by name, and the leading = is optional:

=[fare_usd] / [distance_mi]=CASE WHEN [dep_delay_min] > 15 THEN 'late' ELSE 'on time' END=[origin] || '→' || [dest]

Typical flow: summarise 100M rows with Analyze or SQL, choose Open in sheet, then model on top of the result.

How it is built

  • DuckDB underneath. Every workbook is one DuckDB file: columnar, compressed and parallel across cores. Imports use DuckDB's own CSV, Parquet and JSON readers.
  • IronCalc for sheets, stored in the same workbook file.
  • Rust server (axum, HTTP and WebSocket) with the UI embedded; TypeScript client with a canvas grid, no framework. Wire types are generated from Rust, and a test fails when they drift.

See docs/ARCHITECTURE.md.

Measured (20M-row table, 9 columns, debug build, 8-core / 8 GB laptop)

OperationTime
Reopen the workbook after a restart3 ms (no rehydrate)
Fetch 100 rows at row 0 / 10M / 19.99M3–11 ms
Filter carrier = DL AND origin = SEA (125k matches)34 ms
Sort 20M rows by a float column0.95 s
Sum/avg/min/max of a column over all 20M rows28 ms
GROUP BY carrier via SQL39–57 ms
Edit 1 cell / paste 1,000 cells3 ms / 43 ms

Reproduce with alephgrid --demo-rows 20000000 and docs/bench.mjs. Release-build benchmarks over varied data shapes will be published with v0.1.0.

Documentation

Start at docs/README.md. The most used pages:

ForRead
Spreadsheet usersFeatures · Keyboard · Table formulas · Functions · Analysis
Running a serverOperations · Teams · Compute · Security · MCP
ContributorsContributing · Architecture · Protocol · Test strategy

Development

bash
cargo run -p alephgrid-server -- --demo-rows 1000000   # API on :7878cd web && npm run dev                                  # UI with hot reload on :5173 (proxies to :7878)cargo test --workspace
crates/alephgrid-core     DuckDB tables, views, formulas, IronCalc sheets (pure Rust library)crates/alephgrid-server   axum HTTP + WebSocket server, CLI, MCP, embedded UIweb/                      TypeScript client (canvas grid, row cache, UI) and browser testsdocs/                     user, operator and contributor documentation

README screenshots are generated from the running product by web/scripts/readme-screenshots.mjs.

Roadmap

Next after v0.1.0: S3 and Parquet data read in place, then multi-machine deployments on Kubernetes. See docs/ROADMAP.md and the implementation checklist.

Community

  • Questions and ideas: GitHub Discussions.
  • Bugs: open an issue with steps to reproduce.
  • Security problems: please report privately; see SECURITY.md.
  • Contributing: CONTRIBUTING.md. Everyone taking part follows the code of conduct.

License

Apache-2.0. Use it, host it and build on it, commercially or not.

來源:README.md,提交 067b9b4

工具

0
該伺服器需要 API 金鑰等憑證,因此 SourceWeft 無法在沒有憑證的情況下讀取其工具,也未收錄。

版本歷史

1
  1. v0.1.0最新Nov 1, 2026

評分

已滿足適用檢查項的 60%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式必需10 分
  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分