🗄️ Database MCP

Query SQLite, PostgreSQL, and MySQL databases directly from any MCP-compatible AI agent. Execute SQL, list tables, inspect schemas — all through natural language.

MCP Server Free — 200/Day
Smithery Badge

🔧 Available Tools

db_query

Execute any SQL query against connected databases

db_list_tables

List all tables in any connected database

db_describe_table

Get full schema information for any table

Multi-engine

Works with SQLite, PostgreSQL, and MySQL

Safe mode

Read-only query mode to prevent accidental mutations

💰 Free Tier

💡 Example Usage

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?"

⚡ Quick Install

# 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"] }
#   }
# }