Add a connection
- Open Data sources in the dashboard.
- Add a connection with host, port, database name, username, and password.
- Choose SSL mode (
disableorrequire) and test the connection.
Query in chat
After connecting, ask the AI to explore the database in plain language:- “List the tables in my analytics database.”
- “Show the columns of the
orderstable.” - “Count orders per region for the last 30 days.”
Import as a map layer
When a table has spatial columns (PostGIS geometry or MySQL spatial types), you can import it directly as a map layer. Non-spatial query results can be visualized as well.Use a PostGIS table as a live layer
If your PostgreSQL database uses PostGIS, you can take a spatial table and put it straight on the map as a layer. Choose the table, and MapX renders it like any other layer — style it by attribute, filter it, run analysis on it, and keep it in sync with the database: when the underlying table changes, the layer updates too. Live PostGIS layers behave like the rest of your layers:- Edit in place — open the attribute table or edit geometry, and changes are written back to the database immediately. See Editing data and geometry.
- View in 3D — database layers support the same columns, raised paths, and extruded areas as uploaded data. See 3D view.
Managing connections
Each connection shows its status (active or failed) and the last check time. You can disable a connection to stop the AI from using it, or re-test it after changing credentials.
See MCP connections for how the AI executes these operations.
