Agentโ™ฅ๏ธŽAge
Catalog

io.github.shahidla/cds-db-nlquery-mcp

Official

by shahidla ยท JavaScript

MCP server for natural-language queries against SAP CAP db-layer entities via real CQN/SQL JOINs.

MCP server for natural-language queries against SAP CDS db-layer entities via real CQN/SQL JOINs.

This server enables asking questions about your database in plain English. It discovers your schema automatically, generates real SQL JOINs using CDS, and returns rows without hardcoded queries, SQL exposure, or schema configuration. It supports bringing your own LLM (Anthropic, OpenAI, or any OpenAI-compatible endpoint) and targets the db/ layer, not OData services.

๐Ÿ› ๏ธ Key Features

  • Automatic schema discovery from CDS db-layer entities
  • Real SQL JOIN generation using CDS (CQN-based)
  • Natural-language query interface for database questions
  • No hardcoded queries, no manual schema config
  • LLM-agnostic: supports Anthropic, OpenAI, Azure OpenAI, Groq, Ollama, local models

๐Ÿš€ Use Cases

  • Natural-language data retrieval from CDS db-layer entities
  • Quick ad-hoc queries against SAP CAP db/schema.cds
  • LLM-driven data exploration without SQL expertise

โšก Developer Benefits

  • Grounded in existing CDS db-layer schemas; avoids OData
  • Flexible LLM integration and endpoint compatibility
  • Lightweight, schema-auto-detection-focused MCP workflow

โš ๏ธ Limitations

  • Targets the db/ layer, not OData services
  • Dependent on accurate CDS schema exposure and LLM integration
  • Real SQL generation requires compatible execution environment

Topics

ai-agentcapcdsclaudehanallmmcp-servermodel-context-protocolnl2sqlsap-cap
io.github.shahidla/cds-db-nlquery-mcp - agentage MCP Catalog