Database Query
STDIOUtility allowing AI assistants to query databases using Model Context Protocol.
Utility allowing AI assistants to query databases using Model Context Protocol.
A small little utility that allows AI assistants that support the Model Context Protocol (MCP) to query databases.
connect
: Connect to a database using a DSN.query
: Run a query on a database and return the results in CSV format.flavor
: Get the flavor of a connected database.go install github.com/alx99/db-mcp/cmd/db-mcp@latest
db-mcp
-default-dsn
: The DSN to use for the default database.mysql://
prefix needed)sqlite://
prefix needed)