tableski
This server has a remotely hosted endpoint. Open its connector listing for connection details, authentication requirements, and setup instructions:
tableski
Every live trading feed is a table — tableski serves it to your agents in SQL. Work in progress.
tableski is being built for traders: prices and indicators as tables an AI can query next to your own positions, over the Model Context Protocol.
Work in progress. The trader service at tableski.io is not open yet and takes no new accounts. What works today is the engine in this repository: one penguin-family binary that turns the files you already have (price history, trades, positions) into queryable tables on your own machine.
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
-skiis the family name.
Install
Prebuilt binaries (macOS arm64/x86_64, Linux x86_64, Windows x86_64) are attached to GitHub releases:
curl -fsSL https://raw.githubusercontent.com/yarenty/tableski/main/install.sh | shWindows: download the .zip from the releases page. Or via cargo:
cargo install tableskiRelated MCP server: mcp-excel
Connect an MCP client
tableski is a standard MCP server over stateless Streamable HTTP — point any client at the server URL:
# Claude Code
claude mcp add --transport http tableski http://127.0.0.1:8080/// 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
# --file registers a table per file, named after the file stem
# (.csv .parquet .json/.ndjson/.jsonl and more; `tableski --help` lists every format)
tableski --file bars.parquet --file positions.csv --export-dir ./exportsAsk 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
files and formats: a Parquet file of bars against a CSV of positions against an NDJSON log of
fills. export_result writes a query's rows to a file — only inside the --export-dir
sandbox (relative names, no ..; the tool is disabled unless the operator passes the flag).
With a bars table (symbol, ts, close) and a positions table (symbol, qty), the
value of each holding at its latest close is one query:
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.symbol, p.qty * b.close AS value FROM positions p JOIN bars b ON b.symbol = p.symbol WHERE b.ts = (SELECT max(ts) FROM bars WHERE symbol = p.symbol) ORDER BY value DESC"}}}'Column types are inferred: integers, floats, booleans, timestamps, text. First rows become
column names when they look like headers (--headers auto|first-row|none to override), and
--max-rows fails loudly instead of cutting a file silently.
Status: the engine serves CSV, Parquet and NDJSON files today; results export to files; binaries ship per release. Live market data (bars and indicators as tables) is in progress and not released.
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:
tableski --file positions.csv --untrusted-sqlThen 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:
Flag | Default | What it bounds |
| 2048 | DataFusion memory pool for the session; a query needing more fails with |
| 60 | Wall 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. |
| 10000 | Rows a |
| 16 | Same, 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.
[dependencies]
tableski-core = "0.1"let sources: Vec<Box<dyn TableSource>> = vec![Box::new(FileSource::new().path("bars.parquet"))];
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 bars" })).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.
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
Apache License, Version 2.0 (LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0)
MIT license (LICENSE-MIT or https://opensource.org/licenses/MIT)
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.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
The all-in-one data stack for agents. Upload files, run SQL, evolve tables, and render charts.
Open, inspect, filter, edit and convert xlsx and csv files from your AI chat. Processing is local.
Open, inspect, filter, edit and convert xlsx and csv files from your AI chat. Processing is local.
Messy CSV, JSON, Excel, SPSS/Stata/SAS and PDF tables to typed Parquet; inspect, query, join.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables users to ask questions about their spreadsheets in plain English and receive instant answers using DuckDB-powered analytics, supporting multiple file formats like Excel, CSV, and Parquet.2MIT
- AlicenseNot gradedqualityDmaintenanceEnables querying Excel and CSV files using SQL via natural language, allowing AI assistants to analyze data without manual SQL writing.23 PyPI1MIT
- AlicenseNot gradedqualityBmaintenanceQuery local CSV, Parquet, JSON and TSV files with real SQL via DuckDB. Gives your AI coding tool ground-truth data access instead of hallucinated answers.5MIT
- AlicenseBqualityDmaintenanceEnables AI agents to interact with local SQLite databases with full CRUD, schema introspection, foreign key relations, generated columns, and multi-format import/export (CSV, JSON, XLSX) through natural language.266 npmMIT