Self-hosted MCP gateway that gives AI coding agents read-only access to your databases.
View on GitHub ↗Give Claude Code, Cursor, Windsurf, or any MCP-compatible AI tool read-only access to your databases — without exposing credentials or risking data changes.
Self-hosted. Everything runs locally. Your passwords never leave your machine.
https://github.com/user-attachments/assets/f768ff6f-3c9e-4583-9179-c7022d3b7487
Database Notes --------- PostgreSQL All versions MySQL MySQL 5.7+ / MariaDB SQLite Local file, no server needed Amazon Redshift SSL required, Redshift-specific catalog queries
Instead of copy-pasting query results between your DB client and your AI tool, the gateway lets your AI query the database directly. It can explore schemas, inspect tables, and run SELECT queries. It cannot insert, update, delete, or drop anything.
Option A — Docker (recommended, no local install needed)
docker compose pulls the pre-built image from Docker Hub — no build step required. The MCPTOKEN is printed by setup.sh — copy it before you close the terminal.
Open http://localhost:4080. Your MCPTOKEN is in .env.
Claude.ai requires HTTPS. Expose the gateway through a tunnel first:
Copy the https://... URL from the tunnel output, then add it in Claude.ai → Settings → Integrations → Add MCP Server.
"How many orders were created this week?" "What columns does the users table have?" "Show me the last 10 failed jobs."
The AI will call the gateway tools automatically — no copy-pasting.
Tool What it does ------------------- listdatabases Lists all connected databases getdatabaseschema Lists tables (optional name filter) gettableschema Shows columns, indexes, and foreign keys for a tabl
From the project README.
Add the radar badge to your README — it shows your project was picked up by MCP Radar and links to this page:
[](https://mcp.liqiwa.com/s/mdadul--db-mcp.html)
🛡️ BLA (Blind LLM Agents) — Adversarial defense shield that protects binaries, Electron apps, JS bundles, Python, and WebAssembly against AI reverse-engineering agents like REA. Poison -> Exhaust -> H
INK-Q/agy-fastNon-invasive MCP accelerator plugin for Google Antigravity (CLI/Desktop/IDE): cuts LLM turns (-34%), token quota (-31%), and upload traffic (-40%) without affecting native UI or diffs.
shinthink/blitzstrike⚡ Blitz Strike — a universal MCP penetration-testing toolbelt. Structured methodology: reconnaissance & attack-surface mapping, source-to-sink analysis, and live validation. 57 escalation chains, 130-
muaaz9329/cheap-ag50x your usage with cheap-ag. Opus/Astra plans, a dirt-cheap model writes every line, and tests decide what ships. Your $20 plan stops hitting limits. One MCP server for Claude Code & Codex.
noskillish/bankmcpBankMCP™: your AI can now read your bank. Self-hosted, read-only MCP server for your own bank accounts via open banking (Enable Banking). Standard MCP; tested with Claude and Ollama.
DevCrabs-Inc/yandex-metrika-mcpRead-only MCP server for Yandex Metrika (Яндекс Метрика): verifiable reports, period comparisons, time series and exports for Claude, Cursor, VS Code and Codex.
The top new MCP servers of the week, every Monday. No spam, unsubscribe anytime.