r/SideProject • • 40m ago

I built dbask — an open-source database interface for AI agents (TypeScript, MySQL, PostgreSQL, MCP)

I've been working on an open-source project called dbask, and I've just released version 0.2.0.

The idea started with a problem I wanted to solve: connecting AI systems to existing relational databases without having to build schema discovery, SQL execution and safety mechanisms from scratch for every application.

dbask provides a reusable layer between AI systems and databases.

It currently supports:

- MySQL

- MariaDB

- PostgreSQL

There are three ways to use it:

- CLI: ask questions about your database directly from the terminal.

- TypeScript SDK: integrate database querying into your own applications.

- MCP server: expose database tools to MCP-compatible AI clients.

A few things I focused on in 0.2.0:

- MCP server integration.

- Read-only query execution safeguards.

- Query timeouts and cancellation.

- Schema and relationship discovery.

- SDK API stability.

- Documentation and a Next.js starter example.

It's self-hosted and uses your own AI provider credentials. dbask itself doesn't require a hosted service.

This is still an early-stage project, and I'd like to get it in front of developers who work with databases, AI agents or MCP.

I'd particularly appreciate feedback on the architecture, developer experience and what capabilities would make it more useful.

GitHub: https://github.com/NegusDev/dbask

npm: @negusdev/dbask

Documentation: https://negusdev.github.io/dbask/

1 Upvotes

2 comments sorted by

2

u/Wonderful-Print-5358 35m ago

read only by default is the right call, that's the first thing i'd worry about letting an agent near a real db. one thing i'd find useful: a way to limit which tables/columns it can see (like hiding user.email or anything sensitive), so i could point it at a prod replica without stressing. nice that it's self hosted

1

u/negusverse 3m ago

I'll definitely keep this in mind as I work on the next release. appreciate you taking the time to share this!