Repository navigation
chaintable-cli v0.4.0
Chaintable CLI 0.4
Use Chaintable from any MCP client, and run SQL without saving a query or logging in.
Highlights
- MCP server.
chaintable mcpserves the CLI to Claude Desktop, Cursor, VS Code and other MCP clients as a local server, with two tools:chaintable_readfor anything that changes nothing stored, andchaintable_runfor creates, updates, deletes and notebook runs.chaintable mcp --helpprints a ready configuration; see Use with MCP clients. - Ad-hoc SQL.
chaintable query run --code @query.sql --waitruns SQL directly, with or without login, and saves nothing. Save a query only to keep, chart or schedule it;chaintable query run --id <id> --waitruns a saved query as it is. - More without login. Schedules and notebook executions, with their logs, are readable without login wherever their space is public.
notebook instance listtakes--notebook-id,--schedule-idor--account-id. - Fewer prompts for agents. SQL runs, function calls and
rpcchange nothing stored, so the Claude Code plugin runs them without asking, like other reads. - Clearer limits. The skill teaches that calls are rate limited per IP address per minute, with SQL runs the tightest, so agents batch those calls.
Try it
chaintable query run --code "SELECT count(*) AS transfers FROM token.token_transfer.base WHERE block_height > 53190000" --wait
chaintable mcp --helpFixes
- A
getthat finds nothing exits 5 with<resource> <id> not found;space getused to print nothing and exit 0. - A rate-limited call is retried only after the server's
Retry-After. Limits count per minute, so retrying within seconds only used up more of it; withoutRetry-Afterthe CLI exits 7 at once.
Update: chaintable update. It also updates the Claude Code and Codex plugins through their CLIs; then start a new agent session. Without those CLIs on PATH, update the plugin in the agent: /plugin update chaintable@chaintable in Claude Code, codex plugin marketplace upgrade chaintable for Codex.
Install: curl -fsSL https://raw.githubusercontent.com/haimingx/chaintable-cli/main/install.sh | sh
Verify: cosign verify-blob --bundle checksums.txt.sigstore.json --certificate-identity https://github.com/haimingx/chaintable-cli-src/.github/workflows/release.yml@refs/tags/v0.4.0 --certificate-oidc-issuer https://token.actions.githubusercontent.com checksums.txt, then sha256sum -c --ignore-missing checksums.txt.