mcp-sql-api
mcp-sql-api/ ├── app/ │ ├── main.py # Точка входа FastAPI │ ├── api/ # Уровень эндпоинтов │ │ ├── sql.py # Выполнение сырого SQL (шаг 1) │ │ ├── query.py # API выполнения запросов (шаг 3) │ │ └── agent.py # Интеграция с GPT (шаг 2) │ │ │ ├── core/ # Основная логика │ │ ├── db.py # Подключение к БД (PostgreSQL) │ │ └── security.py # Управление SQL (ограничения SELECT и т.д.) │ │ │ ├── services/ # Бизнес-логика │ │ ├── sql_executor.py # Движок выполнения SQL │ │ ├── query_service.py # Выполнение шаблонных запросов │ │ ├── llm_service.py # Генерация SQL с помощью GPT │ │ └── ir_service.py # Промежуточное представление → преобразование в SQL (шаг 4) │ │ │ ├── models/ # Модели данных │ │ ├── schema.py # Определение схемы БД │ │ ├── query.py # Определение запросов (с семантикой) │ │ └── ir.py # Промежуточное представление (критически важно) │ │ │ ├── repositories/ # Уровень доступа к БД │ │ └── 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. Dates show when Glama detected each change.
No tool schema history has been recorded yet.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Query PostgreSQL databases in plain English — LLM-generated, safety-validated SQL.
Ask data questions in natural language. Get SQL, insights, and charts from your databases.
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.
1
Related MCP Servers
- AlicenseNot gradedqualityAmaintenanceEnables AI assistants to query databases using natural language, with automatic schema discovery and SQL compilation.6,0023,158Apache 2.0

Bollard MCPofficial
AlicenseAqualityBmaintenanceEnables safe, AI-driven database interactions with schema discovery, intent validation, and session memory, supporting multiple databases.142AGPL 3.0- AlicenseNot gradedqualityDmaintenanceEnables natural language querying of SQL databases using AI, supporting multiple database types and automatic schema discovery.1MIT
- AlicenseAqualityBmaintenanceEnables natural-language querying of databases via SQLBot, with datasource discovery, metadata inspection, and report generation.5MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/o-kunimatsu/sql_mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server