Skip to main content
Glama

DatI - Database Semantic Gateway for AI Agents

English | 简体中文

DatI (Data Intelligence) is a lightweight semantic gateway connecting AI Agents with enterprise databases. Simply connect your database, enrich semantic metadata, and configure built-in or parameterized SQL tools to publish an MCP service — ready for your agents or any MCP host.

┌────────────────────┐  ┌────────────────────┐  ┌────────────────────┐
│  User A: OpenCode  │  │  User B: WorkBuddy │  │  User N: DataAgent │
└──────────┬─────────┘  └──────────┬─────────┘  └──────────┬─────────┘
           └───────────────────────┼───────────────────────┘
                                   ▼ MCP (Streamable HTTP)
┌─────────────────────────────── DatI ───────────────────────────────┐
│       Semantic       │       Security       │        Tools         │
└──────────────────────────────────┬─────────────────────────────────┘
                                   ▼
┌────────────────────────────────────────────────────────────────────┐
│     MySQL      │   PostgreSQL    │   ClickHouse   │     Doris      │
└────────────────────────────────────────────────────────────────────┘

Try It Online

Demo URL: https://dati-demo.zhangyimin.me

The demo instance is preloaded with sample data and reset periodically.

Demo

Data and configuration reference the AdventureWorks sample and can be automated via the dati-ops skill.

1. Data Source Metadata Configuration (configurable tables, columns, and values)

Data Source Metadata Configuration

2. Business Subject Configuration (select relevant tables, define business terms)

Subject Configuration

3. MCP Service Configuration (choose business subjects, enable built-in tools, add parameterized SQL tools)

MCP Service Configuration

4. Configure MCP in Agent (e.g., Antigravity)

Configure MCP in Agent

5. Query Data in Agent

Query Data in Agent

Related MCP server: foggy-odoo-bridge

Quick Start

git clone https://github.com/yimindev/dati.git && cd dati
cp .env.example .env                # Configure JWT_SECRET and ES password
docker compose up -d

Open http://localhost:8085. Register with username admin to get super admin role. For production tuning and external DB setup, see Deployment Guide.

Why DatI?

  1. Multi-Database Support: Supports MySQL, PostgreSQL, ClickHouse, Doris, and other relational and analytical databases

  2. Semantic Enhancement: Supports business terms, column aliases, and automatic enum dictionary extraction. Combined with semantic search, it helps models understand business jargon and find the right tables

  3. Flexible Integration: Based on standard MCP (Streamable HTTP), easily integrates into your existing agents or workflows

  4. Effortless MCP Publishing: Ready-to-use built-in tools (schema inspection, SQL execution) and parameterized SQL tools to publish MCP services with zero extra deployment

  5. Security & Governance: Centrally managed database credentials with user-level permission and data scope isolation

Use Cases

  • Conversational Data Analysis (NL2SQL): Connect business databases and support NL2SQL analysis workflows with semantic metadata and built-in tools

  • Lightweight App Development: Wrap databases as MCP services so agents can query and update data through conversation to build lightweight applications

Tech Stack

  • Backend: Spring Boot 3.5.x + Java 21 + JPA

  • Frontend: Vue 3 + TypeScript + Vite + Element Plus + TailwindCSS 4

  • Database: H2 (Development) / MySQL / PostgreSQL (Production)

  • Search Engine: Elasticsearch (Semantic Retrieval)

Documentation

Community

Available Tools

2 tools
execute_parameterized_sqlA

Execute a pre-configured parameterized SQL tool published on the DatI MCP gateway.

Behavior: - May mutate data depending on the configured SQL template (INSERT/UPDATE/DELETE). - Safe execution: Protected by DatI row-level permission guards and SQL parameter binding. Usage Guidelines: - Use this tool when you need to run specific business database operations. - Prerequisite: Use search_metadata first if you are unsure of the service or parameters.

Inputs: tool_name (required), service_code (required), params. Returns: result

search_metadataA

Search tables, column definitions, and business semantic terms across databases connected to DatI.

Behavior: - Read-only: Safe to call anytime with no side effects or destructive actions. Usage Guidelines: - Call this tool FIRST to discover existing tables, columns, and business terms before invoking execute_parameterized_sql. - Suitable for resolving NL2SQL schema ambiguity and understanding domain-specific abbreviations.

Inputs: query (required). Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.2/5.0

    Scored across 2 tools

    Disambiguation5/5

    The two tools have clearly distinct purposes: search_metadata is read-only discovery of schemas and terms, while execute_parameterized_sql runs a pre-configured SQL operation. There is no meaningful overlap or risk of misselection.

    Naming Consistency5/5

    Both names use consistent snake_case with a verb-first pattern: search_metadata and execute_parameterized_sql. The convention is predictable and readable.

    Tool Count3/5

    Only two tools are provided, which feels thin even for a focused MCP gateway. A minimal search-and-execute pair can work, but the surface is borderline and lacks supporting operations.

    Completeness3/5

    Metadata search and parameterized execution cover the core loop, but there is no explicit tool to discover the available parameterized SQL services or their parameters. This notable gap may force agents to rely on implicit knowledge.

    Maintenance

    ActivityActive
    ResponsivenessLimited data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      A universal database gateway implementing the Model Context Protocol, enabling MCP-compatible clients to connect, explore, and manage multiple databases with advanced features like OAuth2 authentication, health checks, and SQL optimization.
      12 PyPI
      78
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enterprise-grade MCP server for Microsoft SQL Server, enabling semantic schema discovery, table profiling, safe data operations with preview/confirm, and multi-environment support.
      36
      MIT
    • A
      license
      Not graded
      quality
      A
      maintenance
      Enables natural language querying of SQL databases and REST APIs through the MCP protocol, grounded in a semantic layer.
      258 npm
      1
      AGPL 3.0