
Features
- Monitor slow queries and suggest optimizations
- Detect missing and unused indexes
- Open PRs with migration scripts
- MCP server for read-only database access during tasks
Installation
Connect
Go to Integrations and click Connect next to Postgres. Enter your connection string.
Usage
Tembo monitors your database usingpg_stat_statements. When it finds slow queries or missing indexes, it opens a PR with migration scripts and expected improvement metrics.
Requires pg_stat_statements extension: CREATE EXTENSION IF NOT EXISTS pg_stat_statements;
Advanced
MCP server
MCP server
The Postgres MCP runs in read-only mode. It may access your database during tasks when querying would help complete the work.
Best practices
Best practices
Use read-only access. Connect production databases for accurate insights. Always review migration PRs before merging, especially for large tables.