MCP.Market

Cds DB Nlquery MCP server

by shahidla·io.github.shahidla/cds-db-nlquery-mcp·v0.7.3

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

B78/100grade B
What users say
No reviews yet
Be the first
Safety scan
B78/100

full report

Adoption
New

0 stars38 downloads/wk

Reviews

Write one

Nobody has reviewed Cds DB Nlquery yet.

If you have run it, two minutes of your experience saves the next person an afternoon.

Cds DB Nlquery tools

No tool declarations could be read from the package source. They show once the server is installed.

Public scan report

scanner v0.1.9 · 2026-09-26 · same rubric, same numbers if you re-run it

no findings
  • Code scan6 source files scanned25/25
  • –Live reliabilityno gateway calls yet and no remote to proben/a
  • –Tool poisoningtools not inspected (local package is not executed); not countedn/a
  • Auth qualitystatic API keys via environment variables6/15
  • Maintenancelast push 60 days ago12/15
  • Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
Overall 78/100. Components that don't apply are left out of the denominator. Any critical finding is an F.RubricAppeal a findingJSON

How Cds DB Nlquery compares

Against every graded Databases MCP server, from our own scans and uptime checks. Updated after each scan run.

Safety score
78/100
higher than 47% of 802 Databases servers
Downloads a week
38
more than 25% of 328 Databases servers with a package

Install Cds DB Nlquery in Claude Code, Cursor or VS Code

Runs npx -y @shahid.la/cds-db-nlquery-mcp on your machine. Read the scan report first; the gateway never runs local packages.

claude mcp add cds-db-nlquery-mcp -- npx -y @shahid.la/cds-db-nlquery-mcp
Add to Cursor

What the publisher says

From the Cds DB Nlquery repository's README, as published. We do not edit it. Read it on GitHub

@shahid.la/cds-db-nlquery-mcp

MCP server for natural language queries against CDS db-layer entities (db/schema.cds).

Ask questions about your database in plain English. The server discovers your schema automatically, generates real SQL JOINs using CDS, and returns rows. No hardcoded queries, no SQL, no schema configuration. Bring your own LLM: Anthropic or OpenAI, or any OpenAI-compatible endpoint (Azure OpenAI, Groq, Ollama, local models, etc.).

Targets the db/ layer, not OData services. If your entities are exposed as OData services, use an MCP package that targets the service layer instead.

Read-only. This package only executes SELECT queries. No INSERT, UPDATE, or DELETE.

Prerequisites

  • A CAP project with @sap/cds >= 7
  • A configured CDS database (HANA Cloud, SQLite, PostgreSQL)
  • An MCP client (Claude Code, Claude Desktop, or any MCP-compatible host)
  • An API key for an LLM provider (see LLM provider below), used to translate your question into a query, not to answer it

Quick start

1. Install in your CAP project

npm install @shahid.la/cds-db-nlquery-mcp

2. Create .mcp.json in your CAP project root (same folder as package.json)

{
  "mcpServers": {
    "cds-db-nlquery": {
      "command": "npx",
      "args": ["-y", "@shahid.la/cds-db-nlquery-mcp"],
      "cwd": "/absolute/path/to/your/cap/project",
      "env": {
        "ANTHROPIC_API_KEY": "sk-ant-..."
      }
    }
  }
}

Set cwd to the absolute path of your CAP project root, where db/schema.cds lives. See LLM provider for using OpenAI, Gemini, or another provider instead.

npx -y re-resolves the package on every server start (from npm's cache once downloaded, not a fresh network fetch each time, but still an extra resolution step). If you've run npm install @shahid.la/cds-db-nlquery-mcp already, you can point "command" at the installed binary directly instead, node_modules/.bin/cds-db-nlquery-mcp, for a slightly more predictable startup, especially in production.

3. Open your project in Claude Code and ask a question

Which customers have a DTI ratio above 5?
Show me all open payments overdue by more than 30 days, include the borrower name.
List all loans in the MINING sector with the customer's current DTI ratio.

Example response: the server tells the client to render rows as a vertical field/value list, not a markdown table (real output, verified against a live deployment):

Found 3 customers with DTI above 5:

PARTNER    : 30100003
DTI_RATIO  : 7.20
BU_SORT1   : Domestic Customer AU 3

PARTNER    : 30100001
DTI_RATIO  : 5.80
BU_SORT1   : Domestic Customer AU 1

PARTNER    : 30100002
DTI_RATIO  : 5.40
BU_SORT1   : Domestic Customer AU 2

How it works

When you ask a question:

  1. Your MCP client (e.g. Claude Code) calls the naturallanguagequery tool with your question.
  2. The MCP server has already loaded your CDS schema at startup: entity names, columns, and associations. It sends this schema plus your question to the LLM provider you configured (Anthropic, OpenAI, or any OpenAI-compatible endpoint), which translates it into a structured query descriptor.
  3. The server executes a single CDS query. CDS association paths (customer.BU_SORT1) generate real SQL JOINs, executed by your database, not by JavaScript. Scales to production data volumes.
  4. Results come back to your MCP client, which formats and presents the answer.

The LLM call in step 2 is a small, cheap planning step (translating your question into JSON). It does not need a large or expensive model. A fast/cheap tier model is recommended.

Configuration

All configuration is via environment variables in the .mcp.json env block.

Shortened. The full README is on GitHub.

Nothing above is checked by us. What we check is on the safety report.

Cds DB Nlquery: common questions

Is Cds DB Nlquery MCP server safe?
Mostly: it is graded B (78/100). Read the Cds DB Nlquery safety report
How do I install Cds DB Nlquery?
It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
Does Cds DB Nlquery need an API key?
Yes. The registry entry asks for ANTHROPIC_API_KEY, OPENAI_API_KEY.
Is Cds DB Nlquery maintained?
The last commit was 98 days ago (2026-07-29). The latest release is v0.7.3.
What can I use instead of Cds DB Nlquery?
Servers from other publishers that do the same job: AnythingMCP MCP server, Sqlsure MCP server and Orionbelt Semantic Layer MCP server.
How does Cds DB Nlquery compare with other Databases MCP servers?
safety score 78/100 (higher than 47% of 802 Databases servers); downloads a week 38 (more than 25% of 328 Databases servers with a package). Full comparison.

Alternatives to Cds DB Nlquery

Same job from other publishers: the closest match first, then the best rated.

  • AnythingMCP
    MCP gateway and company brain: 694 connectors (SAP, ERP, SQL), file search, memory and skills.
    B
  • Sqlsure
    Semantic SQL inspector: catches double-counting, wrong joins, PII exposure before execution.
    A
  • Orionbelt Semantic Layer
    API-first semantic layer MCP server compiling YAML models into dialect-specific SQL
    A
  • DBHub
    Token-efficient database MCP server for PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, SQLite
    A
  • Neo4j Cypher
    A simple Neo4j MCP server that allows you to run Cypher queries against a Neo4j database.
    A