# AzurePostgresFlexibleServerDatabaseResource

- Module: [Aspire.Hosting.Azure.PostgreSQL](/reference/api/typescript/aspire.hosting.azure.postgresql.md)
- Version: `13.2.0`
- Kind: `handle`
- Source: [GitHub](https://github.com/microsoft/aspire)

## Definition

```typescript
interface AzurePostgresFlexibleServerDatabaseResource
  extends IManifestExpressionProvider,
    IResource,
    IResourceWithConnectionString,
    IResourceWithParent,
    AzurePostgresFlexibleServerResource]],
    IValueProvider,
    IValueWithReferences {
  withPostgresMcp(configureContainer?: (obj: PostgresMcpContainerResource) => Promise<void>, containerName?: string): AzurePostgresFlexibleServerDatabaseResource;
}
```

## Methods

- [withPostgresMcp](/reference/api/typescript/aspire.hosting.azure.postgresql/azurepostgresflexibleserverdatabaseresource/withpostgresmcp.md) -- `method` -- Adds a Postgres MCP server container
    ```typescript
  withPostgresMcp(configureContainer?: (obj: PostgresMcpContainerResource) => Promise<void>, containerName?: string): AzurePostgresFlexibleServerDatabaseResource
  ```
