# PostgresMcpContainerResource Properties

- Package: [Aspire.Hosting.PostgreSQL](/reference/api/csharp/aspire.hosting.postgresql.md)
- Type: [PostgresMcpContainerResource](/reference/api/csharp/aspire.hosting.postgresql/postgresmcpcontainerresource.md)
- Kind: `Properties`
- Members: `1`

Represents a container resource for the Postgres MCP server.

## PrimaryEndpoint

- Name: `PrimaryEndpoint`
- Modifiers: `get`
- Returns: `EndpointReference`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.PostgreSQL/PostgresMcpContainerResource.cs#L21)

Gets the primary endpoint for the Postgres MCP server.

```csharp
public EndpointReference PrimaryEndpoint { get; }
```
