loglux/sql-cortex-mcp
MCP server that gives AI agents (Claude, OpenAI, Gemini, etc.) direct access to SQL databases — with policy enforcement, schema tools, and an admin UI.
Platform-specific configuration:
{
"mcpServers": {
"sql-cortex-mcp": {
"command": "npx",
"args": [
"-y",
"sql-cortex-mcp"
]
}
}
}Add the config above to .claude/settings.json under the mcpServers key.
<p align="center"> </p>
<h1 align="center">SQL Cortex MCP</h1>
<p align="center"> MCP server that gives AI agents (Claude, OpenAI, Gemini, etc.) direct access to SQL databases — with policy enforcement, schema tools, and an admin UI. </p>
<p align="center"> </p>
---
SQL Cortex MCP is a Model Context Protocol server that exposes SQL databases as tools for AI agents. It sits between your LLM and your database, providing:
git clone https://github.com/loglux/sql-cortex-mcp.git
cd sql-cortex-mcp
docker compose up -dOpen http://localhost:8123 for the admin UI.
git clone https://github.com/loglux/sql-cortex-mcp.git
cd sql-cortex-mcp
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
uvicorn app.main:app --host 0.0.0.0 --port 8000 --reloadPoint any MCP-compatible client at the server:
MCP endpoint: http://localhost:8123/mcp
Protocol: HTTP + JSON-RPC
SSE endpoint: http://localhost:8123/mcp (GET for Server-Sent Events)| Tool | Description | |---|---| | sql.query | Execute
Loading reviews...