Skip to main content
Glama

mcp-sql-api/ ├── app/ │ ├── main.py # FastAPI-Einstiegspunkt │ ├── api/ # Endpunkt-Ebene │ │ ├── sql.py # Roh-SQL-Ausführung (Schritt 1) │ │ ├── query.py # Abfrage-Ausführungs-API (Schritt 3) │ │ └── agent.py # GPT-Integration (Schritt 2) │ │ │ ├── core/ # Kernlogik │ │ ├── db.py # DB-Verbindung (PostgreSQL) │ │ └── security.py # SQL-Kontrolle (z. B. SELECT-Einschränkungen) │ │ │ ├── services/ # Geschäftslogik │ │ ├── sql_executor.py # SQL-Ausführungs-Engine │ │ ├── query_service.py # Vorlagen-Abfrageausführung │ │ ├── llm_service.py # SQL-Generierung mit GPT │ │ └── ir_service.py # Zwischenrepräsentation → SQL-Konvertierung (Schritt 4) │ │ │ ├── models/ # Datenmodelle │ │ ├── schema.py # DB-Schemadefinition │ │ ├── query.py # Abfragedefinition (mit Semantik) │ │ └── ir.py # Zwischenrepräsentation (sehr wichtig) │ │ │ ├── repositories/ # DB-Zugriffsebene │ │ └── base.py │ │ │ └── utils/ │ ├── logger.py │ └── validator.py │ ├── metadata/ # ← Kern von MCP │ ├── schema.yaml # Tabellendefinition (für LLM) │ ├── metrics.yaml # KPI-Definition │ └── queries.yaml # Semantische API-Definition │ ├── prompts/ # Prompts für GPT │ ├── sql_generation.txt │ └── ir_generation.txt │ ├── tests/ │ ├── test_sql.py │ ├── test_query.py │ └── test_ir.py │ ├── requirements.txt └── README.md

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    A
    maintenance
    Enables AI assistants to query databases using natural language, with automatic schema discovery and SQL compilation.
    451 npm
    3,173
    Apache 2.0
  • A
    license
    A
    quality
    D
    maintenance
    Enables safe, AI-driven database interactions with schema discovery, intent validation, and session memory, supporting multiple databases.
    14
    2
    AGPL 3.0
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables natural language querying of SQL databases using AI, supporting multiple database types and automatic schema discovery.
    1
    MIT