Skip to content

About

A high-performance, lightweight semantic engine and agentic data layer that translates LLM/natural language queries into optimized SQL. Built with Rust (DataFusion), Python (Ibis & FastAPI), and MCP (Model Context Protocol) to seamlessly connect AI agents to databases.

Resources

Code of conduct

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

🛠️ Ather Engine

License Rust Python Protocol

Ather Engine is a high-performance, lightweight semantic engine and agentic data layer. It acts as an intelligent translator between LLM-generated natural language queries and underlying physical databases.

By modeling databases semantically using the Metadata Definition Language (MDL), Ather Engine ensures that AI agents query data reliably, securely, and with full context—bridging the gap between raw data schemas and LLM understanding.


✨ Key Capabilities

  • 🔮 Semantic Translation: Maps complex database schemas into human-readable business concepts using MDL, helping LLMs understand tables and relationships.
  • ⚡ High-Performance Planning: Utilizes a semantic planner built in Rust on top of Apache DataFusion for lightning-fast query translation and optimization.
  • 🔌 Agent-Ready Integration: Out-of-the-box support for the Model Context Protocol (MCP), allowing agents like Claude Desktop and Cline to query the semantic layer.
  • 🌐 Broad Database Compatibility: Executes planned queries by transpiling via SQLGlot and executing via Ibis, supporting PostgreSQL, MySQL, DuckDB, BigQuery, Snowflake, and more.

🏗️ System Architecture

Ather Engine is modular, combining a Rust semantic core, a Python API translation layer, and an MCP gateway:

graph TD
    subgraph "AI Agent & Client Layer"
        Agent[AI Agent / Claude / Cline]
        Client[Direct API Clients]
    end

    subgraph "Ather Engine Gateway"
        MCP[Ather MCP Server]
        IbisSrv[Ibis FastAPI Server]
    end

    subgraph "Semantic & Planning Core"
        PyBind[ather-core-py PyO3]
        RustCore[ather-core Rust/DataFusion]
        LegacyCore[ather-core-legacy Java]
    end

    subgraph "Data & Execution Layer"
        SqlGlot[SQLGlot Transpiler]
        Ibis[Ibis execution engine]
        DB[(Target Database)]
    end

    Agent -->|MCP Tools| MCP
    MCP -->|HTTP API| IbisSrv
    Client -->|HTTP API| IbisSrv
    IbisSrv -->|Local Python Call| PyBind
    PyBind -->|Foreign Function Interface| RustCore
    IbisSrv -.->|Fallback Query Plan| LegacyCore
    IbisSrv -->|Plan to Transpile| SqlGlot
    SqlGlot -->|Transpiled SQL| Ibis
    Ibis -->|Execute Query| DB
Loading

📂 Repository Directory & Modules

Module / Directory Language Description
ather-core Rust The high-performance semantic core of the engine. Manages semantic schemas and compiles MDL representations.
ather-core-base Rust Contains shared structures, traits, and utilities for the Rust core.
ather-core-py Rust / Python PyO3-powered bindings that expose ather-core features natively to Python.
ibis-server Python FastAPI server routing planning requests, utilizing PyO3 bindings and transpiling to physical SQL via Ibis.
mcp-server Python Model Context Protocol (MCP) server that packages Ather capabilities as tools for LLMs.
ather-core-legacy Java Legacy Trino-parser-based engine core, used as a query-rewriting fallback.
example Docker / Config Quickstart examples, environments, and testing setups.

🚀 Quick Start

1. Run the Ibis Server (Docker Compose)

The simplest way to start the engine services is using Docker Compose. Navigate to the example/ folder or define a compose.yaml to spin up the Ibis server and legacy engine:

services:
  ibis:
    image: ghcr.io/canner/ather-engine-ibis:latest
    ports:
      - "8000:8000"
    environment:
      - ather_ENGINE_ENDPOINT=http://java-engine:8080
  java-engine:
    image: ghcr.io/canner/ather-engine:latest
    expose:
      - "8080"

Start the containers:

docker compose up -d

2. Configure and Run the MCP Server

Install uv if you haven't already. Then run the MCP server:

cd mcp-server
uv venv
source .venv/bin/activate  # Or .venv\Scripts\activate on Windows
uv run app/ather.py

Provide the necessary environment variables (ather_URL, CONNECTION_INFO_FILE, and MDL_PATH) either via a .env file or directly in your system environment. Refer to the mcp-server README for detailed configuration options.


🛠️ Developer Guide

Rust Development (ather-core)

To build and test the Rust core components, ensure you have Rust 1.78+ installed:

cd ather-core
cargo build
cargo test

Python Bindings & API Development

To work on ather-core-py or ibis-server, we recommend using Poetry and just:

# Build python bindings
cd ather-core-py
just install
just develop
just test

# Start local ibis FastAPI server
cd ../ibis-server
just install
just run

🛡️ Security Policy

Please read our SECURITY.md to learn about supported versions, vulnerability reporting mechanisms, and disclosure policies.


📄 License

Ather Engine is licensed under the Apache License, Version 2.0. See the LICENSE file for the full text.

About

A high-performance, lightweight semantic engine and agentic data layer that translates LLM/natural language queries into optimized SQL. Built with Rust (DataFusion), Python (Ibis & FastAPI), and MCP (Model Context Protocol) to seamlessly connect AI agents to databases.

Resources

Code of conduct

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages