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
| Tool | Parameters | What it does |
|---|---|---|
list_tables | connection_string | List all tables in the database |
describe_table | connection_string, table | Column names, types, constraints, and indexes |
run_query | connection_string, query | Run a SELECT query — returns rows as JSON |
Connection strings
| Database | Format |
|---|---|
| SQLite | sqlite:/path/to/file.db |
| PostgreSQL | postgres://user:pass@host/db |
| MySQL | mysql://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.