tableski

io.github.yarenty由 GitHub 帳號 yarenty 發布v0.2.0更新於 Oct 30, 2026

Every spreadsheet is a table: Excel, CSV, Parquet and JSON as SQL tables for AI agents.

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

概覽

AI 產生的概覽

把 Excel、CSV、Parquet 和 JSON 檔案變成 SQL 資料表,讓 AI 助理用 DataFusion SQL 查詢並跨檔案關聯資料。

可以做什麼
  • 列出已註冊的資料表,檢視結構與欄位統計
  • 執行含合併、篩選與彙總的 SQL 查詢,可跨工作表與不同檔案格式
  • 把查詢結果匯出為 CSV 或 XLSX,僅限指定的匯出目錄內
適用情境
適合希望助理以真正的 SQL、而非把儲存格內容讀進上下文來回答試算表與資料檔案問題的情境,包括把 xlsx 工作表、Parquet 檔案與 NDJSON 日誌合併分析。
執行需求
需要一個 tableski 服務實例:遠端端點 mcp.tableski.io(需 OAuth 登入),或在本機執行的二進位程式(預先編譯版本、安裝腳本或 cargo install),啟動時以 --file 參數註冊資料檔案。本機用戶端透過 Streamable HTTP 連線;匯出功能需開啟 --export-dir。
安裝前請注意
預設情況下伺服器會執行 DataFusion 接受的任何 SQL,若無法控管的代理或使用者能連上,應啟用 --untrusted-sql,該模式僅允許對已註冊資料表執行唯讀查詢。export_result 會寫入檔案,但僅限於設定的匯出目錄內。記憶體、逾時與結果大小限制可設定,共用部署時應加以設定。

安裝

在 SourceWeft 中

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

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

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/io.github.yarenty%2Ftableski/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。 客戶端會在首次連接時完成 OAuth 登入。

{
  "mcpServers": {
    "tableski": {
      "type": "http",
      "url": "https://mcp.tableski.io/"
    }
  }
}

README

tableski

[CI] [crates.io] [docs.rs] [license] [Listed on mcpservers.org]

Every spreadsheet is a table — tableski serves them to your agents in SQL.

Excel, CSV, Parquet, JSON — one penguin-family binary that turns your data files into queryable tables and serves them to AI agents over the Model Context Protocol.

  • Single binary, stateless Streamable HTTP — built on the emperor-mcp framework (Emperor Profile P1 conformant: framed output, forwarded credentials, no session affinity).
  • SQL engine powered by Apache DataFusion.
  • Hatched in the kowalski rookery — the -ski is the family name.

Install

Prebuilt binaries (macOS arm64/x86_64, Linux x86_64, Windows x86_64) are attached to GitHub releases:

bash
curl -fsSL https://raw.githubusercontent.com/yarenty/tableski/main/install.sh | sh

Windows: download the .zip from the releases page. Or via cargo:

bash
cargo install tableski

Connect an MCP client

tableski is a standard MCP server over stateless Streamable HTTP — point any client at the server URL:

bash
# Claude Codeclaude mcp add --transport http tableski http://127.0.0.1:8080/
json
// Claude Desktop (claude_desktop_config.json) via mcp-remote{ "mcpServers": { "tableski": { "command": "npx",    "args": ["mcp-remote", "http://127.0.0.1:8080/"] } } }

Or raw HTTP: POST JSON-RPC to / with Accept: application/json (see below).

Run

bash
# One model for every format: --file registers by extension, table name = file stem# (.csv .parquet .json/.ndjson/.jsonl; workbooks .xlsx/.xls/.ods = one table per sheet)cargo run -- --file fixtures/sample.xlsx --file fixtures/sample.parquet \             --file fixtures/sample.ndjson --export-dir ./exports# (--csv/--xlsx flags still work; name collisions get _2/_3 suffixes)

Ask it something (tools: list_tables, query_sql, get_schema, column_statistics, export_result — all output framed as data per Emperor Profile E8). SQL joins work across formats: an xlsx sheet against a Parquet file against an NDJSON log. export_result writes a query's rows to .csv/.xlsx — only inside the --export-dir sandbox (relative names, no ..; the tool is disabled unless the operator passes the flag):

bash
curl -s -X POST http://127.0.0.1:8080/ \  -H 'Content-Type: application/json' -H 'Accept: application/json' \  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"query_sql",       "arguments":{"sql":"SELECT p.name, SUM(o.amount) AS total FROM people p JOIN orders o ON p.name = o.name GROUP BY p.name ORDER BY total DESC"}}}'# => ada 150.5, linus 99.99 — a SQL join across two sheets of one workbook

Sheet names are slugified into table names (People → people, 2024 Orders → t_2024_orders); first rows become column names when they look like headers (--headers auto|first-row|none to override). Column types are inferred: integers, floats, booleans, dates (as timestamps), text.

