Talk with Your Database
About
Interact with PostgreSQL, MySQL, MariaDB, and SQLite databases using SQLAlchemy.
Details
- Author
- rhabraken
- Categories
- Database, Other
Jump to
Setup
Install Talk with Your Database in your MCP client (Claude Desktop, Cursor, Windsurf, and others).
Repository: https://github.com/rhabraken/mcp-python
Follow the installation instructions in the repository README, then restart your MCP client.
This guide explains how to set up and run your MCP server to interact with your PostgreSQL database using Claude Desktop. It should also work with MySQL, MariaDB, SQLite as it uses sqlalchemy under the hood. This project is build on top ofhttps://github.com/runekaagaard/mcp-alchemy
Note:This guide assumes you have a basic understanding of Docker, environment variables, and CLI usage.
- Docker Compose:Installation instructions
- Claude Desktop:Download here
- uv: A modern, high-performance Python package manager. If not installed, follow the instructions below.
- Copy and Rename the Environment File
Duplicate the provided.env.examplefile and rename it to.env:
cp .env.example .env
- Download and Install Claude Desktop
Visit theClaude Desktop download pageand install the application.
3. Launch the PostgreSQL Database with Dummy Data
- Run Docker Compose Ensure Docker Compose is installed and run:docker-compose up -d
- This command will launch a PostgreSQL database onlocalhost:5432and populate it with dummy data.
4. Installuv(if not already installed)
- Installuv
Execute the following command to installuv:
curl -LsSf https://astral.sh/uv/install.sh | sh
-
Create/Update the MCP Server Configuration
Save the following JSON configuration in your MCP server config file (adjust paths if necessary):
{ "mcpServers": { "my_database": { "command": "uv", "args": [ "--directory", "/directory/where/this/app/is/located/app/", "run", "server.py" ], "env": { "DB_URL": "postgresql://postgres:password@localhost:5432/mydatabase" } } } }
- Tip:Ifuvis installed in a non-standard location, update the"command"value to reflect the full path to the executable.
Launch the MCP Server
With the configuration in place, the MCP server will automatically start each time Claude Desktop is launched.
- OpenClaude Desktop.
- The tool will automatically call your MCP server, enabling you to interact with your database seamlessly.
- Set Up Environment Variables: Copy.env.exampleto.env.
- Install and Run Claude Desktop: Download fromClaude Desktop.
- Launch PostgreSQL with Docker Compose: Rundocker-compose upto start the database with dummy data.
- Installuv: Run the provided installation command if necessary.
- Configure MCP Server: Update the config file and ensure paths and environment variables are correct.
- Launch and Enjoy: Start Claude Desktop to begin interacting with your database via MCP.
If you encounter any issues or need further assistance, please refer to the relevant documentation or contact your support team.
Database MCP server for MySQL, MariaDB, PostgreSQL & SQLite
A single-binary MCP server for MySQL, MariaDB, PostgreSQL, and SQLite
A Model Context Protocol (MCP) server that provides multi-database query execution capabilities with support for SQLite, PostgreSQL, and MySQL databases. Includes a built-in Web UI for managing database connections.
Enables AI assistants to interact with various databases through JDBC connections.
Production-grade Model Context Protocol (MCP) server for unified SQL database access. Connect multiple databases through a single MCP server with schema discovery, relationship mapping, caching, and safety controls.
Provides database access for SQLite, SQL Server, PostgreSQL, and MySQL.
Multi-database analysis MCP server (PostgreSQL, MySQL, SQLite). Inspects schemas, detects index problems, analyzes table bloat, and explains query plans for actionable database optimization.
A lightweight MCP server for any database with a JDBC driver. Built with Quarkus and requires Java 21+.
An MCP server that provides AI assistants with structured access to multiple databases simultaneously.
ORMCP provides a curated, object-oriented, MCP-compliant view of relational data in any JDBC-compliant database (e.g., PostgreSQL, MySQL, Oracle, SQL Server, DB2, SQLite) — improving reasoning clarity, reducing token usage, and establishing a clear governance boundary.
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.





