> ## Documentation Index
> Fetch the complete documentation index at: https://docs.incident.io/llms.txt
> Use this file to discover all available pages before exploring further.

# pganalyze

> Find the slow query or missing index behind a Postgres incident.

Connect pganalyze's [MCP server](https://pganalyze.com/docs/mcp) as a [connector](https://docs.incident.io/nexus/extensions/connectors.md) to give incident.io's agents tools for Postgres query performance and database health: top queries, EXPLAIN plans, index advice, connections, check-up alerts and recent logs.

**What you'll need:**

* A pganalyze account on a current plan. The MCP server is in public preview, and some legacy plans need to upgrade to use it.
* The **Manage Nexus sources** permission in incident.io.

## Connect it in incident.io

1. From [Extensions](https://app.incident.io/~/nexus/extensions), add a connector and choose **MCP server**.
2. Leave network access as **Public internet**, and give the connector a display name such as `pganalyze`.
3. Enter `https://app.pganalyze.com/mcp` as the server URL, and click **Check URL**.
4. Under **Authentication**, choose how to sign in:
   * **OAuth**, which pganalyze recommends. Click **Connect with OAuth** and sign in to pganalyze. Calls run with that user's access.
   * **Bearer token**, with a read API key. Create one on your organization's **API Access** page in pganalyze. It gives read access to the whole organization, and no write access.
5. Review which tools are enabled and the connector's [default policy](https://docs.incident.io/nexus/extensions/connectors.md#default-policy), then save.

> [!NOTE]
>
> If the OAuth sign-in fails with an authentication error, ask pganalyze support to check that
> `https://app.incident.io/auth/telemetry` is a permitted redirect URI, or connect with a read API key instead.

See [Connectors](https://docs.incident.io/nexus/extensions/connectors.md#permissions) for how to control which tools agents can call, and from where.

## Pair it with a skill

Agents work best with a connector when it's paired with a [skill](https://docs.incident.io/nexus/extensions/plugins.md). For pganalyze, say which pganalyze servers and databases back which services, and what normal load and query latency look like for each.
