db_mcp

Read-only database exploration. Supported agents can inspect your schema and run SELECT queries against SQLite, PostgreSQL, and MySQL databases — no write access, no DDL.

Tools

ToolParametersWhat it does
list_tablesconnection_stringList all tables in the database
describe_tableconnection_string, tableColumn names, types, constraints, and indexes
run_queryconnection_string, queryRun a SELECT query — returns rows as JSON

Connection strings

DatabaseFormat
SQLitesqlite:/path/to/file.db
PostgreSQLpostgres://user:pass@host/db
MySQLmysql://user:pass@host/db

Connection strings can reference environment variables using a $ prefix — e.g. $DATABASE_URL. This keeps credentials out of chat history.

Only SELECT statements are allowed. INSERT, UPDATE, DELETE, DROP, and all other write operations are rejected at the tool level.