mcp-sql-api
mcp-sql-api/ ├── app/ │ ├── main.py # FastAPI 진입점 │ ├── api/ # 엔드포인트 계층 │ │ ├── sql.py # 원시 SQL 실행 (step1) │ │ ├── query.py # 쿼리 실행 API (step3) │ │ └── agent.py # GPT 연동 (step2) │ │ │ ├── core/ # 핵심 로직 │ │ ├── db.py # DB 연결 (PostgreSQL) │ │ └── security.py # SQL 제어 (SELECT 제한 등) │ │ │ ├── services/ # 비즈니스 로직 │ │ ├── sql_executor.py # SQL 실행 엔진 │ │ ├── query_service.py # 템플릿 쿼리 실행 │ │ ├── llm_service.py # GPT를 통한 SQL 생성 │ │ └── ir_service.py # 중간 표현 → SQL 변환 (step4) │ │ │ ├── models/ # 데이터 모델 │ │ ├── schema.py # DB 스키마 정의 │ │ ├── query.py # 쿼리 정의 (의미 포함) │ │ └── ir.py # 중간 표현 (매우 중요) │ │ │ ├── repositories/ # DB 접근 계층 │ │ └── base.py │ │ │ └── utils/ │ ├── logger.py │ └── validator.py │ ├── metadata/ # ← MCP의 핵심 │ ├── schema.yaml # 테이블 정의 (LLM용) │ ├── metrics.yaml # KPI 정의 │ └── queries.yaml # 의미 있는 API 정의 │ ├── prompts/ # GPT용 프롬프트 │ ├── sql_generation.txt │ └── ir_generation.txt │ ├── tests/ │ ├── test_sql.py │ ├── test_query.py │ └── test_ir.py │ ├── requirements.txt └── README.md
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Query, explore, and manage your databases through natural conversation.
Query PostgreSQL databases in plain English — LLM-generated, safety-validated SQL.
Query your warehouse or a CSV with Claude/ChatGPT over MCP, governed by table-level ACL + audit.
Ask questions in plain language, get answers from your business database. No SQL required.
Related MCP Servers
- AlicenseNot gradedqualityAmaintenanceEnables AI assistants to query databases using natural language, with automatic schema discovery and SQL compilation.453 npm3,236Apache 2.0

Bollard MCPofficial
AlicenseAqualityDmaintenanceEnables safe, AI-driven database interactions with schema discovery, intent validation, and session memory, supporting multiple databases.1433 PyPI2AGPL 3.0- AlicenseNot gradedqualityDmaintenanceEnables natural language querying of SQL databases using AI, supporting multiple database types and automatic schema discovery.1MIT
- AlicenseAqualityDmaintenanceEnables natural-language querying of databases via SQLBot, with datasource discovery, metadata inspection, and report generation.5MIT