# Cognito User Pool Calculator AI Agent Connect

> Estimate AWS Cognito resource usage, limits, and token profiles.

## Overview
- **Category:** security
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_UxqjWew3NlkEaZt4T8qmHquRQsKoCJZ9NfFxR0I6/ai-agent-connect
- **Tags:** cognito, aws, iam, auth, limits

## Description

Plan your AWS Cognito architecture with precision. This MCP server provides deterministic calculations for user pool capacity, security profiles, and resource usage. Use `calculate_pool_capacity` to check if your user, app client, or identity provider counts fit within recommended limits. Use `estimate_security_profile` to determine JWT token sizes and validate password policies. You can also use `calculate_resource_usage` to monitor custom attributes and Lambda triggers, or `estimate_sms_throughput` to predict daily messaging limits.

## Tools

### estimate_security_profile
Estimate the data footprint and security configuration of the authentication flow

### estimate_sms_throughput
Estimate daily messaging limits for the configured user base

### calculate_pool_capacity
Calculate how many resources will fit within a single Cognito user pool

### calculate_resource_usage
Check if custom attributes and Lambda triggers stay within Cognito limits

## Prompt Examples

**Prompt:** 
```
I have 1.5 million users and 150 app clients. How many user pools do I need?
```

**Response:** 
```
You will need 2 user pools to stay within the recommended 1 million users per pool limit.
```

**Prompt:** 
```
What is the total size of my JWT tokens if I use standard settings?
```

**Response:** 
```
The total token size is approximately 3.25 KB (2 KB for the ID token, 1 KB for the access token, and 256 bytes for the refresh token).
```

**Prompt:** 
```
I want to use 60 custom attributes. Is this allowed?
```

**Response:** 
```
No, the limit for custom attributes is 50. You will need to reduce your custom attribute count to stay within the architectural limits.
```

## Frequently Asked Questions

**How many users can I fit in one Cognito pool?**
While there is no hard limit, it is recommended to keep a single pool under 1 million users for optimal performance. You can use `calculate_pool_capacity` to see if you need to split your users into multiple pools.

**Can I check my custom attribute limits?**
Yes, use `calculate_resource_usage` to verify if your custom attribute count is within the 50-attribute limit and if your standard attributes are within the 20-attribute limit.

**How do I estimate SMS costs and limits?**
You can use `estimate_sms_throughput` to calculate the theoretical maximum daily SMS messages for your user base and check if you will exceed the account-wide limit of 10,000 messages per day.
