# PostgresMcpContainerResource Constructors

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

Represents a container resource for the Postgres MCP server.

## PostgresMcpContainerResource(string)

- Name: `Constructor(string)`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.PostgreSQL/PostgresMcpContainerResource.cs#L12)

Represents a container resource for the Postgres MCP server.

```csharp
public sealed class PostgresMcpContainerResource
{
    public PostgresMcpContainerResource(
        string name)
    {
        // ...
    }
}
```

## Parameters

- `name` (`string`)
  The name of the container resource.