Real-world workbooks are messy — tableski handles the mess: both Excel date systems (1900 and 1904), formula cells (cached values ingest; #DIV/0!-style errors become NULL), merged cells (top-left value, NULL continuations), display formats (raw values, always), ragged rows, format-only padding (trimmed), unicode sheet names, and a --max-rows cap that fails loudly instead of cutting silently. The nasty-workbook corpus lives in fixtures/corpus/ — every trait has a fixture and a test.

New here? The five-minute demo uploads a two-sheet workbook to tableski.io or a local tableski, asks the first question, and shows how to ask the rest in plain words with kowalski, Claude or Cursor. Try the whole local flow in one go: ./scripts/demo.sh (spreadsheet → question → SQL answer → exported workbook). demo.tape renders it as a GIF with vhs.

With kowalski, the questions come in plain words and the answers come back as a workbook. Its Spreadsheet analyst profiles the tables through tableski, the model writes one SQL query per question, and every number comes from the query engine:

[kowalski's Spreadsheet analyst asking tableski two questions and a follow-up, answers from SQL]

Status: CSV, Excel (xlsx/xls/ods, hardened against real-world workbooks), Parquet, and NDJSON all serve today; results export to csv/xlsx; binaries ship per release. Launch is next.

Serving clients you do not trust

By default tableski runs whatever SQL DataFusion accepts, which is right for a local single-user setup. Add --untrusted-sql when the server is reachable by agents or people you do not control:

sh
tableski --file sales.xlsx --untrusted-sql

Then only read-only queries run: SELECT, WITH, VALUES, EXPLAIN, one statement per request, over registered tables only. CREATE, INSERT, UPDATE, DELETE, DROP, COPY, SET, CREATE EXTERNAL TABLE, table functions (read_csv(...), range(...)) and references to unregistered tables or file paths are rejected on the parsed statement, before anything executes, with an error that names the reason. DataFusion's own DDL/DML/statement switches are turned off as a second fence.

Limits

One query cannot take the machine down. Defaults, each 0 = unlimited:

FlagDefaultWhat it bounds
--max-memory-mb2048DataFusion memory pool for the session; a query needing more fails with Resources exhausted instead of growing the process. With a cap set, spilling to disk is off, so it fails fast rather than filling the disk.
--query-timeout-secs60Wall clock per query, planning included. The query runs on a dedicated thread pool and is cancelled at DataFusion's next yield point; the server keeps answering meanwhile.
--max-result-rows10000Rows a query_sql result carries back. Beyond it the result is cut and ends with a -- result truncated ... line; export_result refuses instead of writing a partial file.
--max-result-mb16Same, by Arrow in-memory size.

Cartesian products (CROSS JOIN, or a join without an = condition) are the one shape a timeout cannot stop once running, so --untrusted-sql refuses them on the plan before execution.

The timeout covers planning as well as execution, so a statement that is expensive merely to optimise is cut too. What the pool does not meter: memory allocated by scalar functions (repeat, lpad, ...). Run a server for untrusted clients under a container memory limit, as the tableski.io deployment does. The whole set is exercised by tests/hostile_sql.rs (DDL/DML, filesystem reach, identifier tricks, blow-ups, parser stress, export traversal); add a line there when you find a new bad shape.

Use as a library

The engine is its own crate, tableski-core: register files into a DataFusion SessionContext, then run the tools with call_tool or serve AppState through any emperor-mcp transport. No HTTP, no CLI.

toml
[dependencies]tableski-core = "0.1"
rust,ignore
let sources: Vec<Box<dyn TableSource>> = vec![Box::new(FileSource::new().path("orders.xlsx"))];let tables = register_sources(&ctx, &sources, &IngestOptions::default()).await?;let state = AppState::new(Arc::new(ctx), tables);let grid = call_tool(&state, "query_sql", json!({ "sql": "SELECT count(*) FROM orders" })).await?;

Tables come from TableSource implementations. FileSource is the files-on-disk one; a source that streams or refreshes (a price feed, a file that is rewritten) implements the same trait and keeps its state behind its own DataFusion TableProvider, so every query sees the rows that exist when it is planned. The module docs of tableski_core::source spell out the contract; crates/tableski-core/tests/table_source.rs is a worked appending source.

For a server with tenants, Quota and UsageMeter (queries per day, bytes stored, files, rows per file) plug into the same state with with_quota; the meter is in memory, persisting usage is the host's job.

How it compares

Honest positioning — different tools solve different problems:

tableskiopenpyxl-based Excel MCP serversGoogle-Sheets MCPs
Ask questions over dataSQL engine (DataFusion): joins, aggregates, filters — across sheets and file formatscell/range reads; analysis logic lands in the model's contextper-API calls against live Sheets
Formatsxlsx/xls/ods + CSV + Parquet + NDJSON, one table modelxlsx (often read and write, incl. formatting/charts — tableski doesn't edit workbooks)Google Sheets only
Deploymentsingle static binary, stateless Streamable HTTP (Emperor Profile P1)Python runtime + depshosted API + OAuth
Output safetyevery tool result framed as data (prompt-injection mitigation)typically rawtypically raw

If you need to edit workbooks (styles, charts, cell writes), pair tableski with a writer-oriented server; tableski is the analysis and export engine.

Contributing

See CONTRIBUTING.md: run the checks, keep the docs in step, and sign off your commits (DCO, git commit -s).

License

Licensed under either of

at your option.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in tableski by you shall be dual licensed as above, without any additional terms or conditions.

來源:README.md,提交 28ae4a6

工具

0
該伺服器需要登入,因此 SourceWeft 無法在沒有帳號的情況下讀取其工具,也未收錄。已連接帳號所能看到的內容可能因帳號及其權限而異。

版本歷史

1
  1. v0.2.0最新Oct 29, 2026

評分

已滿足適用檢查項的 85%

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

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具15 分

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

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