Provides user authentication and management capabilities including sign-up, sign-in, password reset/change, session management, user attribute updates, account verification, MFA (TOTP), and user deletion through AWS Cognito User Pools.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@AWS Cognito MCP Serversign up a new user with email john.doe@example.com and password SecurePass123!"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
AWS Cognito MCP Server
A Model Context Protocol (MCP) server implementation that connects to AWS Cognito for authentication and user management. This server provides a set of tools for user authentication flows including sign-up, sign-in, password management, and more.
Prerequisites
AWS account with Cognito User Pool configured
Node.js 18 or higher
Related MCP server: MCP Database Server
Installation
# Clone the repository
git clone https://github.com/yourusername/mcp-server-aws-cognito.git
# Install dependencies
cd mcp-server-aws-cognito
npm install
# Build the server
npm run buildAWS Cognito Configuration
Log in to your AWS Console and navigate to Amazon Cognito
Create a User Pool or use an existing one
Note your User Pool ID and App Client ID
Set these values as environment variables or in a .env file (you need .env file only when you use claude code, not claude desktop):
AWS_COGNITO_USER_POOL_ID=your-user-pool-id
AWS_COGNITO_USER_POOL_CLIENT_ID=your-app-client-idAvailable Tools
Tool Name | Description | Parameters |
| Register a new user |
|
| Verify account with confirmation code |
|
| Authenticate a user |
|
| Sign out the current user | None |
| Get the current signed-in user | None |
| Request password reset code |
|
| Reset password with verification code |
|
| Change password for signed-in user |
|
| Refresh the authentication tokens | None |
| Update user profile attributes |
|
| Delete the current signed-in user | None |
| Resend account verification code |
|
| Verify TOTP for MFA |
|
The Inspector will provide a URL to access debugging tools in your browser.
Using with Claude Desktop
Before starting make sure Node.js is installed on your desktop for npx to work.
Go to: Settings > Developer > Edit Config
Add the following to your
claude_desktop_config.json:
{
"mcpServers": {
"aws-cognito-mcp-server": {
"command": "/path/to/mcp-server-aws-cognito/build/index.js",
"env": {
"AWS_COGNITO_USER_POOL_ID": "your-user-pool-id",
"AWS_COGNITO_USER_POOL_CLIENT_ID": "your-app-client-id"
}
}
}
}Using with Claude Code
Claude Code is a command-line interface for Claude. To use this MCP server with Claude Code:
Install Claude Code by following the instructions at Claude Code Documentation
Add the MCP server to Claude Code:
claude mcp add "aws-cognito-mcp" npx tsx index.tsVerify it's been added:
claude mcp listRun Claude with your MCP server:
claudeDevelopment
For development with auto-rebuild:
npm run watchDebugging
Since MCP servers communicate over stdio, debugging can be challenging. Use the MCP Inspector for better visibility:
npm run inspectorNow you can use the AWS Cognito authentication tools with Claude!
Resources
Looking for Admin?
Admins can modify the Dockerfile, update the server description, and track usage metrics. If you are the server author, to access the admin panel.