# PostgreSQL (Toolbox)

{% hint style="warning" %}
**Early Access** — Reach out to your Natoma representative for access.
{% endhint %}

**Type:** Official

**Source Type:** Repository

**Source:** [GitHub](https://github.com/googleapis/genai-toolbox)

**Description:** MCP Toolbox for PostgreSQL (powered by Google's GenAI Toolbox) provides AI assistants with access to PostgreSQL databases. It enables querying schemas and tables and running SQL.

**Configuration Parameters:**

* **Postgres Host** \* - Database host (e.g. `db.example.com`).
* **Postgres Port** (optional) - Database port. Default: `5432`.
* **Postgres User** \* - Database username.
* **Postgres Password** \* (sensitive) - Database password.
* **Postgres Database** \* - Database name.

**Setup Steps:**

1. Identify a database user with only the privileges end users should have. Read-only access is strongly recommended.
2. Note the host, port, username, password, and database name.
3. When creating the connection in Natoma, paste the values and save.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.natoma.ai/apps/genai-toolbox-postgres.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
