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 分