sql-explorer-mcp

Pawansingh3889/sql-explorer-mcp
★ 0 stars Python Database Updated 1mo ago
Read-only MCP server for SQL Server / Postgres / SQLite. Three-layer safety stack with sql-sop linter integration.
View on GitHub → Try with Claude — $10 free →

Quick Install

Copy the config for your editor. Some servers may need additional setup — check the README.

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "sql-explorer-mcp": {
      "command": "uvx",
      "args": [
        "sql-explorer-mcp"
      ]
    }
  }
}

Or install with pip: pip install sql-explorer-mcp

README Excerpt

Read-only Model Context Protocol server for SQL databases. Lets LLMs (Claude, Cursor, ChatGPT, Continue) introspect and query **SQL Server, Postgres, and SQLite** with three layers of safety: 1. **Connection-level read-only** — `pyodbc readonly=True`, Postgres `SET TRANSACTION READ ONLY` 2. **AST validation** — sqlglot parses every query and rejects anything that isn't a `SELECT` (catches DML smuggled in CTEs)
📊
Working with market or time-series data?
The Polymarket Historical Dataset — 18.5M+ price snapshots across 18,600+ prediction markets (CSV + SQLite). Built for backtesting & ML.
View dataset →