SuperAPIAI Directory

sqai-mcp

github.com · AI developer platforms

The SQAI (Structured Query AI) MCP server is a deterministic, read-only structured data tool for AI agents. It provides three governed tools—listSources, queryData, and explainQuery—and is suitable for any MCP host. The project is licensed under Apache-2.0, built with TypeScript and Python, based on Algenta at its foundation, and produced by Thyn. Its core philosophy is that models propose intent and SQAI controls execution: typed intent is input, deterministically executed after policy checks, and outputs replayable results with full provenance, without exposing raw SQL, using eval, or providing a write path. The npm package name is @thyn-ai/sqai-mcp.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsAPI

About this tool

SQAI (Structured Query AI) is a deterministic, read-only structured data tool for AI agents, emphasizing governed execution and replayable provenance. The project is released under the Apache-2.0 license, built with TypeScript and Python, based on Algenta as foundational support, and is a Thyn product. Its npm package is @thyn-ai/sqai-mcp.

Purpose and positioning: SQAI's design principle is “models propose meaning, SQAI controls execution.” It receives typed intent, performs deterministic queries after policy checks, and returns replayable results with full provenance. The system does not expose raw SQL, does not use eval, and provides no write path, making it suitable for AI agent scenarios that require safe, auditable access to structured data.

Main capabilities: SQAI provides three governed, deterministic, read-only structured data tools: listSources, queryData, and explainQuery. All three tools are marked readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false. The query plane (connect / resolve / query / verify / ask) works in-process in both languages. The full SQAI compute plane sits behind capability contract validation. Policy allowlists (sources, fields, functions) cannot be overridden by the model. Cross-language consistency guarantees identical values, plan_hash, and intent_signature. Model context truncation is implemented through opaque result handles.

Usage: SQAI can be used as a stdio server for any MCP host (such as Claude Desktop, Cursor, etc.); tool descriptions, Zod schemas, and execution functions are read directly from the AI-SDK tool object and do not fork. Quick start (AI SDK) requires no server, and the query plane requires no daemon; the compute plane transparently provides a signed managed runtime on first use. Introspection (initialize / tools/list) requires no credentials, and zero environment configuration is a valid configuration. Executing any one of the four tools requires a free community login (sqai login once / device registration, or SQAI_API_KEY), after which it is fully offline; without login, every tools/call returns a structured login_required error. SQAI_DEPLOYMENT_URL retains its usual semantics from @thyn-ai/sqai. All tool execution is subject to a unified license gate: free on one machine, requiring one-time device registration (sqai login); licensing only moves a signed token and never moves user data; without a license, every tool call (including local CSV reads) returns a structured login_required error by design.

Use cases: suitable for MCP host environments where AI agents need to query structured data in a controlled, read-only, auditable manner, for example accessing structured data query capabilities via MCP in Claude Desktop or Cursor.

Limitations: The project explicitly provides no write path, does not expose raw SQL, and does not use eval. Executing tools requires a free community login or API Key; otherwise it returns a login_required error. The license gate is free for a single machine and requires device registration. More information about charging, pricing, specific platform support scope, etc. is not currently provided in the materials.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools