Connect AI clients to MySQL, PostgreSQL, SQLite and MariaDB via stdio.
This MCP server acts as a bridge between language models and popular SQL databases. It is designed for local execution using the stdio transport, allowing secure, direct access without exposing network ports.
Users configure database credentials through environment variables or command-line arguments before launching the server process. Once running, the server can execute queries and return results to the connected AI client.
Add this to your MCP client config. Pick your client below and copy.
{
"mcpServers": {
"database": {
"command": "npx",
"args": [
"-y",
"ghcr.io/haymon-ai/database:0.5.0"
]
}
}
}Package: ghcr.io/haymon-ai/database:0.5.0 (oci)
Once connected, try asking your AI client:
Runs locally via stdio and requires database credentials (host, port, username, password) passed as environment variables or arguments. It only accesses databases for which valid credentials are supplied.
Run ad-hoc SELECT, INSERT, and UPDATE statements against a local SQLite or PostgreSQL instance during application development.
Ask natural-language questions that translate into complex joins and aggregations across MySQL or MariaDB tables.
Inspect table structures, foreign keys, and sample rows to understand an unfamiliar database schema.
MySQL, MariaDB, PostgreSQL, and SQLite are supported.
Verified reviews from the community shape this listing's rating.
Loading reviews…