Databases
Connect PostgreSQL, MySQL, MongoDB, and other databases to Ballast.
Ballast connects directly to your databases for semantic search over structured data. Database integrations support federated search—querying your database in real-time.
Supported Databases
| Database | Auth Type | Features |
|---|---|---|
| PostgreSQL | Credentials | Table selection, incremental sync, federated queries |
| MySQL | Credentials | Table selection, incremental sync, federated queries |
| MongoDB | Credentials | Collection selection |
| BigQuery | OAuth | Dataset/table selection |
| Snowflake | Credentials | Warehouse/schema selection |
| Oracle | Credentials | Table selection |
| SQL Server | Credentials | Table selection |
Connection Setup
PostgreSQL
- Add the PostgreSQL source to your collection
- Enter connection details:
- Host and port
- Database name
- Username and password
- SSL mode (recommended:
requirefor production)
- Click Test Connection to verify
- Select tables to index
MySQL
- Add the MySQL source
- Enter host, port, database, and credentials
- Test and select tables
MongoDB
- Add the MongoDB source
- Enter connection string or individual parameters
- Select collections to index
Federated Search
Database integrations support federated search—querying your database in real-time instead of searching a pre-indexed cache.
When connected via MCP, Claude can:
list_tables- See available tablesdescribe_table- Get column names and typesquery_data- Execute read-only SQL queries
This ensures results are always fresh, directly from your database.
Security
- Credentials are encrypted at rest with AES-256-GCM
- Connections use TLS when available
- Only SELECT queries are allowed (read-only access)
- Credentials are never logged or exposed in API responses
Configuration Options
| Option | Description |
|---|---|
| Tables | Which tables to include |
| Sync frequency | How often to re-index (for cached search) |
| Row limit | Maximum rows to index per table |
| SSL mode | Connection security level |
Best Practices
- Use read-only credentials - Create a database user with SELECT-only permissions
- Enable SSL - Always use encrypted connections in production
- Limit tables - Only index tables you need to search
- Consider row limits - For large tables, set reasonable limits