Query SQLite, PostgreSQL, and MySQL databases directly from any MCP-compatible AI agent. Execute SQL, list tables, inspect schemas — all through natural language.
Execute any SQL query against connected databases
List all tables in any connected database
Get full schema information for any table
Works with SQLite, PostgreSQL, and MySQL
Read-only query mode to prevent accidental mutations
Configure this MCP server in your AI client (Claude Desktop, Cursor, VS Code + Continue, etc.) and ask:
"List all tables in my database" — "Show me the 10 most recent orders from my orders table" — "What columns does the users table have?"
# 1. Clone the repository
git clone https://github.com/Rumblingb/database-mcp.git
cd database-mcp
# 2. Install dependencies
pip install -r requirements.txt
# 3. Run the server
python3 server.py
# 4. Add to your MCP client config (e.g. Claude Desktop claude_desktop_config.json):
# {
# "mcpServers": {
# "database": { "command": "python3", "args": ["/path/to/server.py"] }
# }
# }